diff --git "a/dev.json" "b/dev.json" new file mode 100644--- /dev/null +++ "b/dev.json" @@ -0,0 +1,291569 @@ +[ + { + "question": "show #name# , #country# , #age for all singers# ordered by #age# from the oldest to the youngest.", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male", + "nationality", + "citizenship" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "name", + "singer.name" + ], + [ + "country", + "singer.country" + ], + [ + "country", + "singer.nationality" + ], + [ + "country", + "singer.citizenship" + ], + [ + "age for all singers", + "singer.age" + ], + [ + "age", + "singer.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 1, + "singer.country" + ], + [ + 1, + "singer.nationality" + ], + [ + 1, + "singer.citizenship" + ], + [ + 2, + "singer.age" + ], + [ + 3, + "singer.age" + ] + ], + "linking_list_col": [ + [ + "singer.nationality", + "singer.citizenship" + ], + [ + "singer.country", + "singer.citizenship" + ], + [ + "singer.nationality", + "singer.country" + ] + ] + }, + { + "question": "what are the #names# , #countries# , and #ages# for every singer in descending order of age?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male", + "nationality", + "citizenship" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "names", + "singer.name" + ], + [ + "countries", + "singer.country" + ], + [ + "countries", + "singer.nationality" + ], + [ + "countries", + "singer.citizenship" + ], + [ + "ages", + "singer.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 1, + "singer.country" + ], + [ + 1, + "singer.nationality" + ], + [ + 1, + "singer.citizenship" + ], + [ + 2, + "singer.age" + ] + ], + "linking_list_col": [ + [ + "singer.nationality", + "singer.citizenship" + ], + [ + "singer.country", + "singer.citizenship" + ], + [ + "singer.nationality", + "singer.country" + ] + ] + }, + { + "question": "what is #the average, minimum, and maximum age# of all singers from france?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male", + "years_old", + "birthdate" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "the average, minimum, and maximum age", + "singer.age" + ], + [ + "the average, minimum, and maximum age", + "singer.years_old" + ], + [ + "the average, minimum, and maximum age", + "singer.birthdate" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.age" + ], + [ + 0, + "singer.years_old" + ], + [ + 0, + "singer.birthdate" + ] + ], + "linking_list_col": [ + [ + "singer.years_old", + "singer.birthdate" + ], + [ + "singer.age", + "singer.birthdate" + ], + [ + "singer.years_old", + "singer.age" + ] + ] + }, + { + "question": "what is the #average, minimum, and maximum age# for all french singers?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male", + "years_old", + "birthdate" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "average, minimum, and maximum age", + "singer.age" + ], + [ + "average, minimum, and maximum age", + "singer.years_old" + ], + [ + "average, minimum, and maximum age", + "singer.birthdate" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.age" + ], + [ + 0, + "singer.years_old" + ], + [ + 0, + "singer.birthdate" + ] + ], + "linking_list_col": [ + [ + "singer.years_old", + "singer.birthdate" + ], + [ + "singer.age", + "singer.birthdate" + ], + [ + "singer.years_old", + "singer.age" + ] + ] + }, + { + "question": "what are the #names# and release years for all the songs of the youngest singer?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male", + "track_name", + "composition_name" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "names", + "singer.song_name" + ], + [ + "names", + "singer.track_name" + ], + [ + "names", + "singer.composition_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.song_name" + ], + [ + 0, + "singer.track_name" + ], + [ + 0, + "singer.composition_name" + ] + ], + "linking_list_col": [ + [ + "singer.track_name", + "singer.composition_name" + ], + [ + "singer.song_name", + "singer.composition_name" + ], + [ + "singer.track_name", + "singer.song_name" + ] + ] + }, + { + "question": "what are all distinct #countries# where singers above #age# 20 are from?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male", + "nationality", + "citizenship" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "countries", + "singer.country" + ], + [ + "countries", + "singer.nationality" + ], + [ + "countries", + "singer.citizenship" + ], + [ + "age", + "singer.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.country" + ], + [ + 0, + "singer.nationality" + ], + [ + 0, + "singer.citizenship" + ], + [ + 1, + "singer.age" + ] + ], + "linking_list_col": [ + [ + "singer.nationality", + "singer.citizenship" + ], + [ + "singer.country", + "singer.citizenship" + ], + [ + "singer.nationality", + "singer.country" + ] + ] + }, + { + "question": "what are the different #countries with singers# above #age# 20?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male", + "nationality", + "citizenship" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "countries with singers", + "singer.country" + ], + [ + "countries with singers", + "singer.nationality" + ], + [ + "countries with singers", + "singer.citizenship" + ], + [ + "age", + "singer.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.country" + ], + [ + 0, + "singer.nationality" + ], + [ + 0, + "singer.citizenship" + ], + [ + 1, + "singer.age" + ] + ], + "linking_list_col": [ + [ + "singer.nationality", + "singer.citizenship" + ], + [ + "singer.country", + "singer.citizenship" + ], + [ + "singer.nationality", + "singer.country" + ] + ] + }, + { + "question": "show all #countries# and the number of singers in each country.", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male", + "nationality", + "citizenship" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "countries", + "singer.country" + ], + [ + "countries", + "singer.nationality" + ], + [ + "countries", + "singer.citizenship" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.country" + ], + [ + 0, + "singer.nationality" + ], + [ + 0, + "singer.citizenship" + ] + ], + "linking_list_col": [ + [ + "singer.nationality", + "singer.citizenship" + ], + [ + "singer.country", + "singer.citizenship" + ], + [ + "singer.nationality", + "singer.country" + ] + ] + }, + { + "question": "list all #song names by singers# above the #average age# .", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male", + "track_name", + "composition_name" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "song names by singers", + "singer.song_name" + ], + [ + "song names by singers", + "singer.track_name" + ], + [ + "song names by singers", + "singer.composition_name" + ], + [ + "average age", + "singer.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.song_name" + ], + [ + 0, + "singer.track_name" + ], + [ + 0, + "singer.composition_name" + ], + [ + 1, + "singer.age" + ] + ], + "linking_list_col": [ + [ + "singer.track_name", + "singer.composition_name" + ], + [ + "singer.song_name", + "singer.composition_name" + ], + [ + "singer.track_name", + "singer.song_name" + ] + ] + }, + { + "question": "what are all the #song names by singers# who are older than average?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male", + "track_name", + "composition_name" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "song names by singers", + "singer.song_name" + ], + [ + "song names by singers", + "singer.track_name" + ], + [ + "song names by singers", + "singer.composition_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.song_name" + ], + [ + 0, + "singer.track_name" + ], + [ + 0, + "singer.composition_name" + ] + ], + "linking_list_col": [ + [ + "singer.track_name", + "singer.composition_name" + ], + [ + "singer.song_name", + "singer.composition_name" + ], + [ + "singer.track_name", + "singer.song_name" + ] + ] + }, + { + "question": "show #location# and #name for all stadiums with a capacity# between 5000 and 10000.", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average", + "title", + "appellation" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "location", + "stadium.location" + ], + [ + "name for all stadiums with a capacity", + "stadium.name" + ], + [ + "name for all stadiums with a capacity", + "stadium.title" + ], + [ + "name for all stadiums with a capacity", + "stadium.appellation" + ] + ], + "linking_list_idx": [ + [ + 0, + "stadium.location" + ], + [ + 1, + "stadium.name" + ], + [ + 1, + "stadium.title" + ], + [ + 1, + "stadium.appellation" + ] + ], + "linking_list_col": [ + [ + "stadium.title", + "stadium.appellation" + ], + [ + "stadium.name", + "stadium.appellation" + ], + [ + "stadium.title", + "stadium.name" + ] + ] + }, + { + "question": "what are the #locations# and #names# of all stations with #capacity# between 5000 and 10000?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average", + "title", + "appellation" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "locations", + "stadium.location" + ], + [ + "names", + "stadium.name" + ], + [ + "names", + "stadium.title" + ], + [ + "names", + "stadium.appellation" + ], + [ + "capacity", + "stadium.capacity" + ] + ], + "linking_list_idx": [ + [ + 0, + "stadium.location" + ], + [ + 1, + "stadium.name" + ], + [ + 1, + "stadium.title" + ], + [ + 1, + "stadium.appellation" + ], + [ + 2, + "stadium.capacity" + ] + ], + "linking_list_col": [ + [ + "stadium.title", + "stadium.appellation" + ], + [ + "stadium.name", + "stadium.appellation" + ], + [ + "stadium.title", + "stadium.name" + ] + ] + }, + { + "question": "show the #stadium name# and the number of concerts in each stadium.", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average", + "title", + "appellation" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "stadium name", + "stadium.name" + ], + [ + "stadium name", + "stadium.title" + ], + [ + "stadium name", + "stadium.appellation" + ] + ], + "linking_list_idx": [ + [ + 0, + "stadium.name" + ], + [ + 0, + "stadium.title" + ], + [ + 0, + "stadium.appellation" + ] + ], + "linking_list_col": [ + [ + "stadium.title", + "stadium.appellation" + ], + [ + "stadium.name", + "stadium.appellation" + ], + [ + "stadium.title", + "stadium.name" + ] + ] + }, + { + "question": "show the #stadium name# and #capacity# with most number of #concerts in year# 2014 or after.", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average", + "seating_capacity", + "maximum_capacity" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "stadium name", + "stadium.name" + ], + [ + "capacity", + "stadium.capacity" + ], + [ + "capacity", + "stadium.seating_capacity" + ], + [ + "capacity", + "stadium.maximum_capacity" + ], + [ + "concerts in year", + "concert.year" + ] + ], + "linking_list_idx": [ + [ + 0, + "stadium.name" + ], + [ + 1, + "stadium.capacity" + ], + [ + 1, + "stadium.seating_capacity" + ], + [ + 1, + "stadium.maximum_capacity" + ], + [ + 2, + "concert.year" + ] + ], + "linking_list_col": [ + [ + "stadium.seating_capacity", + "stadium.maximum_capacity" + ], + [ + "stadium.capacity", + "stadium.maximum_capacity" + ], + [ + "stadium.seating_capacity", + "stadium.capacity" + ] + ] + }, + { + "question": "which #year# has most number of concerts?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year", + "performance_year", + "event_year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "year", + "concert.year" + ], + [ + "year", + "concert.performance_year" + ], + [ + "year", + "concert.event_year" + ] + ], + "linking_list_idx": [ + [ + 0, + "concert.year" + ], + [ + 0, + "concert.performance_year" + ], + [ + 0, + "concert.event_year" + ] + ], + "linking_list_col": [ + [ + "concert.performance_year", + "concert.event_year" + ], + [ + "concert.year", + "concert.event_year" + ], + [ + "concert.performance_year", + "concert.year" + ] + ] + }, + { + "question": "what is the #year# that had the most concerts?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year", + "performance_year", + "event_year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "year", + "concert.year" + ], + [ + "year", + "concert.performance_year" + ], + [ + "year", + "concert.event_year" + ] + ], + "linking_list_idx": [ + [ + 0, + "concert.year" + ], + [ + 0, + "concert.performance_year" + ], + [ + 0, + "concert.event_year" + ] + ], + "linking_list_col": [ + [ + "concert.performance_year", + "concert.event_year" + ], + [ + "concert.year", + "concert.event_year" + ], + [ + "concert.performance_year", + "concert.year" + ] + ] + }, + { + "question": "show the #stadium names# without any concert.", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average", + "title", + "appellation" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "stadium names", + "stadium.name" + ], + [ + "stadium names", + "stadium.title" + ], + [ + "stadium names", + "stadium.appellation" + ] + ], + "linking_list_idx": [ + [ + 0, + "stadium.name" + ], + [ + 0, + "stadium.title" + ], + [ + 0, + "stadium.appellation" + ] + ], + "linking_list_col": [ + [ + "stadium.title", + "stadium.appellation" + ], + [ + "stadium.name", + "stadium.appellation" + ], + [ + "stadium.title", + "stadium.name" + ] + ] + }, + { + "question": "what are the #names of the stadiums# without any concerts?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average", + "title", + "appellation" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "names of the stadiums", + "stadium.name" + ], + [ + "names of the stadiums", + "stadium.title" + ], + [ + "names of the stadiums", + "stadium.appellation" + ] + ], + "linking_list_idx": [ + [ + 0, + "stadium.name" + ], + [ + 0, + "stadium.title" + ], + [ + 0, + "stadium.appellation" + ] + ], + "linking_list_col": [ + [ + "stadium.title", + "stadium.appellation" + ], + [ + "stadium.name", + "stadium.appellation" + ], + [ + "stadium.title", + "stadium.name" + ] + ] + }, + { + "question": "show #countries# where a #singer above age 40# and a #singer below 30# are from.", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male", + "nationality", + "citizenship" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "countries", + "singer.country" + ], + [ + "countries", + "singer.nationality" + ], + [ + "countries", + "singer.citizenship" + ], + [ + "singer above age 40", + "singer.age" + ], + [ + "singer below 30", + "singer.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.country" + ], + [ + 0, + "singer.nationality" + ], + [ + 0, + "singer.citizenship" + ], + [ + 1, + "singer.age" + ], + [ + 2, + "singer.age" + ] + ], + "linking_list_col": [ + [ + "singer.nationality", + "singer.citizenship" + ], + [ + "singer.country", + "singer.citizenship" + ], + [ + "singer.nationality", + "singer.country" + ] + ] + }, + { + "question": "show #names for all stadiums# except for stadiums having a concert in #year# 2014.", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average", + "title", + "appellation" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "names for all stadiums", + "stadium.name" + ], + [ + "names for all stadiums", + "stadium.title" + ], + [ + "names for all stadiums", + "stadium.appellation" + ], + [ + "year", + "concert.year" + ] + ], + "linking_list_idx": [ + [ + 0, + "stadium.name" + ], + [ + 0, + "stadium.title" + ], + [ + 0, + "stadium.appellation" + ], + [ + 1, + "concert.year" + ] + ], + "linking_list_col": [ + [ + "stadium.title", + "stadium.appellation" + ], + [ + "stadium.name", + "stadium.appellation" + ], + [ + "stadium.title", + "stadium.name" + ] + ] + }, + { + "question": "what are the #names of all stadiums# that did not have a concert in 2014?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average", + "title", + "appellation" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "names of all stadiums", + "stadium.name" + ], + [ + "names of all stadiums", + "stadium.title" + ], + [ + "names of all stadiums", + "stadium.appellation" + ] + ], + "linking_list_idx": [ + [ + 0, + "stadium.name" + ], + [ + 0, + "stadium.title" + ], + [ + 0, + "stadium.appellation" + ] + ], + "linking_list_col": [ + [ + "stadium.title", + "stadium.appellation" + ], + [ + "stadium.name", + "stadium.appellation" + ], + [ + "stadium.title", + "stadium.name" + ] + ] + }, + { + "question": "show the #name# and #theme# for all concerts and the number of singers in each concert.", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year", + "subject", + "topic" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "name", + "concert.concert_name" + ], + [ + "theme", + "concert.theme" + ], + [ + "theme", + "concert.subject" + ], + [ + "theme", + "concert.topic" + ] + ], + "linking_list_idx": [ + [ + 0, + "concert.concert_name" + ], + [ + 1, + "concert.theme" + ], + [ + 1, + "concert.subject" + ], + [ + 1, + "concert.topic" + ] + ], + "linking_list_col": [ + [ + "concert.subject", + "concert.topic" + ], + [ + "concert.theme", + "concert.topic" + ], + [ + "concert.subject", + "concert.theme" + ] + ] + }, + { + "question": "list #singer names# and number of concerts for each singer.", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male", + "artist_name", + "performer_name" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "singer names", + "singer.name" + ], + [ + "singer names", + "singer.artist_name" + ], + [ + "singer names", + "singer.performer_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 0, + "singer.artist_name" + ], + [ + 0, + "singer.performer_name" + ] + ], + "linking_list_col": [ + [ + "singer.artist_name", + "singer.performer_name" + ], + [ + "singer.name", + "singer.performer_name" + ], + [ + "singer.artist_name", + "singer.name" + ] + ] + }, + { + "question": "list all #singer names in concerts in year# 2014.", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male", + "artist_name", + "performer_name" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "singer names in concerts in year", + "singer.name" + ], + [ + "singer names in concerts in year", + "singer.artist_name" + ], + [ + "singer names in concerts in year", + "singer.performer_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 0, + "singer.artist_name" + ], + [ + 0, + "singer.performer_name" + ] + ], + "linking_list_col": [ + [ + "singer.artist_name", + "singer.performer_name" + ], + [ + "singer.name", + "singer.performer_name" + ], + [ + "singer.artist_name", + "singer.name" + ] + ] + }, + { + "question": "what are the #names of the singers# who performed in a concert in 2014?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male", + "artist_name", + "performer_name" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "names of the singers", + "singer.name" + ], + [ + "names of the singers", + "singer.artist_name" + ], + [ + "names of the singers", + "singer.performer_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 0, + "singer.artist_name" + ], + [ + 0, + "singer.performer_name" + ] + ], + "linking_list_col": [ + [ + "singer.artist_name", + "singer.performer_name" + ], + [ + "singer.name", + "singer.performer_name" + ], + [ + "singer.artist_name", + "singer.name" + ] + ] + }, + { + "question": "what is the #name# and #nation of the singer# who have a song having 'hey' in its name?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male", + "nationality", + "citizenship" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "name", + "singer.name" + ], + [ + "nation of the singer", + "singer.country" + ], + [ + "nation of the singer", + "singer.nationality" + ], + [ + "nation of the singer", + "singer.citizenship" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 1, + "singer.country" + ], + [ + 1, + "singer.nationality" + ], + [ + 1, + "singer.citizenship" + ] + ], + "linking_list_col": [ + [ + "singer.nationality", + "singer.citizenship" + ], + [ + "singer.country", + "singer.citizenship" + ], + [ + "singer.nationality", + "singer.country" + ] + ] + }, + { + "question": "what is the #name# and #country of origin# of every singer who has a song with the word 'hey' in its title?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male", + "nationality", + "citizenship" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "name", + "singer.name" + ], + [ + "country of origin", + "singer.country" + ], + [ + "country of origin", + "singer.nationality" + ], + [ + "country of origin", + "singer.citizenship" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 1, + "singer.country" + ], + [ + 1, + "singer.nationality" + ], + [ + 1, + "singer.citizenship" + ] + ], + "linking_list_col": [ + [ + "singer.nationality", + "singer.citizenship" + ], + [ + "singer.country", + "singer.citizenship" + ], + [ + "singer.nationality", + "singer.country" + ] + ] + }, + { + "question": "find the #name# and #location of the stadiums# which some concerts happened in the #years# of both 2014 and 2015.", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average", + "title", + "appellation" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "name", + "stadium.name" + ], + [ + "name", + "stadium.title" + ], + [ + "name", + "stadium.appellation" + ], + [ + "location of the stadiums", + "stadium.location" + ], + [ + "years", + "concert.year" + ] + ], + "linking_list_idx": [ + [ + 0, + "stadium.name" + ], + [ + 0, + "stadium.title" + ], + [ + 0, + "stadium.appellation" + ], + [ + 1, + "stadium.location" + ], + [ + 2, + "concert.year" + ] + ], + "linking_list_col": [ + [ + "stadium.title", + "stadium.appellation" + ], + [ + "stadium.name", + "stadium.appellation" + ], + [ + "stadium.title", + "stadium.name" + ] + ] + }, + { + "question": "what are the #names# and #locations of the stadiums# that had concerts that occurred in both #2014# and 2015?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average", + "title", + "appellation" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "names", + "stadium.name" + ], + [ + "names", + "stadium.title" + ], + [ + "names", + "stadium.appellation" + ], + [ + "locations of the stadiums", + "stadium.location" + ], + [ + "2014", + "concert.year" + ] + ], + "linking_list_idx": [ + [ + 0, + "stadium.name" + ], + [ + 0, + "stadium.title" + ], + [ + 0, + "stadium.appellation" + ], + [ + 1, + "stadium.location" + ], + [ + 2, + "concert.year" + ] + ], + "linking_list_col": [ + [ + "stadium.title", + "stadium.appellation" + ], + [ + "stadium.name", + "stadium.appellation" + ], + [ + "stadium.title", + "stadium.name" + ] + ] + }, + { + "question": "find the #maximum weight# for each type of pet. list the maximum weight and #pet type# .", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight", + "mass", + "body_weight" + ] + }, + "linking_list": [ + [ + "maximum weight", + "pets.weight" + ], + [ + "maximum weight", + "pets.mass" + ], + [ + "maximum weight", + "pets.body_weight" + ], + [ + "pet type", + "pets.pettype" + ] + ], + "linking_list_idx": [ + [ + 0, + "pets.weight" + ], + [ + 0, + "pets.mass" + ], + [ + 0, + "pets.body_weight" + ], + [ + 1, + "pets.pettype" + ] + ], + "linking_list_col": [ + [ + "pets.mass", + "pets.body_weight" + ], + [ + "pets.weight", + "pets.body_weight" + ], + [ + "pets.mass", + "pets.weight" + ] + ] + }, + { + "question": "list the #maximum weight# and type for each #type of pet# .", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight", + "mass", + "body_weight" + ] + }, + "linking_list": [ + [ + "maximum weight", + "pets.weight" + ], + [ + "maximum weight", + "pets.mass" + ], + [ + "maximum weight", + "pets.body_weight" + ], + [ + "type of pet", + "pets.pettype" + ] + ], + "linking_list_idx": [ + [ + 0, + "pets.weight" + ], + [ + 0, + "pets.mass" + ], + [ + 0, + "pets.body_weight" + ], + [ + 1, + "pets.pettype" + ] + ], + "linking_list_col": [ + [ + "pets.mass", + "pets.body_weight" + ], + [ + "pets.weight", + "pets.body_weight" + ], + [ + "pets.mass", + "pets.weight" + ] + ] + }, + { + "question": "find the number of distinct #type of pets# .", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight", + "type", + "kind" + ] + }, + "linking_list": [ + [ + "type of pets", + "pets.pettype" + ], + [ + "type of pets", + "pets.type" + ], + [ + "type of pets", + "pets.kind" + ] + ], + "linking_list_idx": [ + [ + 0, + "pets.pettype" + ], + [ + 0, + "pets.type" + ], + [ + 0, + "pets.kind" + ] + ], + "linking_list_col": [ + [ + "pets.type", + "pets.kind" + ], + [ + "pets.pettype", + "pets.kind" + ], + [ + "pets.type", + "pets.pettype" + ] + ] + }, + { + "question": "how many different #types of pet# are there?", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight", + "type", + "kind" + ] + }, + "linking_list": [ + [ + "types of pet", + "pets.pettype" + ], + [ + "types of pet", + "pets.type" + ], + [ + "types of pet", + "pets.kind" + ] + ], + "linking_list_idx": [ + [ + 0, + "pets.pettype" + ], + [ + 0, + "pets.type" + ], + [ + 0, + "pets.kind" + ] + ], + "linking_list_col": [ + [ + "pets.type", + "pets.kind" + ], + [ + "pets.pettype", + "pets.kind" + ], + [ + "pets.type", + "pets.pettype" + ] + ] + }, + { + "question": "find the #first name of students# who have #cat# or #dog# pet.", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code", + "given_name", + "first_name" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "first name of students", + "student.fname" + ], + [ + "first name of students", + "student.given_name" + ], + [ + "first name of students", + "student.first_name" + ], + [ + "cat", + "pets.pettype" + ], + [ + "dog", + "pets.pettype" + ] + ], + "linking_list_idx": [ + [ + 0, + "student.fname" + ], + [ + 0, + "student.given_name" + ], + [ + 0, + "student.first_name" + ], + [ + 1, + "pets.pettype" + ], + [ + 2, + "pets.pettype" + ] + ], + "linking_list_col": [ + [ + "student.given_name", + "student.first_name" + ], + [ + "student.fname", + "student.first_name" + ], + [ + "student.given_name", + "student.fname" + ] + ] + }, + { + "question": "what are the #first names# of every student who has a #cat# or dog as a pet?", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code", + "given_name", + "first_name" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "first names", + "student.fname" + ], + [ + "first names", + "student.given_name" + ], + [ + "first names", + "student.first_name" + ], + [ + "cat", + "pets.pettype" + ] + ], + "linking_list_idx": [ + [ + 0, + "student.fname" + ], + [ + 0, + "student.given_name" + ], + [ + 0, + "student.first_name" + ], + [ + 1, + "pets.pettype" + ] + ], + "linking_list_col": [ + [ + "student.given_name", + "student.first_name" + ], + [ + "student.fname", + "student.first_name" + ], + [ + "student.given_name", + "student.fname" + ] + ] + }, + { + "question": "what are the #students' first names# who have both #cats# and dogs as pets?", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code", + "given_name", + "first_name" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "cats", + "pets.pettype" + ], + [ + "students' first names", + "student.fname" + ], + [ + "students' first names", + "student.given_name" + ], + [ + "students' first names", + "student.first_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "pets.pettype" + ], + [ + 1, + "student.fname" + ], + [ + 1, + "student.given_name" + ], + [ + 1, + "student.first_name" + ] + ], + "linking_list_col": [ + [ + "student.given_name", + "student.first_name" + ], + [ + "student.fname", + "student.first_name" + ], + [ + "student.given_name", + "student.fname" + ] + ] + }, + { + "question": "find the #major# and #age of students# who do not have a #cat pet# .", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code", + "field_of_study", + "academic_discipline" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "major", + "student.major" + ], + [ + "major", + "student.field_of_study" + ], + [ + "major", + "student.academic_discipline" + ], + [ + "age of students", + "student.age" + ], + [ + "cat pet", + "pets.pettype" + ] + ], + "linking_list_idx": [ + [ + 0, + "student.major" + ], + [ + 0, + "student.field_of_study" + ], + [ + 0, + "student.academic_discipline" + ], + [ + 1, + "student.age" + ], + [ + 2, + "pets.pettype" + ] + ], + "linking_list_col": [ + [ + "student.field_of_study", + "student.academic_discipline" + ], + [ + "student.major", + "student.academic_discipline" + ], + [ + "student.field_of_study", + "student.major" + ] + ] + }, + { + "question": "what #major# is every student who does not own a #cat as a pet# , and also how old are they?", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code", + "field_of_study", + "academic_discipline" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "major", + "student.major" + ], + [ + "major", + "student.field_of_study" + ], + [ + "major", + "student.academic_discipline" + ], + [ + "cat as a pet", + "pets.pettype" + ] + ], + "linking_list_idx": [ + [ + 0, + "student.major" + ], + [ + 0, + "student.field_of_study" + ], + [ + 0, + "student.academic_discipline" + ], + [ + 1, + "pets.pettype" + ] + ], + "linking_list_col": [ + [ + "student.field_of_study", + "student.academic_discipline" + ], + [ + "student.major", + "student.academic_discipline" + ], + [ + "student.field_of_study", + "student.major" + ] + ] + }, + { + "question": "find the #id of students# who do not have a #cat pet# .", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code", + "id", + "student_id" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "id of students", + "student.stuid" + ], + [ + "id of students", + "student.id" + ], + [ + "id of students", + "student.student_id" + ], + [ + "cat pet", + "pets.pettype" + ] + ], + "linking_list_idx": [ + [ + 0, + "student.stuid" + ], + [ + 0, + "student.id" + ], + [ + 0, + "student.student_id" + ], + [ + 1, + "pets.pettype" + ] + ], + "linking_list_col": [ + [ + "student.id", + "student.student_id" + ], + [ + "student.stuid", + "student.student_id" + ], + [ + "student.id", + "student.stuid" + ] + ] + }, + { + "question": "what are the #ids of the students# who do not own cats as pets?", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code", + "id", + "student_id" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "ids of the students", + "student.stuid" + ], + [ + "ids of the students", + "student.id" + ], + [ + "ids of the students", + "student.student_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "student.stuid" + ], + [ + 0, + "student.id" + ], + [ + 0, + "student.student_id" + ] + ], + "linking_list_col": [ + [ + "student.id", + "student.student_id" + ], + [ + "student.stuid", + "student.student_id" + ], + [ + "student.id", + "student.stuid" + ] + ] + }, + { + "question": "find the #first name# and #age of students# who have a #dog# but do not have a #cat as a pet# .", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code", + "given_name", + "first_name" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "first name", + "student.fname" + ], + [ + "first name", + "student.given_name" + ], + [ + "first name", + "student.first_name" + ], + [ + "age of students", + "student.age" + ], + [ + "dog", + "pets.pettype" + ], + [ + "cat as a pet", + "pets.pettype" + ] + ], + "linking_list_idx": [ + [ + 0, + "student.fname" + ], + [ + 0, + "student.given_name" + ], + [ + 0, + "student.first_name" + ], + [ + 1, + "student.age" + ], + [ + 2, + "pets.pettype" + ], + [ + 3, + "pets.pettype" + ] + ], + "linking_list_col": [ + [ + "student.given_name", + "student.first_name" + ], + [ + "student.fname", + "student.first_name" + ], + [ + "student.given_name", + "student.fname" + ] + ] + }, + { + "question": "what is the #first name# of every student who has a #dog# but does not have a cat?", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code", + "given_name", + "first_name" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "first name", + "student.fname" + ], + [ + "first name", + "student.given_name" + ], + [ + "first name", + "student.first_name" + ], + [ + "dog", + "pets.pettype" + ] + ], + "linking_list_idx": [ + [ + 0, + "student.fname" + ], + [ + 0, + "student.given_name" + ], + [ + 0, + "student.first_name" + ], + [ + 1, + "pets.pettype" + ] + ], + "linking_list_col": [ + [ + "student.given_name", + "student.first_name" + ], + [ + "student.fname", + "student.first_name" + ], + [ + "student.given_name", + "student.fname" + ] + ] + }, + { + "question": "find the #type# and #weight of the youngest pet# .", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight", + "mass", + "body_weight" + ] + }, + "linking_list": [ + [ + "type", + "pets.pettype" + ], + [ + "weight of the youngest pet", + "pets.weight" + ], + [ + "weight of the youngest pet", + "pets.mass" + ], + [ + "weight of the youngest pet", + "pets.body_weight" + ] + ], + "linking_list_idx": [ + [ + 0, + "pets.pettype" + ], + [ + 1, + "pets.weight" + ], + [ + 1, + "pets.mass" + ], + [ + 1, + "pets.body_weight" + ] + ], + "linking_list_col": [ + [ + "pets.mass", + "pets.body_weight" + ], + [ + "pets.weight", + "pets.body_weight" + ], + [ + "pets.mass", + "pets.weight" + ] + ] + }, + { + "question": "find the #id# and #weight# of all pets whose #age# is older than 1.", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight", + "id", + "identifier" + ] + }, + "linking_list": [ + [ + "id", + "pets.petid" + ], + [ + "id", + "pets.id" + ], + [ + "id", + "pets.identifier" + ], + [ + "weight", + "pets.weight" + ], + [ + "age", + "pets.pet_age" + ] + ], + "linking_list_idx": [ + [ + 0, + "pets.petid" + ], + [ + 0, + "pets.id" + ], + [ + 0, + "pets.identifier" + ], + [ + 1, + "pets.weight" + ], + [ + 2, + "pets.pet_age" + ] + ], + "linking_list_col": [ + [ + "pets.id", + "pets.identifier" + ], + [ + "pets.petid", + "pets.identifier" + ], + [ + "pets.id", + "pets.petid" + ] + ] + }, + { + "question": "what is the #id# and #weight# of every pet who is older than 1?", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight", + "id", + "identifier" + ] + }, + "linking_list": [ + [ + "id", + "pets.petid" + ], + [ + "id", + "pets.id" + ], + [ + "id", + "pets.identifier" + ], + [ + "weight", + "pets.weight" + ] + ], + "linking_list_idx": [ + [ + 0, + "pets.petid" + ], + [ + 0, + "pets.id" + ], + [ + 0, + "pets.identifier" + ], + [ + 1, + "pets.weight" + ] + ], + "linking_list_col": [ + [ + "pets.id", + "pets.identifier" + ], + [ + "pets.petid", + "pets.identifier" + ], + [ + "pets.id", + "pets.petid" + ] + ] + }, + { + "question": "find the #average and maximum age for each type of pet# .", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight", + "age", + "years_old" + ] + }, + "linking_list": [ + [ + "average and maximum age for each type of pet", + "pets.pet_age" + ], + [ + "average and maximum age for each type of pet", + "pets.age" + ], + [ + "average and maximum age for each type of pet", + "pets.years_old" + ] + ], + "linking_list_idx": [ + [ + 0, + "pets.pet_age" + ], + [ + 0, + "pets.age" + ], + [ + 0, + "pets.years_old" + ] + ], + "linking_list_col": [ + [ + "pets.age", + "pets.years_old" + ], + [ + "pets.pet_age", + "pets.years_old" + ], + [ + "pets.age", + "pets.pet_age" + ] + ] + }, + { + "question": "find the #average weight for each pet type# .", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight", + "mass", + "body_weight" + ] + }, + "linking_list": [ + [ + "average weight for each pet type", + "pets.weight" + ], + [ + "average weight for each pet type", + "pets.mass" + ], + [ + "average weight for each pet type", + "pets.body_weight" + ] + ], + "linking_list_idx": [ + [ + 0, + "pets.weight" + ], + [ + 0, + "pets.mass" + ], + [ + 0, + "pets.body_weight" + ] + ], + "linking_list_col": [ + [ + "pets.mass", + "pets.body_weight" + ], + [ + "pets.weight", + "pets.body_weight" + ], + [ + "pets.mass", + "pets.weight" + ] + ] + }, + { + "question": "find the #first name# and #age of students# who have a pet.", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code", + "given_name", + "first_name" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "first name", + "student.fname" + ], + [ + "first name", + "student.given_name" + ], + [ + "first name", + "student.first_name" + ], + [ + "age of students", + "student.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "student.fname" + ], + [ + 0, + "student.given_name" + ], + [ + 0, + "student.first_name" + ], + [ + 1, + "student.age" + ] + ], + "linking_list_col": [ + [ + "student.given_name", + "student.first_name" + ], + [ + "student.fname", + "student.first_name" + ], + [ + "student.given_name", + "student.fname" + ] + ] + }, + { + "question": "what are the different #first names# and #ages of the students# who do have pets?", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code", + "given_name", + "first_name" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "first names", + "student.fname" + ], + [ + "first names", + "student.given_name" + ], + [ + "first names", + "student.first_name" + ], + [ + "ages of the students", + "student.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "student.fname" + ], + [ + 0, + "student.given_name" + ], + [ + 0, + "student.first_name" + ], + [ + 1, + "student.age" + ] + ], + "linking_list_col": [ + [ + "student.given_name", + "student.first_name" + ], + [ + "student.fname", + "student.first_name" + ], + [ + "student.given_name", + "student.fname" + ] + ] + }, + { + "question": "find the #first name# and #gender of student# who have more than one pet.", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code", + "given_name", + "first_name" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "first name", + "student.fname" + ], + [ + "first name", + "student.given_name" + ], + [ + "first name", + "student.first_name" + ], + [ + "gender of student", + "student.sex" + ] + ], + "linking_list_idx": [ + [ + 0, + "student.fname" + ], + [ + 0, + "student.given_name" + ], + [ + 0, + "student.first_name" + ], + [ + 1, + "student.sex" + ] + ], + "linking_list_col": [ + [ + "student.given_name", + "student.first_name" + ], + [ + "student.fname", + "student.first_name" + ], + [ + "student.given_name", + "student.fname" + ] + ] + }, + { + "question": "what is the #first name# and #gender of the all the students# who have more than one pet?", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code", + "given_name", + "first_name" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "first name", + "student.fname" + ], + [ + "first name", + "student.given_name" + ], + [ + "first name", + "student.first_name" + ], + [ + "gender of the all the students", + "student.sex" + ] + ], + "linking_list_idx": [ + [ + 0, + "student.fname" + ], + [ + 0, + "student.given_name" + ], + [ + 0, + "student.first_name" + ], + [ + 1, + "student.sex" + ] + ], + "linking_list_col": [ + [ + "student.given_name", + "student.first_name" + ], + [ + "student.fname", + "student.first_name" + ], + [ + "student.given_name", + "student.fname" + ] + ] + }, + { + "question": "find the #last name of the student# who has a #cat that is age# 3.", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code", + "family_name", + "surname" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "last name of the student", + "student.lname" + ], + [ + "last name of the student", + "student.family_name" + ], + [ + "last name of the student", + "student.surname" + ], + [ + "cat that is age", + "pets.pettype" + ] + ], + "linking_list_idx": [ + [ + 0, + "student.lname" + ], + [ + 0, + "student.family_name" + ], + [ + 0, + "student.surname" + ], + [ + 1, + "pets.pettype" + ] + ], + "linking_list_col": [ + [ + "student.family_name", + "student.surname" + ], + [ + "student.lname", + "student.surname" + ], + [ + "student.family_name", + "student.lname" + ] + ] + }, + { + "question": "what is the #last name of the student# who has a cat that is 3 years old?", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code", + "family_name", + "surname" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "last name of the student", + "student.lname" + ], + [ + "last name of the student", + "student.family_name" + ], + [ + "last name of the student", + "student.surname" + ] + ], + "linking_list_idx": [ + [ + 0, + "student.lname" + ], + [ + 0, + "student.family_name" + ], + [ + 0, + "student.surname" + ] + ], + "linking_list_col": [ + [ + "student.family_name", + "student.surname" + ], + [ + "student.lname", + "student.surname" + ], + [ + "student.family_name", + "student.lname" + ] + ] + }, + { + "question": "how many countries does each continent have? list the #continent id# , #continent name# and the number of countries.", + "db_schema": { + "continents": [ + "contid", + "continent", + "continentname", + "area" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "continent id", + "continents.contid" + ], + [ + "continent name", + "continents.continent" + ], + [ + "continent name", + "continents.continentname" + ], + [ + "continent name", + "continents.area" + ] + ], + "linking_list_idx": [ + [ + 0, + "continents.contid" + ], + [ + 1, + "continents.continent" + ], + [ + 1, + "continents.continentname" + ], + [ + 1, + "continents.area" + ] + ], + "linking_list_col": [ + [ + "continents.continentname", + "continents.area" + ], + [ + "continents.continent", + "continents.area" + ], + [ + "continents.continentname", + "continents.continent" + ] + ] + }, + { + "question": "how many #models# does each car maker produce? list #maker full name# , #id# and the number.", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country", + "maker_id", + "serial_id" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "models", + "model_list.model" + ], + [ + "maker full name", + "car_makers.fullname" + ], + [ + "id", + "car_makers.id" + ], + [ + "id", + "car_makers.maker_id" + ], + [ + "id", + "car_makers.serial_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "model_list.model" + ], + [ + 1, + "car_makers.fullname" + ], + [ + 2, + "car_makers.id" + ], + [ + 2, + "car_makers.maker_id" + ], + [ + 2, + "car_makers.serial_id" + ] + ], + "linking_list_col": [ + [ + "car_makers.maker_id", + "car_makers.serial_id" + ], + [ + "car_makers.id", + "car_makers.serial_id" + ], + [ + "car_makers.maker_id", + "car_makers.id" + ] + ] + }, + { + "question": "what is the #full name of each car maker# , along with its #id# and how many #models# it produces?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country", + "maker_id", + "serial_id" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "full name of each car maker", + "car_makers.fullname" + ], + [ + "id", + "car_makers.id" + ], + [ + "id", + "car_makers.maker_id" + ], + [ + "id", + "car_makers.serial_id" + ], + [ + "models", + "model_list.model" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_makers.fullname" + ], + [ + 1, + "car_makers.id" + ], + [ + 1, + "car_makers.maker_id" + ], + [ + 1, + "car_makers.serial_id" + ], + [ + 2, + "model_list.model" + ] + ], + "linking_list_col": [ + [ + "car_makers.maker_id", + "car_makers.serial_id" + ], + [ + "car_makers.id", + "car_makers.serial_id" + ], + [ + "car_makers.maker_id", + "car_makers.id" + ] + ] + }, + { + "question": "which #model# of the car has the minimum horsepower?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make", + "vehicle_model", + "designation" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "model", + "car_names.model" + ], + [ + "model", + "car_names.vehicle_model" + ], + [ + "model", + "car_names.designation" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_names.model" + ], + [ + 0, + "car_names.vehicle_model" + ], + [ + 0, + "car_names.designation" + ] + ], + "linking_list_col": [ + [ + "car_names.vehicle_model", + "car_names.designation" + ], + [ + "car_names.model", + "car_names.designation" + ], + [ + "car_names.vehicle_model", + "car_names.model" + ] + ] + }, + { + "question": "what is the #model# of the car with the smallest amount of horsepower?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make", + "vehicle_model", + "designation" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "model", + "car_names.model" + ], + [ + "model", + "car_names.vehicle_model" + ], + [ + "model", + "car_names.designation" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_names.model" + ], + [ + 0, + "car_names.vehicle_model" + ], + [ + 0, + "car_names.designation" + ] + ], + "linking_list_col": [ + [ + "car_names.vehicle_model", + "car_names.designation" + ], + [ + "car_names.model", + "car_names.designation" + ], + [ + "car_names.vehicle_model", + "car_names.model" + ] + ] + }, + { + "question": "find the #model# of the car whose #weight# is below the average weight.", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make", + "vehicle_model", + "designation" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "model", + "car_names.model" + ], + [ + "model", + "car_names.vehicle_model" + ], + [ + "model", + "car_names.designation" + ], + [ + "weight", + "cars_data.weight" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_names.model" + ], + [ + 0, + "car_names.vehicle_model" + ], + [ + 0, + "car_names.designation" + ], + [ + 1, + "cars_data.weight" + ] + ], + "linking_list_col": [ + [ + "car_names.vehicle_model", + "car_names.designation" + ], + [ + "car_names.model", + "car_names.designation" + ], + [ + "car_names.vehicle_model", + "car_names.model" + ] + ] + }, + { + "question": "what is the #model# for the car with a #weight# smaller than the average?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make", + "vehicle_model", + "designation" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "model", + "car_names.model" + ], + [ + "model", + "car_names.vehicle_model" + ], + [ + "model", + "car_names.designation" + ], + [ + "weight", + "cars_data.weight" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_names.model" + ], + [ + 0, + "car_names.vehicle_model" + ], + [ + 0, + "car_names.designation" + ], + [ + 1, + "cars_data.weight" + ] + ], + "linking_list_col": [ + [ + "car_names.vehicle_model", + "car_names.designation" + ], + [ + "car_names.model", + "car_names.designation" + ], + [ + "car_names.vehicle_model", + "car_names.model" + ] + ] + }, + { + "question": "find the #name of the makers# that produced some cars in the #year# of 1970?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country", + "brand", + "manufacturer" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "name of the makers", + "car_makers.maker" + ], + [ + "name of the makers", + "car_makers.brand" + ], + [ + "name of the makers", + "car_makers.manufacturer" + ], + [ + "year", + "cars_data.year" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_makers.maker" + ], + [ + 0, + "car_makers.brand" + ], + [ + 0, + "car_makers.manufacturer" + ], + [ + 1, + "cars_data.year" + ] + ], + "linking_list_col": [ + [ + "car_makers.brand", + "car_makers.manufacturer" + ], + [ + "car_makers.maker", + "car_makers.manufacturer" + ], + [ + "car_makers.brand", + "car_makers.maker" + ] + ] + }, + { + "question": "what is the #name# of the different car makers who produced a car in 1970?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country", + "brand", + "manufacturer" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "name", + "car_makers.maker" + ], + [ + "name", + "car_makers.brand" + ], + [ + "name", + "car_makers.manufacturer" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_makers.maker" + ], + [ + 0, + "car_makers.brand" + ], + [ + 0, + "car_makers.manufacturer" + ] + ], + "linking_list_col": [ + [ + "car_makers.brand", + "car_makers.manufacturer" + ], + [ + "car_makers.maker", + "car_makers.manufacturer" + ], + [ + "car_makers.brand", + "car_makers.maker" + ] + ] + }, + { + "question": "find the #make# and #production time of the cars# that were produced in the earliest year?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year", + "manufacturing_year", + "production_year" + ] + }, + "linking_list": [ + [ + "make", + "car_names.make" + ], + [ + "production time of the cars", + "cars_data.year" + ], + [ + "production time of the cars", + "cars_data.manufacturing_year" + ], + [ + "production time of the cars", + "cars_data.production_year" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_names.make" + ], + [ + 1, + "cars_data.year" + ], + [ + 1, + "cars_data.manufacturing_year" + ], + [ + 1, + "cars_data.production_year" + ] + ], + "linking_list_col": [ + [ + "cars_data.manufacturing_year", + "cars_data.production_year" + ], + [ + "cars_data.year", + "cars_data.production_year" + ], + [ + "cars_data.manufacturing_year", + "cars_data.year" + ] + ] + }, + { + "question": "what is the #maker# of the carr produced in the earliest #year# and what year was it?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year", + "manufacturing_year", + "production_year" + ] + }, + "linking_list": [ + [ + "maker", + "car_names.make" + ], + [ + "year", + "cars_data.year" + ], + [ + "year", + "cars_data.manufacturing_year" + ], + [ + "year", + "cars_data.production_year" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_names.make" + ], + [ + 1, + "cars_data.year" + ], + [ + 1, + "cars_data.manufacturing_year" + ], + [ + 1, + "cars_data.production_year" + ] + ], + "linking_list_col": [ + [ + "cars_data.manufacturing_year", + "cars_data.production_year" + ], + [ + "cars_data.year", + "cars_data.production_year" + ], + [ + "cars_data.manufacturing_year", + "cars_data.year" + ] + ] + }, + { + "question": "which distinct #car models# are the produced after 1980?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model", + "model_name", + "vehicle_name" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "car models", + "model_list.model" + ], + [ + "car models", + "model_list.model_name" + ], + [ + "car models", + "model_list.vehicle_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "model_list.model" + ], + [ + 0, + "model_list.model_name" + ], + [ + 0, + "model_list.vehicle_name" + ] + ], + "linking_list_col": [ + [ + "model_list.model_name", + "model_list.vehicle_name" + ], + [ + "model_list.model", + "model_list.vehicle_name" + ], + [ + "model_list.model_name", + "model_list.model" + ] + ] + }, + { + "question": "what are the different #models# for the cards produced after 1980?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model", + "model_name", + "vehicle_name" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "models", + "model_list.model" + ], + [ + "models", + "model_list.model_name" + ], + [ + "models", + "model_list.vehicle_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "model_list.model" + ], + [ + 0, + "model_list.model_name" + ], + [ + 0, + "model_list.vehicle_name" + ] + ], + "linking_list_col": [ + [ + "model_list.model_name", + "model_list.vehicle_name" + ], + [ + "model_list.model", + "model_list.vehicle_name" + ], + [ + "model_list.model_name", + "model_list.model" + ] + ] + }, + { + "question": "how many car makers are there in each continents? list the #continent name# and the count.", + "db_schema": { + "continents": [ + "contid", + "continent", + "continentname", + "area" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "continent name", + "continents.continent" + ], + [ + "continent name", + "continents.continentname" + ], + [ + "continent name", + "continents.area" + ] + ], + "linking_list_idx": [ + [ + 0, + "continents.continent" + ], + [ + 0, + "continents.continentname" + ], + [ + 0, + "continents.area" + ] + ], + "linking_list_col": [ + [ + "continents.continentname", + "continents.area" + ], + [ + "continents.continent", + "continents.area" + ], + [ + "continents.continentname", + "continents.continent" + ] + ] + }, + { + "question": "what is the #name of each continent# and how many car makers are there in each one?", + "db_schema": { + "continents": [ + "contid", + "continent", + "continentname", + "area" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "name of each continent", + "continents.continent" + ], + [ + "name of each continent", + "continents.continentname" + ], + [ + "name of each continent", + "continents.area" + ] + ], + "linking_list_idx": [ + [ + 0, + "continents.continent" + ], + [ + 0, + "continents.continentname" + ], + [ + 0, + "continents.area" + ] + ], + "linking_list_col": [ + [ + "continents.continentname", + "continents.area" + ], + [ + "continents.continent", + "continents.area" + ], + [ + "continents.continentname", + "continents.continent" + ] + ] + }, + { + "question": "which of the countries has the most car makers? list the #country name# .", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent", + "name", + "nationname" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "country name", + "countries.countryname" + ], + [ + "country name", + "countries.name" + ], + [ + "country name", + "countries.nationname" + ] + ], + "linking_list_idx": [ + [ + 0, + "countries.countryname" + ], + [ + 0, + "countries.name" + ], + [ + 0, + "countries.nationname" + ] + ], + "linking_list_col": [ + [ + "countries.name", + "countries.nationname" + ], + [ + "countries.countryname", + "countries.nationname" + ], + [ + "countries.name", + "countries.countryname" + ] + ] + }, + { + "question": "what is the #number of car models# that are produced by each maker and what is the #id# and full name of each maker?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country", + "maker_id", + "serial_id" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "number of car models", + "model_list.model" + ], + [ + "id", + "car_makers.id" + ], + [ + "id", + "car_makers.maker_id" + ], + [ + "id", + "car_makers.serial_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "model_list.model" + ], + [ + 1, + "car_makers.id" + ], + [ + 1, + "car_makers.maker_id" + ], + [ + 1, + "car_makers.serial_id" + ] + ], + "linking_list_col": [ + [ + "car_makers.maker_id", + "car_makers.serial_id" + ], + [ + "car_makers.id", + "car_makers.serial_id" + ], + [ + "car_makers.maker_id", + "car_makers.id" + ] + ] + }, + { + "question": "what is the #accelerate of the car make# amc hornet sportabout (sw)?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year", + "acceleration", + "velocity" + ] + }, + "linking_list": [ + [ + "accelerate of the car make", + "cars_data.accelerate" + ], + [ + "accelerate of the car make", + "cars_data.acceleration" + ], + [ + "accelerate of the car make", + "cars_data.velocity" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.accelerate" + ], + [ + 0, + "cars_data.acceleration" + ], + [ + 0, + "cars_data.velocity" + ] + ], + "linking_list_col": [ + [ + "cars_data.acceleration", + "cars_data.velocity" + ], + [ + "cars_data.accelerate", + "cars_data.velocity" + ], + [ + "cars_data.acceleration", + "cars_data.accelerate" + ] + ] + }, + { + "question": "how much does the car #accelerate# that makes amc hornet sportabout (sw)?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year", + "acceleration", + "velocity" + ] + }, + "linking_list": [ + [ + "accelerate", + "cars_data.accelerate" + ], + [ + "accelerate", + "cars_data.acceleration" + ], + [ + "accelerate", + "cars_data.velocity" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.accelerate" + ], + [ + 0, + "cars_data.acceleration" + ], + [ + 0, + "cars_data.velocity" + ] + ], + "linking_list_col": [ + [ + "cars_data.acceleration", + "cars_data.velocity" + ], + [ + "cars_data.accelerate", + "cars_data.velocity" + ], + [ + "cars_data.acceleration", + "cars_data.accelerate" + ] + ] + }, + { + "question": "what is the #average miles per gallon# of all the cards with 4 cylinders?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year", + "fuel_efficiency", + "mileage_per_gallon" + ] + }, + "linking_list": [ + [ + "average miles per gallon", + "cars_data.mpg" + ], + [ + "average miles per gallon", + "cars_data.fuel_efficiency" + ], + [ + "average miles per gallon", + "cars_data.mileage_per_gallon" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.mpg" + ], + [ + 0, + "cars_data.fuel_efficiency" + ], + [ + 0, + "cars_data.mileage_per_gallon" + ] + ], + "linking_list_col": [ + [ + "cars_data.fuel_efficiency", + "cars_data.mileage_per_gallon" + ], + [ + "cars_data.mpg", + "cars_data.mileage_per_gallon" + ], + [ + "cars_data.fuel_efficiency", + "cars_data.mpg" + ] + ] + }, + { + "question": "what are all the #makers# and models?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model", + "manufacturer", + "brand" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "makers", + "model_list.maker" + ], + [ + "makers", + "model_list.manufacturer" + ], + [ + "makers", + "model_list.brand" + ] + ], + "linking_list_idx": [ + [ + 0, + "model_list.maker" + ], + [ + 0, + "model_list.manufacturer" + ], + [ + 0, + "model_list.brand" + ] + ], + "linking_list_col": [ + [ + "model_list.manufacturer", + "model_list.brand" + ], + [ + "model_list.maker", + "model_list.brand" + ], + [ + "model_list.manufacturer", + "model_list.maker" + ] + ] + }, + { + "question": "what are the #makers# and models?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model", + "manufacturer", + "brand" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "makers", + "model_list.maker" + ], + [ + "makers", + "model_list.manufacturer" + ], + [ + "makers", + "model_list.brand" + ] + ], + "linking_list_idx": [ + [ + 0, + "model_list.maker" + ], + [ + 0, + "model_list.manufacturer" + ], + [ + 0, + "model_list.brand" + ] + ], + "linking_list_col": [ + [ + "model_list.manufacturer", + "model_list.brand" + ], + [ + "model_list.maker", + "model_list.brand" + ], + [ + "model_list.manufacturer", + "model_list.maker" + ] + ] + }, + { + "question": "what are the countries having at least one car maker? list #name# and #id# .", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent", + "id", + "nationid" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "name", + "countries.countryname" + ], + [ + "id", + "countries.countryid" + ], + [ + "id", + "countries.id" + ], + [ + "id", + "countries.nationid" + ] + ], + "linking_list_idx": [ + [ + 0, + "countries.countryname" + ], + [ + 1, + "countries.countryid" + ], + [ + 1, + "countries.id" + ], + [ + 1, + "countries.nationid" + ] + ], + "linking_list_col": [ + [ + "countries.id", + "countries.nationid" + ], + [ + "countries.countryid", + "countries.nationid" + ], + [ + "countries.id", + "countries.countryid" + ] + ] + }, + { + "question": "what are the #names# and #ids of all countries# with at least one car maker?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent", + "id", + "nationid" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "names", + "countries.countryname" + ], + [ + "ids of all countries", + "countries.countryid" + ], + [ + "ids of all countries", + "countries.id" + ], + [ + "ids of all countries", + "countries.nationid" + ] + ], + "linking_list_idx": [ + [ + 0, + "countries.countryname" + ], + [ + 1, + "countries.countryid" + ], + [ + 1, + "countries.id" + ], + [ + 1, + "countries.nationid" + ] + ], + "linking_list_col": [ + [ + "countries.id", + "countries.nationid" + ], + [ + "countries.countryid", + "countries.nationid" + ], + [ + "countries.id", + "countries.countryid" + ] + ] + }, + { + "question": "which #countries in europe# have at least 3 car manufacturers?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent", + "name", + "nationname" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "countries in europe", + "countries.countryname" + ], + [ + "countries in europe", + "countries.name" + ], + [ + "countries in europe", + "countries.nationname" + ] + ], + "linking_list_idx": [ + [ + 0, + "countries.countryname" + ], + [ + 0, + "countries.name" + ], + [ + 0, + "countries.nationname" + ] + ], + "linking_list_col": [ + [ + "countries.name", + "countries.nationname" + ], + [ + "countries.countryname", + "countries.nationname" + ], + [ + "countries.name", + "countries.countryname" + ] + ] + }, + { + "question": "what is the #maximum horsepower# and the make of the car models with 3 cylinders?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year", + "power", + "torque" + ] + }, + "linking_list": [ + [ + "maximum horsepower", + "cars_data.horsepower" + ], + [ + "maximum horsepower", + "cars_data.power" + ], + [ + "maximum horsepower", + "cars_data.torque" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.horsepower" + ], + [ + 0, + "cars_data.power" + ], + [ + 0, + "cars_data.torque" + ] + ], + "linking_list_col": [ + [ + "cars_data.power", + "cars_data.torque" + ], + [ + "cars_data.horsepower", + "cars_data.torque" + ], + [ + "cars_data.power", + "cars_data.horsepower" + ] + ] + }, + { + "question": "what is the largest amount of #horsepower for the models# with 3 #cylinders# and what #make# is it?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year", + "power", + "torque" + ] + }, + "linking_list": [ + [ + "horsepower for the models", + "cars_data.horsepower" + ], + [ + "horsepower for the models", + "cars_data.power" + ], + [ + "horsepower for the models", + "cars_data.torque" + ], + [ + "cylinders", + "cars_data.cylinders" + ], + [ + "make", + "car_names.make" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.horsepower" + ], + [ + 0, + "cars_data.power" + ], + [ + 0, + "cars_data.torque" + ], + [ + 1, + "cars_data.cylinders" + ], + [ + 2, + "car_names.make" + ] + ], + "linking_list_col": [ + [ + "cars_data.power", + "cars_data.torque" + ], + [ + "cars_data.horsepower", + "cars_data.torque" + ], + [ + "cars_data.power", + "cars_data.horsepower" + ] + ] + }, + { + "question": "which #model# saves the most gasoline? that is to say, have the maximum #miles per gallon# .", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make", + "vehicle_model", + "designation" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "model", + "car_names.model" + ], + [ + "model", + "car_names.vehicle_model" + ], + [ + "model", + "car_names.designation" + ], + [ + "miles per gallon", + "cars_data.mpg" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_names.model" + ], + [ + 0, + "car_names.vehicle_model" + ], + [ + 0, + "car_names.designation" + ], + [ + 1, + "cars_data.mpg" + ] + ], + "linking_list_col": [ + [ + "car_names.vehicle_model", + "car_names.designation" + ], + [ + "car_names.model", + "car_names.designation" + ], + [ + "car_names.vehicle_model", + "car_names.model" + ] + ] + }, + { + "question": "what is the #average edispl of the cars of model# volvo?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year", + "engine_displacement", + "engine_size" + ] + }, + "linking_list": [ + [ + "average edispl of the cars of model", + "cars_data.edispl" + ], + [ + "average edispl of the cars of model", + "cars_data.engine_displacement" + ], + [ + "average edispl of the cars of model", + "cars_data.engine_size" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.edispl" + ], + [ + 0, + "cars_data.engine_displacement" + ], + [ + 0, + "cars_data.engine_size" + ] + ], + "linking_list_col": [ + [ + "cars_data.engine_displacement", + "cars_data.engine_size" + ], + [ + "cars_data.edispl", + "cars_data.engine_size" + ], + [ + "cars_data.engine_displacement", + "cars_data.edispl" + ] + ] + }, + { + "question": "which #model# has the most version(make) of cars?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make", + "vehicle_model", + "designation" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "model", + "car_names.model" + ], + [ + "model", + "car_names.vehicle_model" + ], + [ + "model", + "car_names.designation" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_names.model" + ], + [ + 0, + "car_names.vehicle_model" + ], + [ + 0, + "car_names.designation" + ] + ], + "linking_list_col": [ + [ + "car_names.vehicle_model", + "car_names.designation" + ], + [ + "car_names.model", + "car_names.designation" + ], + [ + "car_names.vehicle_model", + "car_names.model" + ] + ] + }, + { + "question": "what #model# has the most different versions?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make", + "vehicle_model", + "designation" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "model", + "car_names.model" + ], + [ + "model", + "car_names.vehicle_model" + ], + [ + "model", + "car_names.designation" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_names.model" + ], + [ + 0, + "car_names.vehicle_model" + ], + [ + 0, + "car_names.designation" + ] + ], + "linking_list_col": [ + [ + "car_names.vehicle_model", + "car_names.designation" + ], + [ + "car_names.model", + "car_names.designation" + ], + [ + "car_names.vehicle_model", + "car_names.model" + ] + ] + }, + { + "question": "which makers designed more than 3 car models? list #full name# and the #id# .", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country", + "maker_id", + "serial_id" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "full name", + "car_makers.fullname" + ], + [ + "id", + "car_makers.id" + ], + [ + "id", + "car_makers.maker_id" + ], + [ + "id", + "car_makers.serial_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_makers.fullname" + ], + [ + 1, + "car_makers.id" + ], + [ + 1, + "car_makers.maker_id" + ], + [ + 1, + "car_makers.serial_id" + ] + ], + "linking_list_col": [ + [ + "car_makers.maker_id", + "car_makers.serial_id" + ], + [ + "car_makers.id", + "car_makers.serial_id" + ], + [ + "car_makers.maker_id", + "car_makers.id" + ] + ] + }, + { + "question": "what are the #names# and #ids of all makers# with more than 3 models?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country", + "maker_id", + "serial_id" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "names", + "car_makers.fullname" + ], + [ + "ids of all makers", + "car_makers.id" + ], + [ + "ids of all makers", + "car_makers.maker_id" + ], + [ + "ids of all makers", + "car_makers.serial_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_makers.fullname" + ], + [ + 1, + "car_makers.id" + ], + [ + 1, + "car_makers.maker_id" + ], + [ + 1, + "car_makers.serial_id" + ] + ], + "linking_list_col": [ + [ + "car_makers.maker_id", + "car_makers.serial_id" + ], + [ + "car_makers.id", + "car_makers.serial_id" + ], + [ + "car_makers.maker_id", + "car_makers.id" + ] + ] + }, + { + "question": "which #distinctive models# are produced by maker with the full name general motors or weighing more than 3500?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model", + "model_name", + "vehicle_name" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "distinctive models", + "model_list.model" + ], + [ + "distinctive models", + "model_list.model_name" + ], + [ + "distinctive models", + "model_list.vehicle_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "model_list.model" + ], + [ + 0, + "model_list.model_name" + ], + [ + 0, + "model_list.vehicle_name" + ] + ], + "linking_list_col": [ + [ + "model_list.model_name", + "model_list.vehicle_name" + ], + [ + "model_list.model", + "model_list.vehicle_name" + ], + [ + "model_list.model_name", + "model_list.model" + ] + ] + }, + { + "question": "what are the different #models# created by either the #car maker general motors# or weighed more than 3500?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model", + "model_name", + "vehicle_name" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "models", + "model_list.model" + ], + [ + "models", + "model_list.model_name" + ], + [ + "models", + "model_list.vehicle_name" + ], + [ + "car maker General Motors", + "car_makers.fullname" + ] + ], + "linking_list_idx": [ + [ + 0, + "model_list.model" + ], + [ + 0, + "model_list.model_name" + ], + [ + 0, + "model_list.vehicle_name" + ], + [ + 1, + "car_makers.fullname" + ] + ], + "linking_list_col": [ + [ + "model_list.model_name", + "model_list.vehicle_name" + ], + [ + "model_list.model", + "model_list.vehicle_name" + ], + [ + "model_list.model_name", + "model_list.model" + ] + ] + }, + { + "question": "what is the #horsepower of the car# with the largest accelerate?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year", + "power", + "torque" + ] + }, + "linking_list": [ + [ + "horsepower of the car", + "cars_data.horsepower" + ], + [ + "horsepower of the car", + "cars_data.power" + ], + [ + "horsepower of the car", + "cars_data.torque" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.horsepower" + ], + [ + 0, + "cars_data.power" + ], + [ + 0, + "cars_data.torque" + ] + ], + "linking_list_col": [ + [ + "cars_data.power", + "cars_data.torque" + ], + [ + "cars_data.horsepower", + "cars_data.torque" + ], + [ + "cars_data.power", + "cars_data.horsepower" + ] + ] + }, + { + "question": "what is the #horsepower# of the car with the greatest accelerate?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year", + "power", + "torque" + ] + }, + "linking_list": [ + [ + "horsepower", + "cars_data.horsepower" + ], + [ + "horsepower", + "cars_data.power" + ], + [ + "horsepower", + "cars_data.torque" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.horsepower" + ], + [ + 0, + "cars_data.power" + ], + [ + 0, + "cars_data.torque" + ] + ], + "linking_list_col": [ + [ + "cars_data.power", + "cars_data.torque" + ], + [ + "cars_data.horsepower", + "cars_data.torque" + ], + [ + "cars_data.power", + "cars_data.horsepower" + ] + ] + }, + { + "question": "for #model# volvo, how many #cylinders# does the car with the least #accelerate# have?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year", + "engine_cylinders", + "pistons" + ] + }, + "linking_list": [ + [ + "model", + "car_names.model" + ], + [ + "cylinders", + "cars_data.cylinders" + ], + [ + "cylinders", + "cars_data.engine_cylinders" + ], + [ + "cylinders", + "cars_data.pistons" + ], + [ + "accelerate", + "cars_data.accelerate" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_names.model" + ], + [ + 1, + "cars_data.cylinders" + ], + [ + 1, + "cars_data.engine_cylinders" + ], + [ + 1, + "cars_data.pistons" + ], + [ + 2, + "cars_data.accelerate" + ] + ], + "linking_list_col": [ + [ + "cars_data.engine_cylinders", + "cars_data.pistons" + ], + [ + "cars_data.cylinders", + "cars_data.pistons" + ], + [ + "cars_data.engine_cylinders", + "cars_data.cylinders" + ] + ] + }, + { + "question": "for a #volvo model# , how many #cylinders# does the version with #least accelerate# have?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year", + "engine_cylinders", + "pistons" + ] + }, + "linking_list": [ + [ + "volvo model", + "car_names.model" + ], + [ + "cylinders", + "cars_data.cylinders" + ], + [ + "cylinders", + "cars_data.engine_cylinders" + ], + [ + "cylinders", + "cars_data.pistons" + ], + [ + "least accelerate", + "cars_data.accelerate" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_names.model" + ], + [ + 1, + "cars_data.cylinders" + ], + [ + 1, + "cars_data.engine_cylinders" + ], + [ + 1, + "cars_data.pistons" + ], + [ + 2, + "cars_data.accelerate" + ] + ], + "linking_list_col": [ + [ + "cars_data.engine_cylinders", + "cars_data.pistons" + ], + [ + "cars_data.cylinders", + "cars_data.pistons" + ], + [ + "cars_data.engine_cylinders", + "cars_data.cylinders" + ] + ] + }, + { + "question": "for the cars with 4 #cylinders# , which #model# has the largest horsepower?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make", + "vehicle_model", + "designation" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "cylinders", + "cars_data.cylinders" + ], + [ + "model", + "car_names.model" + ], + [ + "model", + "car_names.vehicle_model" + ], + [ + "model", + "car_names.designation" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.cylinders" + ], + [ + 1, + "car_names.model" + ], + [ + 1, + "car_names.vehicle_model" + ], + [ + 1, + "car_names.designation" + ] + ], + "linking_list_col": [ + [ + "car_names.vehicle_model", + "car_names.designation" + ], + [ + "car_names.model", + "car_names.designation" + ], + [ + "car_names.vehicle_model", + "car_names.model" + ] + ] + }, + { + "question": "for all of the 4 #cylinder cars# , which #model# has the most horsepower?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make", + "vehicle_model", + "designation" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "cylinder cars", + "cars_data.cylinders" + ], + [ + "model", + "car_names.model" + ], + [ + "model", + "car_names.vehicle_model" + ], + [ + "model", + "car_names.designation" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.cylinders" + ], + [ + 1, + "car_names.model" + ], + [ + 1, + "car_names.vehicle_model" + ], + [ + 1, + "car_names.designation" + ] + ], + "linking_list_col": [ + [ + "car_names.vehicle_model", + "car_names.designation" + ], + [ + "car_names.model", + "car_names.designation" + ], + [ + "car_names.vehicle_model", + "car_names.model" + ] + ] + }, + { + "question": "among the cars with more than #lowest horsepower# , which ones do not have more than 3 cylinders? list the #car makeid# and #make name# .", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make", + "manufacturer", + "brand" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "lowest horsepower", + "cars_data.horsepower" + ], + [ + "car makeid", + "car_names.makeid" + ], + [ + "make name", + "car_names.make" + ], + [ + "make name", + "car_names.manufacturer" + ], + [ + "make name", + "car_names.brand" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.horsepower" + ], + [ + 1, + "car_names.makeid" + ], + [ + 2, + "car_names.make" + ], + [ + 2, + "car_names.manufacturer" + ], + [ + 2, + "car_names.brand" + ] + ], + "linking_list_col": [ + [ + "car_names.manufacturer", + "car_names.brand" + ], + [ + "car_names.make", + "car_names.brand" + ], + [ + "car_names.manufacturer", + "car_names.make" + ] + ] + }, + { + "question": "which #models# are #lighter than 3500# but not #built by# the 'ford motor company'?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model", + "model_name", + "vehicle_name" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "models", + "model_list.model" + ], + [ + "models", + "model_list.model_name" + ], + [ + "models", + "model_list.vehicle_name" + ], + [ + "lighter than 3500", + "cars_data.weight" + ], + [ + "built by", + "car_makers.fullname" + ] + ], + "linking_list_idx": [ + [ + 0, + "model_list.model" + ], + [ + 0, + "model_list.model_name" + ], + [ + 0, + "model_list.vehicle_name" + ], + [ + 1, + "cars_data.weight" + ], + [ + 2, + "car_makers.fullname" + ] + ], + "linking_list_col": [ + [ + "model_list.model_name", + "model_list.vehicle_name" + ], + [ + "model_list.model", + "model_list.vehicle_name" + ], + [ + "model_list.model_name", + "model_list.model" + ] + ] + }, + { + "question": "what are the #different models# wthat are #lighter than 3500# but were not built by the ford motor company?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model", + "model_name", + "vehicle_name" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "different models", + "model_list.model" + ], + [ + "different models", + "model_list.model_name" + ], + [ + "different models", + "model_list.vehicle_name" + ], + [ + "lighter than 3500", + "cars_data.weight" + ] + ], + "linking_list_idx": [ + [ + 0, + "model_list.model" + ], + [ + 0, + "model_list.model_name" + ], + [ + 0, + "model_list.vehicle_name" + ], + [ + 1, + "cars_data.weight" + ] + ], + "linking_list_col": [ + [ + "model_list.model_name", + "model_list.vehicle_name" + ], + [ + "model_list.model", + "model_list.vehicle_name" + ], + [ + "model_list.model_name", + "model_list.model" + ] + ] + }, + { + "question": "what are the #name of the countries# where there is not a single car maker?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent", + "name", + "nationname" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "name of the countries", + "countries.countryname" + ], + [ + "name of the countries", + "countries.name" + ], + [ + "name of the countries", + "countries.nationname" + ] + ], + "linking_list_idx": [ + [ + 0, + "countries.countryname" + ], + [ + 0, + "countries.name" + ], + [ + 0, + "countries.nationname" + ] + ], + "linking_list_col": [ + [ + "countries.name", + "countries.nationname" + ], + [ + "countries.countryname", + "countries.nationname" + ], + [ + "countries.name", + "countries.countryname" + ] + ] + }, + { + "question": "what are the #names of the countries# with no car makers?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent", + "name", + "nationname" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "names of the countries", + "countries.countryname" + ], + [ + "names of the countries", + "countries.name" + ], + [ + "names of the countries", + "countries.nationname" + ] + ], + "linking_list_idx": [ + [ + 0, + "countries.countryname" + ], + [ + 0, + "countries.name" + ], + [ + 0, + "countries.nationname" + ] + ], + "linking_list_col": [ + [ + "countries.name", + "countries.nationname" + ], + [ + "countries.countryname", + "countries.nationname" + ], + [ + "countries.name", + "countries.countryname" + ] + ] + }, + { + "question": "what are the #ids# and makers of all car makers that produce at least 2 #models# and make more than 3 cars?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country", + "maker_id", + "serial_id" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "ids", + "car_makers.id" + ], + [ + "ids", + "car_makers.maker_id" + ], + [ + "ids", + "car_makers.serial_id" + ], + [ + "models", + "model_list.model" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_makers.id" + ], + [ + 0, + "car_makers.maker_id" + ], + [ + 0, + "car_makers.serial_id" + ], + [ + 1, + "model_list.model" + ] + ], + "linking_list_col": [ + [ + "car_makers.maker_id", + "car_makers.serial_id" + ], + [ + "car_makers.id", + "car_makers.serial_id" + ], + [ + "car_makers.maker_id", + "car_makers.id" + ] + ] + }, + { + "question": "what are the #id# and #names of the countries# which have more than 3 car makers or produce the 'fiat' model?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent", + "name", + "nationname" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "id", + "countries.countryid" + ], + [ + "names of the countries", + "countries.countryname" + ], + [ + "names of the countries", + "countries.name" + ], + [ + "names of the countries", + "countries.nationname" + ] + ], + "linking_list_idx": [ + [ + 0, + "countries.countryid" + ], + [ + 1, + "countries.countryname" + ], + [ + 1, + "countries.name" + ], + [ + 1, + "countries.nationname" + ] + ], + "linking_list_col": [ + [ + "countries.name", + "countries.nationname" + ], + [ + "countries.countryname", + "countries.nationname" + ], + [ + "countries.name", + "countries.countryname" + ] + ] + }, + { + "question": "which #country# does #airline# \"jetblue airways\" belong to?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country", + "nation", + "territory" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "country", + "airlines.country" + ], + [ + "country", + "airlines.nation" + ], + [ + "country", + "airlines.territory" + ], + [ + "Airline", + "airlines.airline" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.country" + ], + [ + 0, + "airlines.nation" + ], + [ + 0, + "airlines.territory" + ], + [ + 1, + "airlines.airline" + ] + ], + "linking_list_col": [ + [ + "airlines.nation", + "airlines.territory" + ], + [ + "airlines.country", + "airlines.territory" + ], + [ + "airlines.nation", + "airlines.country" + ] + ] + }, + { + "question": "what #country is jetblue airways# affiliated with?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country", + "nation", + "territory" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "country is Jetblue Airways", + "airlines.country" + ], + [ + "country is Jetblue Airways", + "airlines.nation" + ], + [ + "country is Jetblue Airways", + "airlines.territory" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.country" + ], + [ + 0, + "airlines.nation" + ], + [ + 0, + "airlines.territory" + ] + ], + "linking_list_col": [ + [ + "airlines.nation", + "airlines.territory" + ], + [ + "airlines.country", + "airlines.territory" + ], + [ + "airlines.nation", + "airlines.country" + ] + ] + }, + { + "question": "what is the #abbreviation of airline# \"jetblue airways\"?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country", + "short_name", + "code" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "abbreviation of Airline", + "airlines.abbreviation" + ], + [ + "abbreviation of Airline", + "airlines.short_name" + ], + [ + "abbreviation of Airline", + "airlines.code" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.abbreviation" + ], + [ + 0, + "airlines.short_name" + ], + [ + 0, + "airlines.code" + ] + ], + "linking_list_col": [ + [ + "airlines.short_name", + "airlines.code" + ], + [ + "airlines.abbreviation", + "airlines.code" + ], + [ + "airlines.short_name", + "airlines.abbreviation" + ] + ] + }, + { + "question": "which #abbreviation# corresponds to jetblue airways?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country", + "short_name", + "code" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "abbreviation", + "airlines.abbreviation" + ], + [ + "abbreviation", + "airlines.short_name" + ], + [ + "abbreviation", + "airlines.code" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.abbreviation" + ], + [ + 0, + "airlines.short_name" + ], + [ + 0, + "airlines.code" + ] + ], + "linking_list_col": [ + [ + "airlines.short_name", + "airlines.code" + ], + [ + "airlines.abbreviation", + "airlines.code" + ], + [ + "airlines.short_name", + "airlines.abbreviation" + ] + ] + }, + { + "question": "list all #airline names# and their abbreviations in \"usa\".", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country", + "carrier", + "company" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airline names", + "airlines.airline" + ], + [ + "airline names", + "airlines.carrier" + ], + [ + "airline names", + "airlines.company" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 0, + "airlines.carrier" + ], + [ + 0, + "airlines.company" + ] + ], + "linking_list_col": [ + [ + "airlines.carrier", + "airlines.company" + ], + [ + "airlines.airline", + "airlines.company" + ], + [ + "airlines.carrier", + "airlines.airline" + ] + ] + }, + { + "question": "what are the #airline names# and abbreviations for airlines in the usa?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country", + "carrier", + "company" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airline names", + "airlines.airline" + ], + [ + "airline names", + "airlines.carrier" + ], + [ + "airline names", + "airlines.company" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 0, + "airlines.carrier" + ], + [ + 0, + "airlines.company" + ] + ], + "linking_list_col": [ + [ + "airlines.carrier", + "airlines.company" + ], + [ + "airlines.airline", + "airlines.company" + ], + [ + "airlines.carrier", + "airlines.airline" + ] + ] + }, + { + "question": "list the #airport code# and #name in the city# of anthony.", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev", + "iata_code", + "code_shortcut" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airport code", + "airports.airportcode" + ], + [ + "airport code", + "airports.iata_code" + ], + [ + "airport code", + "airports.code_shortcut" + ], + [ + "name in the city", + "airports.airportname" + ] + ], + "linking_list_idx": [ + [ + 0, + "airports.airportcode" + ], + [ + 0, + "airports.iata_code" + ], + [ + 0, + "airports.code_shortcut" + ], + [ + 1, + "airports.airportname" + ] + ], + "linking_list_col": [ + [ + "airports.iata_code", + "airports.code_shortcut" + ], + [ + "airports.airportcode", + "airports.code_shortcut" + ], + [ + "airports.iata_code", + "airports.airportcode" + ] + ] + }, + { + "question": "give the #airport code# and #airport name# corresonding to the #city# anthony.", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev", + "iata_code", + "code_shortcut" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airport code", + "airports.airportcode" + ], + [ + "airport code", + "airports.iata_code" + ], + [ + "airport code", + "airports.code_shortcut" + ], + [ + "airport name", + "airports.airportname" + ], + [ + "city", + "airports.city" + ] + ], + "linking_list_idx": [ + [ + 0, + "airports.airportcode" + ], + [ + 0, + "airports.iata_code" + ], + [ + 0, + "airports.code_shortcut" + ], + [ + 1, + "airports.airportname" + ], + [ + 2, + "airports.city" + ] + ], + "linking_list_col": [ + [ + "airports.iata_code", + "airports.code_shortcut" + ], + [ + "airports.airportcode", + "airports.code_shortcut" + ], + [ + "airports.iata_code", + "airports.airportcode" + ] + ] + }, + { + "question": "which #airline# has #abbreviation# 'ual'?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country", + "carrier", + "company" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airline", + "airlines.airline" + ], + [ + "airline", + "airlines.carrier" + ], + [ + "airline", + "airlines.company" + ], + [ + "abbreviation", + "airlines.abbreviation" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 0, + "airlines.carrier" + ], + [ + 0, + "airlines.company" + ], + [ + 1, + "airlines.abbreviation" + ] + ], + "linking_list_col": [ + [ + "airlines.carrier", + "airlines.company" + ], + [ + "airlines.airline", + "airlines.company" + ], + [ + "airlines.carrier", + "airlines.airline" + ] + ] + }, + { + "question": "give the #airline with abbreviation# 'ual'.", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country", + "carrier", + "company" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airline with abbreviation", + "airlines.airline" + ], + [ + "airline with abbreviation", + "airlines.carrier" + ], + [ + "airline with abbreviation", + "airlines.company" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 0, + "airlines.carrier" + ], + [ + 0, + "airlines.company" + ] + ], + "linking_list_col": [ + [ + "airlines.carrier", + "airlines.company" + ], + [ + "airlines.airline", + "airlines.company" + ], + [ + "airlines.carrier", + "airlines.airline" + ] + ] + }, + { + "question": "which #city# and #country is the alton airport# at?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev", + "metropolis", + "urbanarea" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "city", + "airports.city" + ], + [ + "city", + "airports.metropolis" + ], + [ + "city", + "airports.urbanarea" + ], + [ + "country is the Alton airport", + "airports.country" + ] + ], + "linking_list_idx": [ + [ + 0, + "airports.city" + ], + [ + 0, + "airports.metropolis" + ], + [ + 0, + "airports.urbanarea" + ], + [ + 1, + "airports.country" + ] + ], + "linking_list_col": [ + [ + "airports.metropolis", + "airports.urbanarea" + ], + [ + "airports.city", + "airports.urbanarea" + ], + [ + "airports.metropolis", + "airports.city" + ] + ] + }, + { + "question": "give the #city# and #country for the alton airport# .", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev", + "metropolis", + "urbanarea" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "city", + "airports.city" + ], + [ + "city", + "airports.metropolis" + ], + [ + "city", + "airports.urbanarea" + ], + [ + "country for the Alton airport", + "airports.country" + ] + ], + "linking_list_idx": [ + [ + 0, + "airports.city" + ], + [ + 0, + "airports.metropolis" + ], + [ + 0, + "airports.urbanarea" + ], + [ + 1, + "airports.country" + ] + ], + "linking_list_col": [ + [ + "airports.metropolis", + "airports.urbanarea" + ], + [ + "airports.city", + "airports.urbanarea" + ], + [ + "airports.metropolis", + "airports.city" + ] + ] + }, + { + "question": "return the #name of the airport with code# 'ako'.", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev", + "aerodrome_name", + "aviation_terminal" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "name of the airport with code", + "airports.airportname" + ], + [ + "name of the airport with code", + "airports.aerodrome_name" + ], + [ + "name of the airport with code", + "airports.aviation_terminal" + ] + ], + "linking_list_idx": [ + [ + 0, + "airports.airportname" + ], + [ + 0, + "airports.aerodrome_name" + ], + [ + 0, + "airports.aviation_terminal" + ] + ], + "linking_list_col": [ + [ + "airports.aerodrome_name", + "airports.aviation_terminal" + ], + [ + "airports.airportname", + "airports.aviation_terminal" + ], + [ + "airports.aerodrome_name", + "airports.airportname" + ] + ] + }, + { + "question": "what are #airport names at city# 'aberdeen'?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev", + "aerodrome_name", + "aviation_terminal" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airport names at City", + "airports.airportname" + ], + [ + "airport names at City", + "airports.aerodrome_name" + ], + [ + "airport names at City", + "airports.aviation_terminal" + ] + ], + "linking_list_idx": [ + [ + 0, + "airports.airportname" + ], + [ + 0, + "airports.aerodrome_name" + ], + [ + 0, + "airports.aviation_terminal" + ] + ], + "linking_list_col": [ + [ + "airports.aerodrome_name", + "airports.aviation_terminal" + ], + [ + "airports.airportname", + "airports.aviation_terminal" + ], + [ + "airports.aerodrome_name", + "airports.airportname" + ] + ] + }, + { + "question": "which #city# has most number of arriving flights?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev", + "metropolis", + "urbanarea" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "city", + "airports.city" + ], + [ + "city", + "airports.metropolis" + ], + [ + "city", + "airports.urbanarea" + ] + ], + "linking_list_idx": [ + [ + 0, + "airports.city" + ], + [ + 0, + "airports.metropolis" + ], + [ + 0, + "airports.urbanarea" + ] + ], + "linking_list_col": [ + [ + "airports.metropolis", + "airports.urbanarea" + ], + [ + "airports.city", + "airports.urbanarea" + ], + [ + "airports.metropolis", + "airports.city" + ] + ] + }, + { + "question": "which #city# has the most frequent destination airport?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev", + "metropolis", + "urbanarea" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "city", + "airports.city" + ], + [ + "city", + "airports.metropolis" + ], + [ + "city", + "airports.urbanarea" + ] + ], + "linking_list_idx": [ + [ + 0, + "airports.city" + ], + [ + 0, + "airports.metropolis" + ], + [ + 0, + "airports.urbanarea" + ] + ], + "linking_list_col": [ + [ + "airports.metropolis", + "airports.urbanarea" + ], + [ + "airports.city", + "airports.urbanarea" + ], + [ + "airports.metropolis", + "airports.city" + ] + ] + }, + { + "question": "which #city# has most number of departing flights?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev", + "metropolis", + "urbanarea" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "city", + "airports.city" + ], + [ + "city", + "airports.metropolis" + ], + [ + "city", + "airports.urbanarea" + ] + ], + "linking_list_idx": [ + [ + 0, + "airports.city" + ], + [ + 0, + "airports.metropolis" + ], + [ + 0, + "airports.urbanarea" + ] + ], + "linking_list_col": [ + [ + "airports.metropolis", + "airports.urbanarea" + ], + [ + "airports.city", + "airports.urbanarea" + ], + [ + "airports.metropolis", + "airports.city" + ] + ] + }, + { + "question": "which #city# is the most frequent source airport?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev", + "metropolis", + "urbanarea" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "city", + "airports.city" + ], + [ + "city", + "airports.metropolis" + ], + [ + "city", + "airports.urbanarea" + ] + ], + "linking_list_idx": [ + [ + 0, + "airports.city" + ], + [ + 0, + "airports.metropolis" + ], + [ + 0, + "airports.urbanarea" + ] + ], + "linking_list_col": [ + [ + "airports.metropolis", + "airports.urbanarea" + ], + [ + "airports.city", + "airports.urbanarea" + ], + [ + "airports.metropolis", + "airports.city" + ] + ] + }, + { + "question": "what is the #code of airport# that has the highest number of flights?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev", + "iata_code", + "code_shortcut" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "code of airport", + "airports.airportcode" + ], + [ + "code of airport", + "airports.iata_code" + ], + [ + "code of airport", + "airports.code_shortcut" + ] + ], + "linking_list_idx": [ + [ + 0, + "airports.airportcode" + ], + [ + 0, + "airports.iata_code" + ], + [ + 0, + "airports.code_shortcut" + ] + ], + "linking_list_col": [ + [ + "airports.iata_code", + "airports.code_shortcut" + ], + [ + "airports.airportcode", + "airports.code_shortcut" + ], + [ + "airports.iata_code", + "airports.airportcode" + ] + ] + }, + { + "question": "what is the #airport code# of the airport with the most flights?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev", + "iata_code", + "code_shortcut" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airport code", + "airports.airportcode" + ], + [ + "airport code", + "airports.iata_code" + ], + [ + "airport code", + "airports.code_shortcut" + ] + ], + "linking_list_idx": [ + [ + 0, + "airports.airportcode" + ], + [ + 0, + "airports.iata_code" + ], + [ + 0, + "airports.code_shortcut" + ] + ], + "linking_list_col": [ + [ + "airports.iata_code", + "airports.code_shortcut" + ], + [ + "airports.airportcode", + "airports.code_shortcut" + ], + [ + "airports.iata_code", + "airports.airportcode" + ] + ] + }, + { + "question": "what is the #code of airport# that has fewest number of flights?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev", + "iata_code", + "code_shortcut" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "code of airport", + "airports.airportcode" + ], + [ + "code of airport", + "airports.iata_code" + ], + [ + "code of airport", + "airports.code_shortcut" + ] + ], + "linking_list_idx": [ + [ + 0, + "airports.airportcode" + ], + [ + 0, + "airports.iata_code" + ], + [ + 0, + "airports.code_shortcut" + ] + ], + "linking_list_col": [ + [ + "airports.iata_code", + "airports.code_shortcut" + ], + [ + "airports.airportcode", + "airports.code_shortcut" + ], + [ + "airports.iata_code", + "airports.airportcode" + ] + ] + }, + { + "question": "give the #code of the airport# with the least flights.", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev", + "iata_code", + "code_shortcut" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "code of the airport", + "airports.airportcode" + ], + [ + "code of the airport", + "airports.iata_code" + ], + [ + "code of the airport", + "airports.code_shortcut" + ] + ], + "linking_list_idx": [ + [ + 0, + "airports.airportcode" + ], + [ + 0, + "airports.iata_code" + ], + [ + 0, + "airports.code_shortcut" + ] + ], + "linking_list_col": [ + [ + "airports.iata_code", + "airports.code_shortcut" + ], + [ + "airports.airportcode", + "airports.code_shortcut" + ], + [ + "airports.iata_code", + "airports.airportcode" + ] + ] + }, + { + "question": "which #airline# has most number of flights?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country", + "carrier", + "company" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airline", + "airlines.airline" + ], + [ + "airline", + "airlines.carrier" + ], + [ + "airline", + "airlines.company" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 0, + "airlines.carrier" + ], + [ + 0, + "airlines.company" + ] + ], + "linking_list_col": [ + [ + "airlines.carrier", + "airlines.company" + ], + [ + "airlines.airline", + "airlines.company" + ], + [ + "airlines.carrier", + "airlines.airline" + ] + ] + }, + { + "question": "what #airline# serves the most flights?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country", + "carrier", + "company" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airline", + "airlines.airline" + ], + [ + "airline", + "airlines.carrier" + ], + [ + "airline", + "airlines.company" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 0, + "airlines.carrier" + ], + [ + 0, + "airlines.company" + ] + ], + "linking_list_col": [ + [ + "airlines.carrier", + "airlines.company" + ], + [ + "airlines.airline", + "airlines.company" + ], + [ + "airlines.carrier", + "airlines.airline" + ] + ] + }, + { + "question": "find the #abbreviation# and #country of the airline# that has fewest number of flights?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country", + "short_name", + "code" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "abbreviation", + "airlines.abbreviation" + ], + [ + "abbreviation", + "airlines.short_name" + ], + [ + "abbreviation", + "airlines.code" + ], + [ + "country of the airline", + "airlines.country" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.abbreviation" + ], + [ + 0, + "airlines.short_name" + ], + [ + 0, + "airlines.code" + ], + [ + 1, + "airlines.country" + ] + ], + "linking_list_col": [ + [ + "airlines.short_name", + "airlines.code" + ], + [ + "airlines.abbreviation", + "airlines.code" + ], + [ + "airlines.short_name", + "airlines.abbreviation" + ] + ] + }, + { + "question": "what is the #abbreviation# of the airilne has the fewest flights and what #country# is it in?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country", + "short_name", + "code" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "abbreviation", + "airlines.abbreviation" + ], + [ + "abbreviation", + "airlines.short_name" + ], + [ + "abbreviation", + "airlines.code" + ], + [ + "country", + "airlines.country" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.abbreviation" + ], + [ + 0, + "airlines.short_name" + ], + [ + 0, + "airlines.code" + ], + [ + 1, + "airlines.country" + ] + ], + "linking_list_col": [ + [ + "airlines.short_name", + "airlines.code" + ], + [ + "airlines.abbreviation", + "airlines.code" + ], + [ + "airlines.short_name", + "airlines.abbreviation" + ] + ] + }, + { + "question": "what are #airlines# that have some flight departing from airport 'ahd'?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country", + "carrier", + "company" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airlines", + "airlines.airline" + ], + [ + "airlines", + "airlines.carrier" + ], + [ + "airlines", + "airlines.company" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 0, + "airlines.carrier" + ], + [ + 0, + "airlines.company" + ] + ], + "linking_list_col": [ + [ + "airlines.carrier", + "airlines.company" + ], + [ + "airlines.airline", + "airlines.company" + ], + [ + "airlines.carrier", + "airlines.airline" + ] + ] + }, + { + "question": "which #airlines# have a flight with #source airport# ahd?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country", + "carrier", + "company" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airlines", + "airlines.airline" + ], + [ + "airlines", + "airlines.carrier" + ], + [ + "airlines", + "airlines.company" + ], + [ + "source airport", + "flights.sourceairport" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 0, + "airlines.carrier" + ], + [ + 0, + "airlines.company" + ], + [ + 1, + "flights.sourceairport" + ] + ], + "linking_list_col": [ + [ + "airlines.carrier", + "airlines.company" + ], + [ + "airlines.airline", + "airlines.company" + ], + [ + "airlines.carrier", + "airlines.airline" + ] + ] + }, + { + "question": "what are #airlines# that have flights arriving at #airport# 'ahd'?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country", + "carrier", + "company" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airlines", + "airlines.airline" + ], + [ + "airlines", + "airlines.carrier" + ], + [ + "airlines", + "airlines.company" + ], + [ + "airport", + "flights.destairport" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 0, + "airlines.carrier" + ], + [ + 0, + "airlines.company" + ], + [ + 1, + "flights.destairport" + ] + ], + "linking_list_col": [ + [ + "airlines.carrier", + "airlines.company" + ], + [ + "airlines.airline", + "airlines.company" + ], + [ + "airlines.carrier", + "airlines.airline" + ] + ] + }, + { + "question": "which #airlines# have a flight with #destination airport# ahd?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country", + "carrier", + "company" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airlines", + "airlines.airline" + ], + [ + "airlines", + "airlines.carrier" + ], + [ + "airlines", + "airlines.company" + ], + [ + "destination airport", + "flights.destairport" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 0, + "airlines.carrier" + ], + [ + 0, + "airlines.company" + ], + [ + 1, + "flights.destairport" + ] + ], + "linking_list_col": [ + [ + "airlines.carrier", + "airlines.company" + ], + [ + "airlines.airline", + "airlines.company" + ], + [ + "airlines.carrier", + "airlines.airline" + ] + ] + }, + { + "question": "which #airlines# have #departing flights# from both #apg# and #cvo# airports?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country", + "carrier", + "company" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airlines", + "airlines.airline" + ], + [ + "airlines", + "airlines.carrier" + ], + [ + "airlines", + "airlines.company" + ], + [ + "departing flights", + "flights.sourceairport" + ], + [ + "APG", + "flights.sourceairport" + ], + [ + "CVO", + "flights.sourceairport" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 0, + "airlines.carrier" + ], + [ + 0, + "airlines.company" + ], + [ + 1, + "flights.sourceairport" + ], + [ + 2, + "flights.sourceairport" + ], + [ + 3, + "flights.sourceairport" + ] + ], + "linking_list_col": [ + [ + "airlines.carrier", + "airlines.company" + ], + [ + "airlines.airline", + "airlines.company" + ], + [ + "airlines.carrier", + "airlines.airline" + ] + ] + }, + { + "question": "which #airlines# have departures from cvo but not from #apg# airports?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country", + "carrier", + "company" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airlines", + "airlines.airline" + ], + [ + "airlines", + "airlines.carrier" + ], + [ + "airlines", + "airlines.company" + ], + [ + "APG", + "flights.sourceairport" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 0, + "airlines.carrier" + ], + [ + 0, + "airlines.company" + ], + [ + 1, + "flights.sourceairport" + ] + ], + "linking_list_col": [ + [ + "airlines.carrier", + "airlines.company" + ], + [ + "airlines.airline", + "airlines.company" + ], + [ + "airlines.carrier", + "airlines.airline" + ] + ] + }, + { + "question": "find all #airlines# that have at least 10 flights.", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country", + "carrier", + "company" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airlines", + "airlines.airline" + ], + [ + "airlines", + "airlines.carrier" + ], + [ + "airlines", + "airlines.company" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 0, + "airlines.carrier" + ], + [ + 0, + "airlines.company" + ] + ], + "linking_list_col": [ + [ + "airlines.carrier", + "airlines.company" + ], + [ + "airlines.airline", + "airlines.company" + ], + [ + "airlines.carrier", + "airlines.airline" + ] + ] + }, + { + "question": "which #airlines# have at least 10 flights?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country", + "carrier", + "company" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airlines", + "airlines.airline" + ], + [ + "airlines", + "airlines.carrier" + ], + [ + "airlines", + "airlines.company" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 0, + "airlines.carrier" + ], + [ + 0, + "airlines.company" + ] + ], + "linking_list_col": [ + [ + "airlines.carrier", + "airlines.company" + ], + [ + "airlines.airline", + "airlines.company" + ], + [ + "airlines.carrier", + "airlines.airline" + ] + ] + }, + { + "question": "find all #airlines# that have fewer than 200 flights.", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country", + "carrier", + "company" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airlines", + "airlines.airline" + ], + [ + "airlines", + "airlines.carrier" + ], + [ + "airlines", + "airlines.company" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 0, + "airlines.carrier" + ], + [ + 0, + "airlines.company" + ] + ], + "linking_list_col": [ + [ + "airlines.carrier", + "airlines.company" + ], + [ + "airlines.airline", + "airlines.company" + ], + [ + "airlines.carrier", + "airlines.airline" + ] + ] + }, + { + "question": "which #airlines# have less than 200 flights?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country", + "carrier", + "company" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airlines", + "airlines.airline" + ], + [ + "airlines", + "airlines.carrier" + ], + [ + "airlines", + "airlines.company" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 0, + "airlines.carrier" + ], + [ + 0, + "airlines.company" + ] + ], + "linking_list_col": [ + [ + "airlines.carrier", + "airlines.company" + ], + [ + "airlines.airline", + "airlines.company" + ], + [ + "airlines.carrier", + "airlines.airline" + ] + ] + }, + { + "question": "what are #flight numbers of airline# \"united airlines\"?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport", + "flight_number", + "route_number" + ] + }, + "linking_list": [ + [ + "flight numbers of Airline", + "flights.flightno" + ], + [ + "flight numbers of Airline", + "flights.flight_number" + ], + [ + "flight numbers of Airline", + "flights.route_number" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.flightno" + ], + [ + 0, + "flights.flight_number" + ], + [ + 0, + "flights.route_number" + ] + ], + "linking_list_col": [ + [ + "flights.flight_number", + "flights.route_number" + ], + [ + "flights.flightno", + "flights.route_number" + ], + [ + "flights.flight_number", + "flights.flightno" + ] + ] + }, + { + "question": "which #flight numbers# correspond to united airlines flights?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport", + "flight_number", + "route_number" + ] + }, + "linking_list": [ + [ + "flight numbers", + "flights.flightno" + ], + [ + "flight numbers", + "flights.flight_number" + ], + [ + "flight numbers", + "flights.route_number" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.flightno" + ], + [ + 0, + "flights.flight_number" + ], + [ + 0, + "flights.route_number" + ] + ], + "linking_list_col": [ + [ + "flights.flight_number", + "flights.route_number" + ], + [ + "flights.flightno", + "flights.route_number" + ], + [ + "flights.flight_number", + "flights.flightno" + ] + ] + }, + { + "question": "what are #flight numbers# of flights departing from airport \"apg\"?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport", + "flight_number", + "route_number" + ] + }, + "linking_list": [ + [ + "flight numbers", + "flights.flightno" + ], + [ + "flight numbers", + "flights.flight_number" + ], + [ + "flight numbers", + "flights.route_number" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.flightno" + ], + [ + 0, + "flights.flight_number" + ], + [ + 0, + "flights.route_number" + ] + ], + "linking_list_col": [ + [ + "flights.flight_number", + "flights.route_number" + ], + [ + "flights.flightno", + "flights.route_number" + ], + [ + "flights.flight_number", + "flights.flightno" + ] + ] + }, + { + "question": "give the #flight numbers# of flights #leaving from# apg.", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport", + "flight_number", + "route_number" + ] + }, + "linking_list": [ + [ + "flight numbers", + "flights.flightno" + ], + [ + "flight numbers", + "flights.flight_number" + ], + [ + "flight numbers", + "flights.route_number" + ], + [ + "leaving from", + "flights.sourceairport" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.flightno" + ], + [ + 0, + "flights.flight_number" + ], + [ + 0, + "flights.route_number" + ], + [ + 1, + "flights.sourceairport" + ] + ], + "linking_list_col": [ + [ + "flights.flight_number", + "flights.route_number" + ], + [ + "flights.flightno", + "flights.route_number" + ], + [ + "flights.flight_number", + "flights.flightno" + ] + ] + }, + { + "question": "give the #flight numbers of flights landing# at apg.", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport", + "flight_number", + "route_number" + ] + }, + "linking_list": [ + [ + "flight numbers of flights landing", + "flights.flightno" + ], + [ + "flight numbers of flights landing", + "flights.flight_number" + ], + [ + "flight numbers of flights landing", + "flights.route_number" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.flightno" + ], + [ + 0, + "flights.flight_number" + ], + [ + 0, + "flights.route_number" + ] + ], + "linking_list_col": [ + [ + "flights.flight_number", + "flights.route_number" + ], + [ + "flights.flightno", + "flights.route_number" + ], + [ + "flights.flight_number", + "flights.flightno" + ] + ] + }, + { + "question": "what are #flight numbers# of flights #departing from city# \"aberdeen \"?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport", + "flight_number", + "route_number" + ] + }, + "linking_list": [ + [ + "flight numbers", + "flights.flightno" + ], + [ + "flight numbers", + "flights.flight_number" + ], + [ + "flight numbers", + "flights.route_number" + ], + [ + "departing from City", + "airports.city" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.flightno" + ], + [ + 0, + "flights.flight_number" + ], + [ + 0, + "flights.route_number" + ], + [ + 1, + "airports.city" + ] + ], + "linking_list_col": [ + [ + "flights.flight_number", + "flights.route_number" + ], + [ + "flights.flightno", + "flights.route_number" + ], + [ + "flights.flight_number", + "flights.flightno" + ] + ] + }, + { + "question": "give the #flight numbers# of flights leaving from aberdeen.", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport", + "flight_number", + "route_number" + ] + }, + "linking_list": [ + [ + "flight numbers", + "flights.flightno" + ], + [ + "flight numbers", + "flights.flight_number" + ], + [ + "flight numbers", + "flights.route_number" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.flightno" + ], + [ + 0, + "flights.flight_number" + ], + [ + 0, + "flights.route_number" + ] + ], + "linking_list_col": [ + [ + "flights.flight_number", + "flights.route_number" + ], + [ + "flights.flightno", + "flights.route_number" + ], + [ + "flights.flight_number", + "flights.flightno" + ] + ] + }, + { + "question": "give the #flight numbers# of flights #arriving in aberdeen# .", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport", + "flight_number", + "route_number" + ] + }, + "linking_list": [ + [ + "flight numbers", + "flights.flightno" + ], + [ + "flight numbers", + "flights.flight_number" + ], + [ + "flight numbers", + "flights.route_number" + ], + [ + "arriving in Aberdeen", + "airports.city" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.flightno" + ], + [ + 0, + "flights.flight_number" + ], + [ + 0, + "flights.route_number" + ], + [ + 1, + "airports.city" + ] + ], + "linking_list_col": [ + [ + "flights.flight_number", + "flights.route_number" + ], + [ + "flights.flightno", + "flights.route_number" + ], + [ + "flights.flight_number", + "flights.flightno" + ] + ] + }, + { + "question": "find the #name of airports# which do not have any flight in and out.", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev", + "aerodrome_name", + "aviation_terminal" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "name of airports", + "airports.airportname" + ], + [ + "name of airports", + "airports.aerodrome_name" + ], + [ + "name of airports", + "airports.aviation_terminal" + ] + ], + "linking_list_idx": [ + [ + 0, + "airports.airportname" + ], + [ + 0, + "airports.aerodrome_name" + ], + [ + 0, + "airports.aviation_terminal" + ] + ], + "linking_list_col": [ + [ + "airports.aerodrome_name", + "airports.aviation_terminal" + ], + [ + "airports.airportname", + "airports.aviation_terminal" + ], + [ + "airports.aerodrome_name", + "airports.airportname" + ] + ] + }, + { + "question": "sort #employee names# by their #age# in ascending order.", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city", + "full_name", + "given_name" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "linking_list": [ + [ + "employee names", + "employee.name" + ], + [ + "employee names", + "employee.full_name" + ], + [ + "employee names", + "employee.given_name" + ], + [ + "age", + "employee.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "employee.name" + ], + [ + 0, + "employee.full_name" + ], + [ + 0, + "employee.given_name" + ], + [ + 1, + "employee.age" + ] + ], + "linking_list_col": [ + [ + "employee.full_name", + "employee.given_name" + ], + [ + "employee.name", + "employee.given_name" + ], + [ + "employee.full_name", + "employee.name" + ] + ] + }, + { + "question": "list the #names of employees# and sort in ascending order of #age# .", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city", + "full_name", + "given_name" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "linking_list": [ + [ + "names of employees", + "employee.name" + ], + [ + "names of employees", + "employee.full_name" + ], + [ + "names of employees", + "employee.given_name" + ], + [ + "age", + "employee.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "employee.name" + ], + [ + 0, + "employee.full_name" + ], + [ + 0, + "employee.given_name" + ], + [ + 1, + "employee.age" + ] + ], + "linking_list_col": [ + [ + "employee.full_name", + "employee.given_name" + ], + [ + "employee.name", + "employee.given_name" + ], + [ + "employee.full_name", + "employee.name" + ] + ] + }, + { + "question": "which #cities# do more than one employee under #age# 30 come from?", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city", + "residence_city", + "home_town" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "linking_list": [ + [ + "cities", + "employee.city" + ], + [ + "cities", + "employee.residence_city" + ], + [ + "cities", + "employee.home_town" + ], + [ + "age", + "employee.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "employee.city" + ], + [ + 0, + "employee.residence_city" + ], + [ + 0, + "employee.home_town" + ], + [ + 1, + "employee.age" + ] + ], + "linking_list_col": [ + [ + "employee.residence_city", + "employee.home_town" + ], + [ + "employee.city", + "employee.home_town" + ], + [ + "employee.residence_city", + "employee.city" + ] + ] + }, + { + "question": "find the #cities# that have more than one employee under #age# 30.", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city", + "residence_city", + "home_town" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "linking_list": [ + [ + "cities", + "employee.city" + ], + [ + "cities", + "employee.residence_city" + ], + [ + "cities", + "employee.home_town" + ], + [ + "age", + "employee.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "employee.city" + ], + [ + 0, + "employee.residence_city" + ], + [ + 0, + "employee.home_town" + ], + [ + 1, + "employee.age" + ] + ], + "linking_list_col": [ + [ + "employee.residence_city", + "employee.home_town" + ], + [ + "employee.city", + "employee.home_town" + ], + [ + "employee.residence_city", + "employee.city" + ] + ] + }, + { + "question": "find the #number of shops in each location# .", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name", + "address", + "place" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "linking_list": [ + [ + "number of shops in each location", + "shop.location" + ], + [ + "number of shops in each location", + "shop.address" + ], + [ + "number of shops in each location", + "shop.place" + ] + ], + "linking_list_idx": [ + [ + 0, + "shop.location" + ], + [ + 0, + "shop.address" + ], + [ + 0, + "shop.place" + ] + ], + "linking_list_col": [ + [ + "shop.address", + "shop.place" + ], + [ + "shop.location", + "shop.place" + ], + [ + "shop.address", + "shop.location" + ] + ] + }, + { + "question": "find the #manager name# and #district of the shop# whose #number of products# is the largest.", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name", + "region", + "territory" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "linking_list": [ + [ + "manager name", + "shop.manager_name" + ], + [ + "district of the shop", + "shop.district" + ], + [ + "district of the shop", + "shop.region" + ], + [ + "district of the shop", + "shop.territory" + ], + [ + "number of products", + "shop.number_products" + ] + ], + "linking_list_idx": [ + [ + 0, + "shop.manager_name" + ], + [ + 1, + "shop.district" + ], + [ + 1, + "shop.region" + ], + [ + 1, + "shop.territory" + ], + [ + 2, + "shop.number_products" + ] + ], + "linking_list_col": [ + [ + "shop.region", + "shop.territory" + ], + [ + "shop.district", + "shop.territory" + ], + [ + "shop.region", + "shop.district" + ] + ] + }, + { + "question": "what are the #manager name# and #district of the shop# that sells the largest number of products?", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name", + "region", + "territory" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "linking_list": [ + [ + "manager name", + "shop.manager_name" + ], + [ + "district of the shop", + "shop.district" + ], + [ + "district of the shop", + "shop.region" + ], + [ + "district of the shop", + "shop.territory" + ] + ], + "linking_list_idx": [ + [ + 0, + "shop.manager_name" + ], + [ + 1, + "shop.district" + ], + [ + 1, + "shop.region" + ], + [ + 1, + "shop.territory" + ] + ], + "linking_list_col": [ + [ + "shop.region", + "shop.territory" + ], + [ + "shop.district", + "shop.territory" + ], + [ + "shop.region", + "shop.district" + ] + ] + }, + { + "question": "find the #minimum and maximum number of products of all stores# .", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name", + "count_products", + "quantity_products" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "linking_list": [ + [ + "minimum and maximum number of products of all stores", + "shop.number_products" + ], + [ + "minimum and maximum number of products of all stores", + "shop.count_products" + ], + [ + "minimum and maximum number of products of all stores", + "shop.quantity_products" + ] + ], + "linking_list_idx": [ + [ + 0, + "shop.number_products" + ], + [ + 0, + "shop.count_products" + ], + [ + 0, + "shop.quantity_products" + ] + ], + "linking_list_col": [ + [ + "shop.count_products", + "shop.quantity_products" + ], + [ + "shop.number_products", + "shop.quantity_products" + ], + [ + "shop.count_products", + "shop.number_products" + ] + ] + }, + { + "question": "what are the #minimum and maximum number of products# across all the shops?", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name", + "count_products", + "quantity_products" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "linking_list": [ + [ + "minimum and maximum number of products", + "shop.number_products" + ], + [ + "minimum and maximum number of products", + "shop.count_products" + ], + [ + "minimum and maximum number of products", + "shop.quantity_products" + ] + ], + "linking_list_idx": [ + [ + 0, + "shop.number_products" + ], + [ + 0, + "shop.count_products" + ], + [ + 0, + "shop.quantity_products" + ] + ], + "linking_list_col": [ + [ + "shop.count_products", + "shop.quantity_products" + ], + [ + "shop.number_products", + "shop.quantity_products" + ], + [ + "shop.count_products", + "shop.number_products" + ] + ] + }, + { + "question": "return the #name# , #location# and #district of all shops# in descending order of #number of products# .", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name", + "address", + "place" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "linking_list": [ + [ + "name", + "shop.name" + ], + [ + "location", + "shop.location" + ], + [ + "location", + "shop.address" + ], + [ + "location", + "shop.place" + ], + [ + "district of all shops", + "shop.district" + ], + [ + "number of products", + "shop.number_products" + ] + ], + "linking_list_idx": [ + [ + 0, + "shop.name" + ], + [ + 1, + "shop.location" + ], + [ + 1, + "shop.address" + ], + [ + 1, + "shop.place" + ], + [ + 2, + "shop.district" + ], + [ + 3, + "shop.number_products" + ] + ], + "linking_list_col": [ + [ + "shop.address", + "shop.place" + ], + [ + "shop.location", + "shop.place" + ], + [ + "shop.address", + "shop.location" + ] + ] + }, + { + "question": "sort all the #shops by number products# in descending order, and return the #name# , #location# and #district# of each shop.", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name", + "address", + "place" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "linking_list": [ + [ + "shops by number products", + "shop.number_products" + ], + [ + "name", + "shop.name" + ], + [ + "location", + "shop.location" + ], + [ + "location", + "shop.address" + ], + [ + "location", + "shop.place" + ], + [ + "district", + "shop.district" + ] + ], + "linking_list_idx": [ + [ + 0, + "shop.number_products" + ], + [ + 1, + "shop.name" + ], + [ + 2, + "shop.location" + ], + [ + 2, + "shop.address" + ], + [ + 2, + "shop.place" + ], + [ + 3, + "shop.district" + ] + ], + "linking_list_col": [ + [ + "shop.address", + "shop.place" + ], + [ + "shop.location", + "shop.place" + ], + [ + "shop.address", + "shop.location" + ] + ] + }, + { + "question": "find the #names of stores# whose #number products# is more than the average number of products.", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name", + "title", + "business_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "linking_list": [ + [ + "names of stores", + "shop.name" + ], + [ + "names of stores", + "shop.title" + ], + [ + "names of stores", + "shop.business_name" + ], + [ + "number products", + "shop.number_products" + ] + ], + "linking_list_idx": [ + [ + 0, + "shop.name" + ], + [ + 0, + "shop.title" + ], + [ + 0, + "shop.business_name" + ], + [ + 1, + "shop.number_products" + ] + ], + "linking_list_col": [ + [ + "shop.title", + "shop.business_name" + ], + [ + "shop.name", + "shop.business_name" + ], + [ + "shop.title", + "shop.name" + ] + ] + }, + { + "question": "which #shops' number products# is above the average? give me the #shop names# .", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name", + "title", + "business_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "linking_list": [ + [ + "shop names", + "shop.name" + ], + [ + "shop names", + "shop.title" + ], + [ + "shop names", + "shop.business_name" + ], + [ + "shops' number products", + "shop.number_products" + ] + ], + "linking_list_idx": [ + [ + 0, + "shop.name" + ], + [ + 0, + "shop.title" + ], + [ + 0, + "shop.business_name" + ], + [ + 1, + "shop.number_products" + ] + ], + "linking_list_col": [ + [ + "shop.title", + "shop.business_name" + ], + [ + "shop.name", + "shop.business_name" + ], + [ + "shop.title", + "shop.name" + ] + ] + }, + { + "question": "find the #name of employee# who was awarded the most times in the evaluation.", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city", + "full_name", + "given_name" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "linking_list": [ + [ + "name of employee", + "employee.name" + ], + [ + "name of employee", + "employee.full_name" + ], + [ + "name of employee", + "employee.given_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "employee.name" + ], + [ + 0, + "employee.full_name" + ], + [ + 0, + "employee.given_name" + ] + ], + "linking_list_col": [ + [ + "employee.full_name", + "employee.given_name" + ], + [ + "employee.name", + "employee.given_name" + ], + [ + "employee.full_name", + "employee.name" + ] + ] + }, + { + "question": "which employee received the most awards in evaluations? give me the #employee name# .", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city", + "full_name", + "given_name" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "linking_list": [ + [ + "employee name", + "employee.name" + ], + [ + "employee name", + "employee.full_name" + ], + [ + "employee name", + "employee.given_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "employee.name" + ], + [ + 0, + "employee.full_name" + ], + [ + 0, + "employee.given_name" + ] + ], + "linking_list_col": [ + [ + "employee.full_name", + "employee.given_name" + ], + [ + "employee.name", + "employee.given_name" + ], + [ + "employee.full_name", + "employee.name" + ] + ] + }, + { + "question": "find the #name of the employee# who got the highest one time #bonus# .", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city", + "full_name", + "given_name" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "linking_list": [ + [ + "name of the employee", + "employee.name" + ], + [ + "name of the employee", + "employee.full_name" + ], + [ + "name of the employee", + "employee.given_name" + ], + [ + "bonus", + "evaluation.bonus" + ] + ], + "linking_list_idx": [ + [ + 0, + "employee.name" + ], + [ + 0, + "employee.full_name" + ], + [ + 0, + "employee.given_name" + ], + [ + 1, + "evaluation.bonus" + ] + ], + "linking_list_col": [ + [ + "employee.full_name", + "employee.given_name" + ], + [ + "employee.name", + "employee.given_name" + ], + [ + "employee.full_name", + "employee.name" + ] + ] + }, + { + "question": "which employee received the biggest bonus? give me the #employee name# .", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city", + "full_name", + "given_name" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "linking_list": [ + [ + "employee name", + "employee.name" + ], + [ + "employee name", + "employee.full_name" + ], + [ + "employee name", + "employee.given_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "employee.name" + ], + [ + 0, + "employee.full_name" + ], + [ + 0, + "employee.given_name" + ] + ], + "linking_list_col": [ + [ + "employee.full_name", + "employee.given_name" + ], + [ + "employee.name", + "employee.given_name" + ], + [ + "employee.full_name", + "employee.name" + ] + ] + }, + { + "question": "find the #names of employees# who never won any award in the evaluation.", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city", + "full_name", + "given_name" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "linking_list": [ + [ + "names of employees", + "employee.name" + ], + [ + "names of employees", + "employee.full_name" + ], + [ + "names of employees", + "employee.given_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "employee.name" + ], + [ + 0, + "employee.full_name" + ], + [ + 0, + "employee.given_name" + ] + ], + "linking_list_col": [ + [ + "employee.full_name", + "employee.given_name" + ], + [ + "employee.name", + "employee.given_name" + ], + [ + "employee.full_name", + "employee.name" + ] + ] + }, + { + "question": "what are the #names of the employees# who never received any evaluation?", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city", + "full_name", + "given_name" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "linking_list": [ + [ + "names of the employees", + "employee.name" + ], + [ + "names of the employees", + "employee.full_name" + ], + [ + "names of the employees", + "employee.given_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "employee.name" + ], + [ + 0, + "employee.full_name" + ], + [ + 0, + "employee.given_name" + ] + ], + "linking_list_col": [ + [ + "employee.full_name", + "employee.given_name" + ], + [ + "employee.name", + "employee.given_name" + ], + [ + "employee.full_name", + "employee.name" + ] + ] + }, + { + "question": "what is the #name of the shop that is hiring# the largest number of employees?", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name", + "title", + "business_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "linking_list": [ + [ + "name of the shop that is hiring", + "shop.name" + ], + [ + "name of the shop that is hiring", + "shop.title" + ], + [ + "name of the shop that is hiring", + "shop.business_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "shop.name" + ], + [ + 0, + "shop.title" + ], + [ + 0, + "shop.business_name" + ] + ], + "linking_list_col": [ + [ + "shop.title", + "shop.business_name" + ], + [ + "shop.name", + "shop.business_name" + ], + [ + "shop.title", + "shop.name" + ] + ] + }, + { + "question": "which shop has the most employees? give me the #shop name# .", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name", + "title", + "business_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "linking_list": [ + [ + "shop name", + "shop.name" + ], + [ + "shop name", + "shop.title" + ], + [ + "shop name", + "shop.business_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "shop.name" + ], + [ + 0, + "shop.title" + ], + [ + 0, + "shop.business_name" + ] + ], + "linking_list_col": [ + [ + "shop.title", + "shop.business_name" + ], + [ + "shop.name", + "shop.business_name" + ], + [ + "shop.title", + "shop.name" + ] + ] + }, + { + "question": "find the #name of the shops# that do not hire any employee.", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name", + "title", + "business_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "linking_list": [ + [ + "name of the shops", + "shop.name" + ], + [ + "name of the shops", + "shop.title" + ], + [ + "name of the shops", + "shop.business_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "shop.name" + ], + [ + 0, + "shop.title" + ], + [ + 0, + "shop.business_name" + ] + ], + "linking_list_col": [ + [ + "shop.title", + "shop.business_name" + ], + [ + "shop.name", + "shop.business_name" + ], + [ + "shop.title", + "shop.name" + ] + ] + }, + { + "question": "what is #total bonus# given in all evaluations?", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus", + "incentive", + "reward" + ] + }, + "linking_list": [ + [ + "total bonus", + "evaluation.bonus" + ], + [ + "total bonus", + "evaluation.incentive" + ], + [ + "total bonus", + "evaluation.reward" + ] + ], + "linking_list_idx": [ + [ + 0, + "evaluation.bonus" + ], + [ + 0, + "evaluation.incentive" + ], + [ + 0, + "evaluation.reward" + ] + ], + "linking_list_col": [ + [ + "evaluation.incentive", + "evaluation.reward" + ], + [ + "evaluation.bonus", + "evaluation.reward" + ], + [ + "evaluation.incentive", + "evaluation.bonus" + ] + ] + }, + { + "question": "find the total amount of #bonus# given in all the evaluations.", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus", + "incentive", + "reward" + ] + }, + "linking_list": [ + [ + "bonus", + "evaluation.bonus" + ], + [ + "bonus", + "evaluation.incentive" + ], + [ + "bonus", + "evaluation.reward" + ] + ], + "linking_list_idx": [ + [ + 0, + "evaluation.bonus" + ], + [ + 0, + "evaluation.incentive" + ], + [ + 0, + "evaluation.reward" + ] + ], + "linking_list_col": [ + [ + "evaluation.incentive", + "evaluation.reward" + ], + [ + "evaluation.bonus", + "evaluation.reward" + ], + [ + "evaluation.incentive", + "evaluation.bonus" + ] + ] + }, + { + "question": "which #district# has both #stores with less than 3000 products# and stores with more than 10000 products?", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name", + "region", + "territory" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "linking_list": [ + [ + "district", + "shop.district" + ], + [ + "district", + "shop.region" + ], + [ + "district", + "shop.territory" + ], + [ + "stores with less than 3000 products", + "shop.number_products" + ] + ], + "linking_list_idx": [ + [ + 0, + "shop.district" + ], + [ + 0, + "shop.region" + ], + [ + 0, + "shop.territory" + ], + [ + 1, + "shop.number_products" + ] + ], + "linking_list_col": [ + [ + "shop.region", + "shop.territory" + ], + [ + "shop.district", + "shop.territory" + ], + [ + "shop.region", + "shop.district" + ] + ] + }, + { + "question": "find the #districts# in which there are both shops selling #less than 3000 products# and shops selling #more than 10000 products# .", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name", + "region", + "territory" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "linking_list": [ + [ + "districts", + "shop.district" + ], + [ + "districts", + "shop.region" + ], + [ + "districts", + "shop.territory" + ], + [ + "less than 3000 products", + "shop.number_products" + ], + [ + "more than 10000 products", + "shop.number_products" + ] + ], + "linking_list_idx": [ + [ + 0, + "shop.district" + ], + [ + 0, + "shop.region" + ], + [ + 0, + "shop.territory" + ], + [ + 1, + "shop.number_products" + ], + [ + 2, + "shop.number_products" + ] + ], + "linking_list_col": [ + [ + "shop.region", + "shop.territory" + ], + [ + "shop.district", + "shop.territory" + ], + [ + "shop.region", + "shop.district" + ] + ] + }, + { + "question": "how many different #store locations# are there?", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name", + "address", + "place" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "linking_list": [ + [ + "store locations", + "shop.location" + ], + [ + "store locations", + "shop.address" + ], + [ + "store locations", + "shop.place" + ] + ], + "linking_list_idx": [ + [ + 0, + "shop.location" + ], + [ + 0, + "shop.address" + ], + [ + 0, + "shop.place" + ] + ], + "linking_list_col": [ + [ + "shop.address", + "shop.place" + ], + [ + "shop.location", + "shop.place" + ], + [ + "shop.address", + "shop.location" + ] + ] + }, + { + "question": "count the number of distinct #store locations# .", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name", + "address", + "place" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "linking_list": [ + [ + "store locations", + "shop.location" + ], + [ + "store locations", + "shop.address" + ], + [ + "store locations", + "shop.place" + ] + ], + "linking_list_idx": [ + [ + 0, + "shop.location" + ], + [ + 0, + "shop.address" + ], + [ + 0, + "shop.place" + ] + ], + "linking_list_col": [ + [ + "shop.address", + "shop.place" + ], + [ + "shop.location", + "shop.place" + ], + [ + "shop.address", + "shop.location" + ] + ] + }, + { + "question": "list #document ids# , #document names# , and #document descriptions for all documents# .", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details", + "file_name", + "record_name" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "document IDs", + "documents.document_id" + ], + [ + "document names", + "documents.document_name" + ], + [ + "document names", + "documents.file_name" + ], + [ + "document names", + "documents.record_name" + ], + [ + "document descriptions for all documents", + "documents.document_description" + ] + ], + "linking_list_idx": [ + [ + 0, + "documents.document_id" + ], + [ + 1, + "documents.document_name" + ], + [ + 1, + "documents.file_name" + ], + [ + 1, + "documents.record_name" + ], + [ + 2, + "documents.document_description" + ] + ], + "linking_list_col": [ + [ + "documents.file_name", + "documents.record_name" + ], + [ + "documents.document_name", + "documents.record_name" + ], + [ + "documents.file_name", + "documents.document_name" + ] + ] + }, + { + "question": "what are the #ids# , #names# , and descriptions for all documents?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details", + "file_name", + "record_name" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "ids", + "documents.document_id" + ], + [ + "names", + "documents.document_name" + ], + [ + "names", + "documents.file_name" + ], + [ + "names", + "documents.record_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "documents.document_id" + ], + [ + 1, + "documents.document_name" + ], + [ + 1, + "documents.file_name" + ], + [ + 1, + "documents.record_name" + ] + ], + "linking_list_col": [ + [ + "documents.file_name", + "documents.record_name" + ], + [ + "documents.document_name", + "documents.record_name" + ], + [ + "documents.file_name", + "documents.document_name" + ] + ] + }, + { + "question": "what is the #document name# and #template id for document with description# with the letter 'w' in it?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details", + "file_name", + "record_name" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "document name", + "documents.document_name" + ], + [ + "document name", + "documents.file_name" + ], + [ + "document name", + "documents.record_name" + ], + [ + "template id for document with description", + "documents.template_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "documents.document_name" + ], + [ + 0, + "documents.file_name" + ], + [ + 0, + "documents.record_name" + ], + [ + 1, + "documents.template_id" + ] + ], + "linking_list_col": [ + [ + "documents.file_name", + "documents.record_name" + ], + [ + "documents.document_name", + "documents.record_name" + ], + [ + "documents.file_name", + "documents.document_name" + ] + ] + }, + { + "question": "return the #names# and #template ids# for documents that contain the letter w in their #description# .", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details", + "file_name", + "record_name" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "names", + "documents.document_name" + ], + [ + "names", + "documents.file_name" + ], + [ + "names", + "documents.record_name" + ], + [ + "template ids", + "documents.template_id" + ], + [ + "description", + "documents.document_description" + ] + ], + "linking_list_idx": [ + [ + 0, + "documents.document_name" + ], + [ + 0, + "documents.file_name" + ], + [ + 0, + "documents.record_name" + ], + [ + 1, + "documents.template_id" + ], + [ + 2, + "documents.document_description" + ] + ], + "linking_list_col": [ + [ + "documents.file_name", + "documents.record_name" + ], + [ + "documents.document_name", + "documents.record_name" + ], + [ + "documents.file_name", + "documents.document_name" + ] + ] + }, + { + "question": "what is the #document id# , #template id# and #description for document named# \"robbin cv\"?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details", + "pattern_id", + "form_id" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "document id", + "documents.document_id" + ], + [ + "template id", + "documents.template_id" + ], + [ + "template id", + "documents.pattern_id" + ], + [ + "template id", + "documents.form_id" + ], + [ + "description for document named", + "documents.document_description" + ] + ], + "linking_list_idx": [ + [ + 0, + "documents.document_id" + ], + [ + 1, + "documents.template_id" + ], + [ + 1, + "documents.pattern_id" + ], + [ + 1, + "documents.form_id" + ], + [ + 2, + "documents.document_description" + ] + ], + "linking_list_col": [ + [ + "documents.pattern_id", + "documents.form_id" + ], + [ + "documents.template_id", + "documents.form_id" + ], + [ + "documents.pattern_id", + "documents.template_id" + ] + ] + }, + { + "question": "return the #document id# , #template id# , and #description for the document with the name# robbin cv.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details", + "pattern_id", + "form_id" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "document id", + "documents.document_id" + ], + [ + "template id", + "documents.template_id" + ], + [ + "template id", + "documents.pattern_id" + ], + [ + "template id", + "documents.form_id" + ], + [ + "description for the document with the name", + "documents.document_description" + ] + ], + "linking_list_idx": [ + [ + 0, + "documents.document_id" + ], + [ + 1, + "documents.template_id" + ], + [ + 1, + "documents.pattern_id" + ], + [ + 1, + "documents.form_id" + ], + [ + 2, + "documents.document_description" + ] + ], + "linking_list_col": [ + [ + "documents.pattern_id", + "documents.form_id" + ], + [ + "documents.template_id", + "documents.form_id" + ], + [ + "documents.pattern_id", + "documents.template_id" + ] + ] + }, + { + "question": "count the number of different #templates# used for documents.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details", + "pattern_id", + "form_id" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "templates", + "documents.template_id" + ], + [ + "templates", + "documents.pattern_id" + ], + [ + "templates", + "documents.form_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "documents.template_id" + ], + [ + 0, + "documents.pattern_id" + ], + [ + 0, + "documents.form_id" + ] + ], + "linking_list_col": [ + [ + "documents.pattern_id", + "documents.form_id" + ], + [ + "documents.template_id", + "documents.form_id" + ], + [ + "documents.pattern_id", + "documents.template_id" + ] + ] + }, + { + "question": "show all #template ids# and number of documents using each template.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details", + "pattern_id", + "form_id" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "template ids", + "documents.template_id" + ], + [ + "template ids", + "documents.pattern_id" + ], + [ + "template ids", + "documents.form_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "documents.template_id" + ], + [ + 0, + "documents.pattern_id" + ], + [ + 0, + "documents.form_id" + ] + ], + "linking_list_col": [ + [ + "documents.pattern_id", + "documents.form_id" + ], + [ + "documents.template_id", + "documents.form_id" + ], + [ + "documents.pattern_id", + "documents.template_id" + ] + ] + }, + { + "question": "what are all different #template ids# used for documents, and how many times were each of them used?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details", + "pattern_id", + "form_id" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "template ids", + "documents.template_id" + ], + [ + "template ids", + "documents.pattern_id" + ], + [ + "template ids", + "documents.form_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "documents.template_id" + ], + [ + 0, + "documents.pattern_id" + ], + [ + 0, + "documents.form_id" + ] + ], + "linking_list_col": [ + [ + "documents.pattern_id", + "documents.form_id" + ], + [ + "documents.template_id", + "documents.form_id" + ], + [ + "documents.pattern_id", + "documents.template_id" + ] + ] + }, + { + "question": "what is the #id# and #type code for the template# used by the most documents?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details", + "form_type_code", + "document_type_code" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "id", + "documents.template_id" + ], + [ + "type code for the template", + "templates.template_type_code" + ], + [ + "type code for the template", + "templates.form_type_code" + ], + [ + "type code for the template", + "templates.document_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "documents.template_id" + ], + [ + 1, + "templates.template_type_code" + ], + [ + 1, + "templates.form_type_code" + ], + [ + 1, + "templates.document_type_code" + ] + ], + "linking_list_col": [ + [ + "templates.form_type_code", + "templates.document_type_code" + ], + [ + "templates.template_type_code", + "templates.document_type_code" + ], + [ + "templates.form_type_code", + "templates.template_type_code" + ] + ] + }, + { + "question": "return the #id# and #type code of the template# that is used for the greatest number of documents.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details", + "form_type_code", + "document_type_code" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "id", + "documents.template_id" + ], + [ + "type code of the template", + "templates.template_type_code" + ], + [ + "type code of the template", + "templates.form_type_code" + ], + [ + "type code of the template", + "templates.document_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "documents.template_id" + ], + [ + 1, + "templates.template_type_code" + ], + [ + 1, + "templates.form_type_code" + ], + [ + 1, + "templates.document_type_code" + ] + ], + "linking_list_col": [ + [ + "templates.form_type_code", + "templates.document_type_code" + ], + [ + "templates.template_type_code", + "templates.document_type_code" + ], + [ + "templates.form_type_code", + "templates.template_type_code" + ] + ] + }, + { + "question": "what are the #template ids# of any templates used in more than a single document?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details", + "pattern_id", + "form_id" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "template ids", + "documents.template_id" + ], + [ + "template ids", + "documents.pattern_id" + ], + [ + "template ids", + "documents.form_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "documents.template_id" + ], + [ + 0, + "documents.pattern_id" + ], + [ + 0, + "documents.form_id" + ] + ], + "linking_list_col": [ + [ + "documents.pattern_id", + "documents.form_id" + ], + [ + "documents.template_id", + "documents.form_id" + ], + [ + "documents.pattern_id", + "documents.template_id" + ] + ] + }, + { + "question": "show #ids for all templates# not used by any document.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details", + "form_id", + "layout_id" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "ids for all templates", + "templates.template_id" + ], + [ + "ids for all templates", + "templates.form_id" + ], + [ + "ids for all templates", + "templates.layout_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.template_id" + ], + [ + 0, + "templates.form_id" + ], + [ + 0, + "templates.layout_id" + ] + ], + "linking_list_col": [ + [ + "templates.form_id", + "templates.layout_id" + ], + [ + "templates.template_id", + "templates.layout_id" + ], + [ + "templates.form_id", + "templates.template_id" + ] + ] + }, + { + "question": "what are the #ids for templates# that are not used in any documents?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details", + "form_id", + "layout_id" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "ids for templates", + "templates.template_id" + ], + [ + "ids for templates", + "templates.form_id" + ], + [ + "ids for templates", + "templates.layout_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.template_id" + ], + [ + 0, + "templates.form_id" + ], + [ + 0, + "templates.layout_id" + ] + ], + "linking_list_col": [ + [ + "templates.form_id", + "templates.layout_id" + ], + [ + "templates.template_id", + "templates.layout_id" + ], + [ + "templates.form_id", + "templates.template_id" + ] + ] + }, + { + "question": "show #template ids# , #version numbers# , and #template type codes for all templates# .", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details", + "form_type_code", + "document_type_code" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "template ids", + "templates.template_id" + ], + [ + "version numbers", + "templates.version_number" + ], + [ + "template type codes for all templates", + "templates.template_type_code" + ], + [ + "template type codes for all templates", + "templates.form_type_code" + ], + [ + "template type codes for all templates", + "templates.document_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.template_id" + ], + [ + 1, + "templates.version_number" + ], + [ + 2, + "templates.template_type_code" + ], + [ + 2, + "templates.form_type_code" + ], + [ + 2, + "templates.document_type_code" + ] + ], + "linking_list_col": [ + [ + "templates.form_type_code", + "templates.document_type_code" + ], + [ + "templates.template_type_code", + "templates.document_type_code" + ], + [ + "templates.form_type_code", + "templates.template_type_code" + ] + ] + }, + { + "question": "show all distinct #template type codes for all templates# .", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details", + "form_type_code", + "document_type_code" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "template type codes for all templates", + "templates.template_type_code" + ], + [ + "template type codes for all templates", + "templates.form_type_code" + ], + [ + "template type codes for all templates", + "templates.document_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.template_type_code" + ], + [ + 0, + "templates.form_type_code" + ], + [ + 0, + "templates.document_type_code" + ] + ], + "linking_list_col": [ + [ + "templates.form_type_code", + "templates.document_type_code" + ], + [ + "templates.template_type_code", + "templates.document_type_code" + ], + [ + "templates.form_type_code", + "templates.template_type_code" + ] + ] + }, + { + "question": "what are the #ids of templates with template type code# pp or ppt?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details", + "form_id", + "layout_id" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "ids of templates with template type code", + "templates.template_id" + ], + [ + "ids of templates with template type code", + "templates.form_id" + ], + [ + "ids of templates with template type code", + "templates.layout_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.template_id" + ], + [ + 0, + "templates.form_id" + ], + [ + 0, + "templates.layout_id" + ] + ], + "linking_list_col": [ + [ + "templates.form_id", + "templates.layout_id" + ], + [ + "templates.template_id", + "templates.layout_id" + ], + [ + "templates.form_id", + "templates.template_id" + ] + ] + }, + { + "question": "return the #ids of templates# that have the #code# pp or ppt.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details", + "form_id", + "layout_id" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "ids of templates", + "templates.template_id" + ], + [ + "ids of templates", + "templates.form_id" + ], + [ + "ids of templates", + "templates.layout_id" + ], + [ + "code", + "templates.template_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.template_id" + ], + [ + 0, + "templates.form_id" + ], + [ + 0, + "templates.layout_id" + ], + [ + 1, + "templates.template_type_code" + ] + ], + "linking_list_col": [ + [ + "templates.form_id", + "templates.layout_id" + ], + [ + "templates.template_id", + "templates.layout_id" + ], + [ + "templates.form_id", + "templates.template_id" + ] + ] + }, + { + "question": "return the #version numbers# and #template type codes# of templates with a #version number# greater than 5.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details", + "form_type_code", + "document_type_code" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "version numbers", + "templates.version_number" + ], + [ + "template type codes", + "templates.template_type_code" + ], + [ + "template type codes", + "templates.form_type_code" + ], + [ + "template type codes", + "templates.document_type_code" + ], + [ + "version number", + "templates.version_number" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.version_number" + ], + [ + 1, + "templates.template_type_code" + ], + [ + 1, + "templates.form_type_code" + ], + [ + 1, + "templates.document_type_code" + ], + [ + 2, + "templates.version_number" + ] + ], + "linking_list_col": [ + [ + "templates.form_type_code", + "templates.document_type_code" + ], + [ + "templates.template_type_code", + "templates.document_type_code" + ], + [ + "templates.form_type_code", + "templates.template_type_code" + ] + ] + }, + { + "question": "show all #template type codes# and number of templates for each.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details", + "form_type_code", + "document_type_code" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "template type codes", + "templates.template_type_code" + ], + [ + "template type codes", + "templates.form_type_code" + ], + [ + "template type codes", + "templates.document_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.template_type_code" + ], + [ + 0, + "templates.form_type_code" + ], + [ + 0, + "templates.document_type_code" + ] + ], + "linking_list_col": [ + [ + "templates.form_type_code", + "templates.document_type_code" + ], + [ + "templates.template_type_code", + "templates.document_type_code" + ], + [ + "templates.form_type_code", + "templates.template_type_code" + ] + ] + }, + { + "question": "what are the different #template type codes# , and how many templates correspond to each?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details", + "form_type_code", + "document_type_code" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "template type codes", + "templates.template_type_code" + ], + [ + "template type codes", + "templates.form_type_code" + ], + [ + "template type codes", + "templates.document_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.template_type_code" + ], + [ + 0, + "templates.form_type_code" + ], + [ + 0, + "templates.document_type_code" + ] + ], + "linking_list_col": [ + [ + "templates.form_type_code", + "templates.document_type_code" + ], + [ + "templates.template_type_code", + "templates.document_type_code" + ], + [ + "templates.form_type_code", + "templates.template_type_code" + ] + ] + }, + { + "question": "which #template type code# has most number of templates?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details", + "form_type_code", + "document_type_code" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "template type code", + "templates.template_type_code" + ], + [ + "template type code", + "templates.form_type_code" + ], + [ + "template type code", + "templates.document_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.template_type_code" + ], + [ + 0, + "templates.form_type_code" + ], + [ + 0, + "templates.document_type_code" + ] + ], + "linking_list_col": [ + [ + "templates.form_type_code", + "templates.document_type_code" + ], + [ + "templates.template_type_code", + "templates.document_type_code" + ], + [ + "templates.form_type_code", + "templates.template_type_code" + ] + ] + }, + { + "question": "return the #type code of the template type# that the most templates belong to.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details", + "form_type_code", + "document_type_code" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "type code of the template type", + "templates.template_type_code" + ], + [ + "type code of the template type", + "templates.form_type_code" + ], + [ + "type code of the template type", + "templates.document_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.template_type_code" + ], + [ + 0, + "templates.form_type_code" + ], + [ + 0, + "templates.document_type_code" + ] + ], + "linking_list_col": [ + [ + "templates.form_type_code", + "templates.document_type_code" + ], + [ + "templates.template_type_code", + "templates.document_type_code" + ], + [ + "templates.form_type_code", + "templates.template_type_code" + ] + ] + }, + { + "question": "show all #template type codes# with less than three templates.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details", + "form_type_code", + "document_type_code" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "template type codes", + "templates.template_type_code" + ], + [ + "template type codes", + "templates.form_type_code" + ], + [ + "template type codes", + "templates.document_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.template_type_code" + ], + [ + 0, + "templates.form_type_code" + ], + [ + 0, + "templates.document_type_code" + ] + ], + "linking_list_col": [ + [ + "templates.form_type_code", + "templates.document_type_code" + ], + [ + "templates.template_type_code", + "templates.document_type_code" + ], + [ + "templates.form_type_code", + "templates.template_type_code" + ] + ] + }, + { + "question": "what are the #codes of template types# that have fewer than 3 templates?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details", + "form_type_code", + "document_type_code" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "codes of template types", + "templates.template_type_code" + ], + [ + "codes of template types", + "templates.form_type_code" + ], + [ + "codes of template types", + "templates.document_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.template_type_code" + ], + [ + 0, + "templates.form_type_code" + ], + [ + 0, + "templates.document_type_code" + ] + ], + "linking_list_col": [ + [ + "templates.form_type_code", + "templates.document_type_code" + ], + [ + "templates.template_type_code", + "templates.document_type_code" + ], + [ + "templates.form_type_code", + "templates.template_type_code" + ] + ] + }, + { + "question": "return the #lowest version number# , along with its corresponding #template type code# .", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details", + "form_type_code", + "document_type_code" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "lowest version number", + "templates.version_number" + ], + [ + "template type code", + "templates.template_type_code" + ], + [ + "template type code", + "templates.form_type_code" + ], + [ + "template type code", + "templates.document_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.version_number" + ], + [ + 1, + "templates.template_type_code" + ], + [ + 1, + "templates.form_type_code" + ], + [ + 1, + "templates.document_type_code" + ] + ], + "linking_list_col": [ + [ + "templates.form_type_code", + "templates.document_type_code" + ], + [ + "templates.template_type_code", + "templates.document_type_code" + ], + [ + "templates.form_type_code", + "templates.template_type_code" + ] + ] + }, + { + "question": "what is the #template type code# of the template used by document with the name \"data base\"?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details", + "form_type_code", + "document_type_code" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "template type code", + "templates.template_type_code" + ], + [ + "template type code", + "templates.form_type_code" + ], + [ + "template type code", + "templates.document_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.template_type_code" + ], + [ + 0, + "templates.form_type_code" + ], + [ + 0, + "templates.document_type_code" + ] + ], + "linking_list_col": [ + [ + "templates.form_type_code", + "templates.document_type_code" + ], + [ + "templates.template_type_code", + "templates.document_type_code" + ], + [ + "templates.form_type_code", + "templates.template_type_code" + ] + ] + }, + { + "question": "return the #template type code# of the template that is used by a #document named# data base.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details", + "form_type_code", + "document_type_code" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "template type code", + "templates.template_type_code" + ], + [ + "template type code", + "templates.form_type_code" + ], + [ + "template type code", + "templates.document_type_code" + ], + [ + "document named", + "documents.document_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.template_type_code" + ], + [ + 0, + "templates.form_type_code" + ], + [ + 0, + "templates.document_type_code" + ], + [ + 1, + "documents.document_name" + ] + ], + "linking_list_col": [ + [ + "templates.form_type_code", + "templates.document_type_code" + ], + [ + "templates.template_type_code", + "templates.document_type_code" + ], + [ + "templates.form_type_code", + "templates.template_type_code" + ] + ] + }, + { + "question": "show all #document names# using #templates with template type code# bk.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details", + "file_name", + "record_name" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "document names", + "documents.document_name" + ], + [ + "document names", + "documents.file_name" + ], + [ + "document names", + "documents.record_name" + ], + [ + "templates with template type code", + "templates.template_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "documents.document_name" + ], + [ + 0, + "documents.file_name" + ], + [ + 0, + "documents.record_name" + ], + [ + 1, + "templates.template_type_code" + ] + ], + "linking_list_col": [ + [ + "documents.file_name", + "documents.record_name" + ], + [ + "documents.document_name", + "documents.record_name" + ], + [ + "documents.file_name", + "documents.document_name" + ] + ] + }, + { + "question": "what are the #names of documents# that use #templates with the code# bk?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details", + "file_name", + "record_name" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "names of documents", + "documents.document_name" + ], + [ + "names of documents", + "documents.file_name" + ], + [ + "names of documents", + "documents.record_name" + ], + [ + "templates with the code", + "templates.template_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "documents.document_name" + ], + [ + 0, + "documents.file_name" + ], + [ + 0, + "documents.record_name" + ], + [ + 1, + "templates.template_type_code" + ] + ], + "linking_list_col": [ + [ + "documents.file_name", + "documents.record_name" + ], + [ + "documents.document_name", + "documents.record_name" + ], + [ + "documents.file_name", + "documents.document_name" + ] + ] + }, + { + "question": "show all #template type codes# and the number of documents using each type.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details", + "form_type_code", + "document_type_code" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "template type codes", + "templates.template_type_code" + ], + [ + "template type codes", + "templates.form_type_code" + ], + [ + "template type codes", + "templates.document_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.template_type_code" + ], + [ + 0, + "templates.form_type_code" + ], + [ + 0, + "templates.document_type_code" + ] + ], + "linking_list_col": [ + [ + "templates.form_type_code", + "templates.document_type_code" + ], + [ + "templates.template_type_code", + "templates.document_type_code" + ], + [ + "templates.form_type_code", + "templates.template_type_code" + ] + ] + }, + { + "question": "what are the different #template type codes# , and how many documents use each type?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details", + "form_type_code", + "document_type_code" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "template type codes", + "templates.template_type_code" + ], + [ + "template type codes", + "templates.form_type_code" + ], + [ + "template type codes", + "templates.document_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.template_type_code" + ], + [ + 0, + "templates.form_type_code" + ], + [ + 0, + "templates.document_type_code" + ] + ], + "linking_list_col": [ + [ + "templates.form_type_code", + "templates.document_type_code" + ], + [ + "templates.template_type_code", + "templates.document_type_code" + ], + [ + "templates.form_type_code", + "templates.template_type_code" + ] + ] + }, + { + "question": "which #template type code# is used by most number of documents?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details", + "form_type_code", + "document_type_code" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "template type code", + "templates.template_type_code" + ], + [ + "template type code", + "templates.form_type_code" + ], + [ + "template type code", + "templates.document_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.template_type_code" + ], + [ + 0, + "templates.form_type_code" + ], + [ + 0, + "templates.document_type_code" + ] + ], + "linking_list_col": [ + [ + "templates.form_type_code", + "templates.document_type_code" + ], + [ + "templates.template_type_code", + "templates.document_type_code" + ], + [ + "templates.form_type_code", + "templates.template_type_code" + ] + ] + }, + { + "question": "show all #template type codes# that are not used by any document.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details", + "form_type_code", + "document_type_code" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "template type codes", + "templates.template_type_code" + ], + [ + "template type codes", + "templates.form_type_code" + ], + [ + "template type codes", + "templates.document_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.template_type_code" + ], + [ + 0, + "templates.form_type_code" + ], + [ + 0, + "templates.document_type_code" + ] + ], + "linking_list_col": [ + [ + "templates.form_type_code", + "templates.document_type_code" + ], + [ + "templates.template_type_code", + "templates.document_type_code" + ], + [ + "templates.form_type_code", + "templates.template_type_code" + ] + ] + }, + { + "question": "what are the #codes of template types# that are not used for any document?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details", + "form_type_code", + "document_type_code" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "codes of template types", + "templates.template_type_code" + ], + [ + "codes of template types", + "templates.form_type_code" + ], + [ + "codes of template types", + "templates.document_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.template_type_code" + ], + [ + 0, + "templates.form_type_code" + ], + [ + 0, + "templates.document_type_code" + ] + ], + "linking_list_col": [ + [ + "templates.form_type_code", + "templates.document_type_code" + ], + [ + "templates.template_type_code", + "templates.document_type_code" + ], + [ + "templates.form_type_code", + "templates.template_type_code" + ] + ] + }, + { + "question": "show all template type codes and #descriptions# .", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description", + "type_description", + "description_text" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "descriptions", + "ref_template_types.template_type_description" + ], + [ + "descriptions", + "ref_template_types.type_description" + ], + [ + "descriptions", + "ref_template_types.description_text" + ] + ], + "linking_list_idx": [ + [ + 0, + "ref_template_types.template_type_description" + ], + [ + 0, + "ref_template_types.type_description" + ], + [ + 0, + "ref_template_types.description_text" + ] + ], + "linking_list_col": [ + [ + "ref_template_types.type_description", + "ref_template_types.description_text" + ], + [ + "ref_template_types.template_type_description", + "ref_template_types.description_text" + ], + [ + "ref_template_types.type_description", + "ref_template_types.template_type_description" + ] + ] + }, + { + "question": "what is the #template type descriptions for template type code# \"ad\".", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description", + "type_description", + "description_text" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "template type descriptions for template type code", + "ref_template_types.template_type_description" + ], + [ + "template type descriptions for template type code", + "ref_template_types.type_description" + ], + [ + "template type descriptions for template type code", + "ref_template_types.description_text" + ] + ], + "linking_list_idx": [ + [ + 0, + "ref_template_types.template_type_description" + ], + [ + 0, + "ref_template_types.type_description" + ], + [ + 0, + "ref_template_types.description_text" + ] + ], + "linking_list_col": [ + [ + "ref_template_types.type_description", + "ref_template_types.description_text" + ], + [ + "ref_template_types.template_type_description", + "ref_template_types.description_text" + ], + [ + "ref_template_types.type_description", + "ref_template_types.template_type_description" + ] + ] + }, + { + "question": "what is the #template type code for template type description# \"book\".", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description", + "type_id", + "code_name" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "template type code for template type description", + "ref_template_types.template_type_code" + ], + [ + "template type code for template type description", + "ref_template_types.type_id" + ], + [ + "template type code for template type description", + "ref_template_types.code_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "ref_template_types.template_type_code" + ], + [ + 0, + "ref_template_types.type_id" + ], + [ + 0, + "ref_template_types.code_name" + ] + ], + "linking_list_col": [ + [ + "ref_template_types.type_id", + "ref_template_types.code_name" + ], + [ + "ref_template_types.template_type_code", + "ref_template_types.code_name" + ], + [ + "ref_template_types.type_id", + "ref_template_types.template_type_code" + ] + ] + }, + { + "question": "return the #type code of the template type with the description# \"book\".", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description", + "type_id", + "code_name" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "type code of the template type with the description", + "ref_template_types.template_type_code" + ], + [ + "type code of the template type with the description", + "ref_template_types.type_id" + ], + [ + "type code of the template type with the description", + "ref_template_types.code_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "ref_template_types.template_type_code" + ], + [ + 0, + "ref_template_types.type_id" + ], + [ + 0, + "ref_template_types.code_name" + ] + ], + "linking_list_col": [ + [ + "ref_template_types.type_id", + "ref_template_types.code_name" + ], + [ + "ref_template_types.template_type_code", + "ref_template_types.code_name" + ], + [ + "ref_template_types.type_id", + "ref_template_types.template_type_code" + ] + ] + }, + { + "question": "what are the #distinct template type descriptions for the templates# ever used by any document?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description", + "type_description", + "description_text" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "distinct template type descriptions for the templates", + "ref_template_types.template_type_description" + ], + [ + "distinct template type descriptions for the templates", + "ref_template_types.type_description" + ], + [ + "distinct template type descriptions for the templates", + "ref_template_types.description_text" + ] + ], + "linking_list_idx": [ + [ + 0, + "ref_template_types.template_type_description" + ], + [ + 0, + "ref_template_types.type_description" + ], + [ + 0, + "ref_template_types.description_text" + ] + ], + "linking_list_col": [ + [ + "ref_template_types.type_description", + "ref_template_types.description_text" + ], + [ + "ref_template_types.template_type_description", + "ref_template_types.description_text" + ], + [ + "ref_template_types.type_description", + "ref_template_types.template_type_description" + ] + ] + }, + { + "question": "return the different #descriptions for templates# that have been used in a document.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description", + "type_description", + "description_text" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "descriptions for templates", + "ref_template_types.template_type_description" + ], + [ + "descriptions for templates", + "ref_template_types.type_description" + ], + [ + "descriptions for templates", + "ref_template_types.description_text" + ] + ], + "linking_list_idx": [ + [ + 0, + "ref_template_types.template_type_description" + ], + [ + 0, + "ref_template_types.type_description" + ], + [ + 0, + "ref_template_types.description_text" + ] + ], + "linking_list_col": [ + [ + "ref_template_types.type_description", + "ref_template_types.description_text" + ], + [ + "ref_template_types.template_type_description", + "ref_template_types.description_text" + ], + [ + "ref_template_types.type_description", + "ref_template_types.template_type_description" + ] + ] + }, + { + "question": "what are the #template ids with template type description# \"presentation\".", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details", + "form_id", + "layout_id" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "template ids with template type description", + "templates.template_id" + ], + [ + "template ids with template type description", + "templates.form_id" + ], + [ + "template ids with template type description", + "templates.layout_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.template_id" + ], + [ + 0, + "templates.form_id" + ], + [ + 0, + "templates.layout_id" + ] + ], + "linking_list_col": [ + [ + "templates.form_id", + "templates.layout_id" + ], + [ + "templates.template_id", + "templates.layout_id" + ], + [ + "templates.form_id", + "templates.template_id" + ] + ] + }, + { + "question": "return the #ids# corresponding to #templates with the description# 'presentation'.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details", + "form_id", + "layout_id" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "ids", + "templates.template_id" + ], + [ + "ids", + "templates.form_id" + ], + [ + "ids", + "templates.layout_id" + ], + [ + "templates with the description", + "ref_template_types.template_type_description" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.template_id" + ], + [ + 0, + "templates.form_id" + ], + [ + 0, + "templates.layout_id" + ], + [ + 1, + "ref_template_types.template_type_description" + ] + ], + "linking_list_col": [ + [ + "templates.form_id", + "templates.layout_id" + ], + [ + "templates.template_id", + "templates.layout_id" + ], + [ + "templates.form_id", + "templates.template_id" + ] + ] + }, + { + "question": "what are the #ids# and #texts of paragraphs in the document titled# 'welcome to ny'?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details", + "para_content", + "segment_text" + ] + }, + "linking_list": [ + [ + "ids", + "paragraphs.paragraph_id" + ], + [ + "texts of paragraphs in the document titled", + "paragraphs.paragraph_text" + ], + [ + "texts of paragraphs in the document titled", + "paragraphs.para_content" + ], + [ + "texts of paragraphs in the document titled", + "paragraphs.segment_text" + ] + ], + "linking_list_idx": [ + [ + 0, + "paragraphs.paragraph_id" + ], + [ + 1, + "paragraphs.paragraph_text" + ], + [ + 1, + "paragraphs.para_content" + ], + [ + 1, + "paragraphs.segment_text" + ] + ], + "linking_list_col": [ + [ + "paragraphs.para_content", + "paragraphs.segment_text" + ], + [ + "paragraphs.paragraph_text", + "paragraphs.segment_text" + ], + [ + "paragraphs.para_content", + "paragraphs.paragraph_text" + ] + ] + }, + { + "question": "show all #paragraph texts for the document# \"customer reviews\".", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details", + "para_content", + "segment_text" + ] + }, + "linking_list": [ + [ + "paragraph texts for the document", + "paragraphs.paragraph_text" + ], + [ + "paragraph texts for the document", + "paragraphs.para_content" + ], + [ + "paragraph texts for the document", + "paragraphs.segment_text" + ] + ], + "linking_list_idx": [ + [ + 0, + "paragraphs.paragraph_text" + ], + [ + 0, + "paragraphs.para_content" + ], + [ + 0, + "paragraphs.segment_text" + ] + ], + "linking_list_col": [ + [ + "paragraphs.para_content", + "paragraphs.segment_text" + ], + [ + "paragraphs.paragraph_text", + "paragraphs.segment_text" + ], + [ + "paragraphs.para_content", + "paragraphs.paragraph_text" + ] + ] + }, + { + "question": "what are the #paragraph texts# for the document with the name 'customer reviews'?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details", + "para_content", + "segment_text" + ] + }, + "linking_list": [ + [ + "paragraph texts", + "paragraphs.paragraph_text" + ], + [ + "paragraph texts", + "paragraphs.para_content" + ], + [ + "paragraph texts", + "paragraphs.segment_text" + ] + ], + "linking_list_idx": [ + [ + 0, + "paragraphs.paragraph_text" + ], + [ + 0, + "paragraphs.para_content" + ], + [ + 0, + "paragraphs.segment_text" + ] + ], + "linking_list_col": [ + [ + "paragraphs.para_content", + "paragraphs.segment_text" + ], + [ + "paragraphs.paragraph_text", + "paragraphs.segment_text" + ], + [ + "paragraphs.para_content", + "paragraphs.paragraph_text" + ] + ] + }, + { + "question": "show all #document ids# and the #number of paragraphs# in each document. order by document id.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details", + "doc_id", + "file_id" + ] + }, + "linking_list": [ + [ + "document ids", + "paragraphs.document_id" + ], + [ + "document ids", + "paragraphs.doc_id" + ], + [ + "document ids", + "paragraphs.file_id" + ], + [ + "number of paragraphs", + "paragraphs.paragraph_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "paragraphs.document_id" + ], + [ + 0, + "paragraphs.doc_id" + ], + [ + 0, + "paragraphs.file_id" + ], + [ + 1, + "paragraphs.paragraph_id" + ] + ], + "linking_list_col": [ + [ + "paragraphs.doc_id", + "paragraphs.file_id" + ], + [ + "paragraphs.document_id", + "paragraphs.file_id" + ], + [ + "paragraphs.doc_id", + "paragraphs.document_id" + ] + ] + }, + { + "question": "return the different #document ids# along with the #number of paragraphs# corresponding to each, ordered by id.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details", + "doc_id", + "file_id" + ] + }, + "linking_list": [ + [ + "document ids", + "paragraphs.document_id" + ], + [ + "document ids", + "paragraphs.doc_id" + ], + [ + "document ids", + "paragraphs.file_id" + ], + [ + "number of paragraphs", + "paragraphs.paragraph_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "paragraphs.document_id" + ], + [ + 0, + "paragraphs.doc_id" + ], + [ + 0, + "paragraphs.file_id" + ], + [ + 1, + "paragraphs.paragraph_id" + ] + ], + "linking_list_col": [ + [ + "paragraphs.doc_id", + "paragraphs.file_id" + ], + [ + "paragraphs.document_id", + "paragraphs.file_id" + ], + [ + "paragraphs.doc_id", + "paragraphs.document_id" + ] + ] + }, + { + "question": "show all document ids, names and the #number of paragraphs in each document# .", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details", + "doc_id", + "file_id" + ] + }, + "linking_list": [ + [ + "number of paragraphs in each document", + "paragraphs.document_id" + ], + [ + "number of paragraphs in each document", + "paragraphs.doc_id" + ], + [ + "number of paragraphs in each document", + "paragraphs.file_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "paragraphs.document_id" + ], + [ + 0, + "paragraphs.doc_id" + ], + [ + 0, + "paragraphs.file_id" + ] + ], + "linking_list_col": [ + [ + "paragraphs.doc_id", + "paragraphs.file_id" + ], + [ + "paragraphs.document_id", + "paragraphs.file_id" + ], + [ + "paragraphs.doc_id", + "paragraphs.document_id" + ] + ] + }, + { + "question": "list all #document ids# with at least two paragraphs.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details", + "doc_id", + "file_id" + ] + }, + "linking_list": [ + [ + "document ids", + "paragraphs.document_id" + ], + [ + "document ids", + "paragraphs.doc_id" + ], + [ + "document ids", + "paragraphs.file_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "paragraphs.document_id" + ], + [ + 0, + "paragraphs.doc_id" + ], + [ + 0, + "paragraphs.file_id" + ] + ], + "linking_list_col": [ + [ + "paragraphs.doc_id", + "paragraphs.file_id" + ], + [ + "paragraphs.document_id", + "paragraphs.file_id" + ], + [ + "paragraphs.doc_id", + "paragraphs.document_id" + ] + ] + }, + { + "question": "what is the #document id# and name with greatest number of paragraphs?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details", + "doc_id", + "file_id" + ] + }, + "linking_list": [ + [ + "document id", + "paragraphs.document_id" + ], + [ + "document id", + "paragraphs.doc_id" + ], + [ + "document id", + "paragraphs.file_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "paragraphs.document_id" + ], + [ + 0, + "paragraphs.doc_id" + ], + [ + 0, + "paragraphs.file_id" + ] + ], + "linking_list_col": [ + [ + "paragraphs.doc_id", + "paragraphs.file_id" + ], + [ + "paragraphs.document_id", + "paragraphs.file_id" + ], + [ + "paragraphs.doc_id", + "paragraphs.document_id" + ] + ] + }, + { + "question": "what is the #document id# with least number of paragraphs?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details", + "doc_id", + "file_id" + ] + }, + "linking_list": [ + [ + "document id", + "paragraphs.document_id" + ], + [ + "document id", + "paragraphs.doc_id" + ], + [ + "document id", + "paragraphs.file_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "paragraphs.document_id" + ], + [ + 0, + "paragraphs.doc_id" + ], + [ + 0, + "paragraphs.file_id" + ] + ], + "linking_list_col": [ + [ + "paragraphs.doc_id", + "paragraphs.file_id" + ], + [ + "paragraphs.document_id", + "paragraphs.file_id" + ], + [ + "paragraphs.doc_id", + "paragraphs.document_id" + ] + ] + }, + { + "question": "what is the #document id# with 1 to 2 paragraphs?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details", + "doc_id", + "file_id" + ] + }, + "linking_list": [ + [ + "document id", + "paragraphs.document_id" + ], + [ + "document id", + "paragraphs.doc_id" + ], + [ + "document id", + "paragraphs.file_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "paragraphs.document_id" + ], + [ + 0, + "paragraphs.doc_id" + ], + [ + 0, + "paragraphs.file_id" + ] + ], + "linking_list_col": [ + [ + "paragraphs.doc_id", + "paragraphs.file_id" + ], + [ + "paragraphs.document_id", + "paragraphs.file_id" + ], + [ + "paragraphs.doc_id", + "paragraphs.document_id" + ] + ] + }, + { + "question": "give the #ids of documents# that have between one and two paragraphs.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details", + "doc_id", + "file_id" + ] + }, + "linking_list": [ + [ + "ids of documents", + "paragraphs.document_id" + ], + [ + "ids of documents", + "paragraphs.doc_id" + ], + [ + "ids of documents", + "paragraphs.file_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "paragraphs.document_id" + ], + [ + 0, + "paragraphs.doc_id" + ], + [ + 0, + "paragraphs.file_id" + ] + ], + "linking_list_col": [ + [ + "paragraphs.doc_id", + "paragraphs.file_id" + ], + [ + "paragraphs.document_id", + "paragraphs.file_id" + ], + [ + "paragraphs.doc_id", + "paragraphs.document_id" + ] + ] + }, + { + "question": "show the #document id with paragraph text# 'brazil' and 'ireland'.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details", + "doc_id", + "file_id" + ] + }, + "linking_list": [ + [ + "document id with paragraph text", + "paragraphs.document_id" + ], + [ + "document id with paragraph text", + "paragraphs.doc_id" + ], + [ + "document id with paragraph text", + "paragraphs.file_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "paragraphs.document_id" + ], + [ + 0, + "paragraphs.doc_id" + ], + [ + 0, + "paragraphs.file_id" + ] + ], + "linking_list_col": [ + [ + "paragraphs.doc_id", + "paragraphs.file_id" + ], + [ + "paragraphs.document_id", + "paragraphs.file_id" + ], + [ + "paragraphs.doc_id", + "paragraphs.document_id" + ] + ] + }, + { + "question": "list the #names of teachers# in ascending order of #age# .", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown", + "full_name", + "title" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ] + }, + "linking_list": [ + [ + "names of teachers", + "teacher.name" + ], + [ + "names of teachers", + "teacher.full_name" + ], + [ + "names of teachers", + "teacher.title" + ], + [ + "age", + "teacher.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "teacher.name" + ], + [ + 0, + "teacher.full_name" + ], + [ + 0, + "teacher.title" + ], + [ + 1, + "teacher.age" + ] + ], + "linking_list_col": [ + [ + "teacher.full_name", + "teacher.title" + ], + [ + "teacher.name", + "teacher.title" + ], + [ + "teacher.full_name", + "teacher.name" + ] + ] + }, + { + "question": "what are the #names of the teachers# ordered by ascending age?", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown", + "full_name", + "title" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ] + }, + "linking_list": [ + [ + "names of the teachers", + "teacher.name" + ], + [ + "names of the teachers", + "teacher.full_name" + ], + [ + "names of the teachers", + "teacher.title" + ] + ], + "linking_list_idx": [ + [ + 0, + "teacher.name" + ], + [ + 0, + "teacher.full_name" + ], + [ + 0, + "teacher.title" + ] + ], + "linking_list_col": [ + [ + "teacher.full_name", + "teacher.title" + ], + [ + "teacher.name", + "teacher.title" + ], + [ + "teacher.full_name", + "teacher.name" + ] + ] + }, + { + "question": "what are the #age# and hometown of teachers?", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown", + "years_old", + "dob" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ] + }, + "linking_list": [ + [ + "age", + "teacher.age" + ], + [ + "age", + "teacher.years_old" + ], + [ + "age", + "teacher.dob" + ] + ], + "linking_list_idx": [ + [ + 0, + "teacher.age" + ], + [ + 0, + "teacher.years_old" + ], + [ + 0, + "teacher.dob" + ] + ], + "linking_list_col": [ + [ + "teacher.years_old", + "teacher.dob" + ], + [ + "teacher.age", + "teacher.dob" + ], + [ + "teacher.years_old", + "teacher.age" + ] + ] + }, + { + "question": "what is the #age# and #hometown# of every teacher?", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown", + "years_old", + "dob" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ] + }, + "linking_list": [ + [ + "age", + "teacher.age" + ], + [ + "age", + "teacher.years_old" + ], + [ + "age", + "teacher.dob" + ], + [ + "hometown", + "teacher.hometown" + ] + ], + "linking_list_idx": [ + [ + 0, + "teacher.age" + ], + [ + 0, + "teacher.years_old" + ], + [ + 0, + "teacher.dob" + ], + [ + 1, + "teacher.hometown" + ] + ], + "linking_list_col": [ + [ + "teacher.years_old", + "teacher.dob" + ], + [ + "teacher.age", + "teacher.dob" + ], + [ + "teacher.years_old", + "teacher.age" + ] + ] + }, + { + "question": "what are the #names of the teachers# who are #aged# either 32 or 33?", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown", + "full_name", + "title" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ] + }, + "linking_list": [ + [ + "names of the teachers", + "teacher.name" + ], + [ + "names of the teachers", + "teacher.full_name" + ], + [ + "names of the teachers", + "teacher.title" + ], + [ + "aged", + "teacher.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "teacher.name" + ], + [ + 0, + "teacher.full_name" + ], + [ + 0, + "teacher.title" + ], + [ + 1, + "teacher.age" + ] + ], + "linking_list_col": [ + [ + "teacher.full_name", + "teacher.title" + ], + [ + "teacher.name", + "teacher.title" + ], + [ + "teacher.full_name", + "teacher.name" + ] + ] + }, + { + "question": "show different #hometown of teachers# and the number of teachers from each #hometown# .", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown", + "birthplace", + "origin" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ] + }, + "linking_list": [ + [ + "hometown of teachers", + "teacher.hometown" + ], + [ + "hometown of teachers", + "teacher.birthplace" + ], + [ + "hometown of teachers", + "teacher.origin" + ], + [ + "hometown", + "teacher.hometown" + ], + [ + "hometown", + "teacher.birthplace" + ], + [ + "hometown", + "teacher.origin" + ] + ], + "linking_list_idx": [ + [ + 0, + "teacher.hometown" + ], + [ + 0, + "teacher.birthplace" + ], + [ + 0, + "teacher.origin" + ], + [ + 1, + "teacher.hometown" + ], + [ + 1, + "teacher.birthplace" + ], + [ + 1, + "teacher.origin" + ] + ], + "linking_list_col": [ + [ + "teacher.birthplace", + "teacher.origin" + ], + [ + "teacher.hometown", + "teacher.origin" + ], + [ + "teacher.birthplace", + "teacher.hometown" + ] + ] + }, + { + "question": "for each #hometown# , how many teachers are there?", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown", + "birthplace", + "origin" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ] + }, + "linking_list": [ + [ + "hometown", + "teacher.hometown" + ], + [ + "hometown", + "teacher.birthplace" + ], + [ + "hometown", + "teacher.origin" + ] + ], + "linking_list_idx": [ + [ + 0, + "teacher.hometown" + ], + [ + 0, + "teacher.birthplace" + ], + [ + 0, + "teacher.origin" + ] + ], + "linking_list_col": [ + [ + "teacher.birthplace", + "teacher.origin" + ], + [ + "teacher.hometown", + "teacher.origin" + ], + [ + "teacher.birthplace", + "teacher.hometown" + ] + ] + }, + { + "question": "list the most common #hometown of teachers# .", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown", + "birthplace", + "origin" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ] + }, + "linking_list": [ + [ + "hometown of teachers", + "teacher.hometown" + ], + [ + "hometown of teachers", + "teacher.birthplace" + ], + [ + "hometown of teachers", + "teacher.origin" + ] + ], + "linking_list_idx": [ + [ + 0, + "teacher.hometown" + ], + [ + 0, + "teacher.birthplace" + ], + [ + 0, + "teacher.origin" + ] + ], + "linking_list_col": [ + [ + "teacher.birthplace", + "teacher.origin" + ], + [ + "teacher.hometown", + "teacher.origin" + ], + [ + "teacher.birthplace", + "teacher.hometown" + ] + ] + }, + { + "question": "show the #hometowns# shared by at least two teachers.", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown", + "birthplace", + "origin" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ] + }, + "linking_list": [ + [ + "hometowns", + "teacher.hometown" + ], + [ + "hometowns", + "teacher.birthplace" + ], + [ + "hometowns", + "teacher.origin" + ] + ], + "linking_list_idx": [ + [ + 0, + "teacher.hometown" + ], + [ + 0, + "teacher.birthplace" + ], + [ + 0, + "teacher.origin" + ] + ], + "linking_list_col": [ + [ + "teacher.birthplace", + "teacher.origin" + ], + [ + "teacher.hometown", + "teacher.origin" + ], + [ + "teacher.birthplace", + "teacher.hometown" + ] + ] + }, + { + "question": "what are the #towns# from which at least two teachers come from?", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown", + "birthplace", + "origin" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ] + }, + "linking_list": [ + [ + "towns", + "teacher.hometown" + ], + [ + "towns", + "teacher.birthplace" + ], + [ + "towns", + "teacher.origin" + ] + ], + "linking_list_idx": [ + [ + 0, + "teacher.hometown" + ], + [ + 0, + "teacher.birthplace" + ], + [ + 0, + "teacher.origin" + ] + ], + "linking_list_col": [ + [ + "teacher.birthplace", + "teacher.origin" + ], + [ + "teacher.hometown", + "teacher.origin" + ], + [ + "teacher.birthplace", + "teacher.hometown" + ] + ] + }, + { + "question": "show #names of teachers# and the #courses# they are arranged to teach.", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course", + "topic", + "subject" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ] + }, + "linking_list": [ + [ + "names of teachers", + "teacher.name" + ], + [ + "courses", + "course.course" + ], + [ + "courses", + "course.topic" + ], + [ + "courses", + "course.subject" + ] + ], + "linking_list_idx": [ + [ + 0, + "teacher.name" + ], + [ + 1, + "course.course" + ], + [ + 1, + "course.topic" + ], + [ + 1, + "course.subject" + ] + ], + "linking_list_col": [ + [ + "course.topic", + "course.subject" + ], + [ + "course.course", + "course.subject" + ], + [ + "course.topic", + "course.course" + ] + ] + }, + { + "question": "what is the #name of each teacher# and what #course# they teach?", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course", + "topic", + "subject" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ] + }, + "linking_list": [ + [ + "name of each teacher", + "teacher.name" + ], + [ + "course", + "course.course" + ], + [ + "course", + "course.topic" + ], + [ + "course", + "course.subject" + ] + ], + "linking_list_idx": [ + [ + 0, + "teacher.name" + ], + [ + 1, + "course.course" + ], + [ + 1, + "course.topic" + ], + [ + 1, + "course.subject" + ] + ], + "linking_list_col": [ + [ + "course.topic", + "course.subject" + ], + [ + "course.course", + "course.subject" + ], + [ + "course.topic", + "course.course" + ] + ] + }, + { + "question": "show names of teachers and the #courses# they are arranged to teach in ascending alphabetical order of the teacher's name.", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course", + "topic", + "subject" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ] + }, + "linking_list": [ + [ + "courses", + "course.course" + ], + [ + "courses", + "course.topic" + ], + [ + "courses", + "course.subject" + ] + ], + "linking_list_idx": [ + [ + 0, + "course.course" + ], + [ + 0, + "course.topic" + ], + [ + 0, + "course.subject" + ] + ], + "linking_list_col": [ + [ + "course.topic", + "course.subject" + ], + [ + "course.course", + "course.subject" + ], + [ + "course.topic", + "course.course" + ] + ] + }, + { + "question": "what are the names of the teachers and the #courses# they teach in ascending alphabetical order by the name of the teacher?", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course", + "topic", + "subject" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ] + }, + "linking_list": [ + [ + "courses", + "course.course" + ], + [ + "courses", + "course.topic" + ], + [ + "courses", + "course.subject" + ] + ], + "linking_list_idx": [ + [ + 0, + "course.course" + ], + [ + 0, + "course.topic" + ], + [ + 0, + "course.subject" + ] + ], + "linking_list_col": [ + [ + "course.topic", + "course.subject" + ], + [ + "course.course", + "course.subject" + ], + [ + "course.topic", + "course.course" + ] + ] + }, + { + "question": "what are the #names# of the people who teach math courses?", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown", + "full_name", + "title" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ] + }, + "linking_list": [ + [ + "names", + "teacher.name" + ], + [ + "names", + "teacher.full_name" + ], + [ + "names", + "teacher.title" + ] + ], + "linking_list_idx": [ + [ + 0, + "teacher.name" + ], + [ + 0, + "teacher.full_name" + ], + [ + 0, + "teacher.title" + ] + ], + "linking_list_col": [ + [ + "teacher.full_name", + "teacher.title" + ], + [ + "teacher.name", + "teacher.title" + ], + [ + "teacher.full_name", + "teacher.name" + ] + ] + }, + { + "question": "what are the #names of the teachers# and how many #courses# do they teach?", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown", + "full_name", + "title" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ] + }, + "linking_list": [ + [ + "names of the teachers", + "teacher.name" + ], + [ + "names of the teachers", + "teacher.full_name" + ], + [ + "names of the teachers", + "teacher.title" + ], + [ + "courses", + "course_arrange.course_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "teacher.name" + ], + [ + 0, + "teacher.full_name" + ], + [ + 0, + "teacher.title" + ], + [ + 1, + "course_arrange.course_id" + ] + ], + "linking_list_col": [ + [ + "teacher.full_name", + "teacher.title" + ], + [ + "teacher.name", + "teacher.title" + ], + [ + "teacher.full_name", + "teacher.name" + ] + ] + }, + { + "question": "show #names of teachers# that teach at least two courses.", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown", + "full_name", + "title" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ] + }, + "linking_list": [ + [ + "names of teachers", + "teacher.name" + ], + [ + "names of teachers", + "teacher.full_name" + ], + [ + "names of teachers", + "teacher.title" + ] + ], + "linking_list_idx": [ + [ + 0, + "teacher.name" + ], + [ + 0, + "teacher.full_name" + ], + [ + 0, + "teacher.title" + ] + ], + "linking_list_col": [ + [ + "teacher.full_name", + "teacher.title" + ], + [ + "teacher.name", + "teacher.title" + ], + [ + "teacher.full_name", + "teacher.name" + ] + ] + }, + { + "question": "what are the #names of the teachers# who teach at least two courses?", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown", + "full_name", + "title" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ] + }, + "linking_list": [ + [ + "names of the teachers", + "teacher.name" + ], + [ + "names of the teachers", + "teacher.full_name" + ], + [ + "names of the teachers", + "teacher.title" + ] + ], + "linking_list_idx": [ + [ + 0, + "teacher.name" + ], + [ + 0, + "teacher.full_name" + ], + [ + 0, + "teacher.title" + ] + ], + "linking_list_col": [ + [ + "teacher.full_name", + "teacher.title" + ], + [ + "teacher.name", + "teacher.title" + ], + [ + "teacher.full_name", + "teacher.name" + ] + ] + }, + { + "question": "list the #names of teachers# who have not been arranged to teach courses.", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown", + "full_name", + "title" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ] + }, + "linking_list": [ + [ + "names of teachers", + "teacher.name" + ], + [ + "names of teachers", + "teacher.full_name" + ], + [ + "names of teachers", + "teacher.title" + ] + ], + "linking_list_idx": [ + [ + 0, + "teacher.name" + ], + [ + 0, + "teacher.full_name" + ], + [ + 0, + "teacher.title" + ] + ], + "linking_list_col": [ + [ + "teacher.full_name", + "teacher.title" + ], + [ + "teacher.name", + "teacher.title" + ], + [ + "teacher.full_name", + "teacher.name" + ] + ] + }, + { + "question": "what are the #names of the teachers# whose courses have not been arranged?", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown", + "full_name", + "title" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ] + }, + "linking_list": [ + [ + "names of the teachers", + "teacher.name" + ], + [ + "names of the teachers", + "teacher.full_name" + ], + [ + "names of the teachers", + "teacher.title" + ] + ], + "linking_list_idx": [ + [ + 0, + "teacher.name" + ], + [ + 0, + "teacher.full_name" + ], + [ + 0, + "teacher.title" + ] + ], + "linking_list_col": [ + [ + "teacher.full_name", + "teacher.title" + ], + [ + "teacher.name", + "teacher.title" + ], + [ + "teacher.full_name", + "teacher.name" + ] + ] + }, + { + "question": "find the #names of the visitors# whose #membership level# is higher than 4, and order the results by the level from high to low.", + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age", + "visitor_name", + "full_name" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ] + }, + "linking_list": [ + [ + "names of the visitors", + "visitor.name" + ], + [ + "names of the visitors", + "visitor.visitor_name" + ], + [ + "names of the visitors", + "visitor.full_name" + ], + [ + "membership level", + "visitor.level_of_membership" + ] + ], + "linking_list_idx": [ + [ + 0, + "visitor.name" + ], + [ + 0, + "visitor.visitor_name" + ], + [ + 0, + "visitor.full_name" + ], + [ + 1, + "visitor.level_of_membership" + ] + ], + "linking_list_col": [ + [ + "visitor.visitor_name", + "visitor.full_name" + ], + [ + "visitor.name", + "visitor.full_name" + ], + [ + "visitor.visitor_name", + "visitor.name" + ] + ] + }, + { + "question": "what is the #average age of the visitors# whose #membership level# is not higher than 4?", + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age", + "visitor_age", + "years_old" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ] + }, + "linking_list": [ + [ + "average age of the visitors", + "visitor.age" + ], + [ + "average age of the visitors", + "visitor.visitor_age" + ], + [ + "average age of the visitors", + "visitor.years_old" + ], + [ + "membership level", + "visitor.level_of_membership" + ] + ], + "linking_list_idx": [ + [ + 0, + "visitor.age" + ], + [ + 0, + "visitor.visitor_age" + ], + [ + 0, + "visitor.years_old" + ], + [ + 1, + "visitor.level_of_membership" + ] + ], + "linking_list_col": [ + [ + "visitor.visitor_age", + "visitor.years_old" + ], + [ + "visitor.age", + "visitor.years_old" + ], + [ + "visitor.visitor_age", + "visitor.age" + ] + ] + }, + { + "question": "find the #name# and #membership level# of the visitors whose membership level is higher than 4, and sort by their #age# from old to young.", + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age", + "membership_level", + "subscription_level" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ] + }, + "linking_list": [ + [ + "name", + "visitor.name" + ], + [ + "membership level", + "visitor.level_of_membership" + ], + [ + "membership level", + "visitor.membership_level" + ], + [ + "membership level", + "visitor.subscription_level" + ], + [ + "age", + "visitor.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "visitor.name" + ], + [ + 1, + "visitor.level_of_membership" + ], + [ + 1, + "visitor.membership_level" + ], + [ + 1, + "visitor.subscription_level" + ], + [ + 2, + "visitor.age" + ] + ], + "linking_list_col": [ + [ + "visitor.membership_level", + "visitor.subscription_level" + ], + [ + "visitor.level_of_membership", + "visitor.subscription_level" + ], + [ + "visitor.membership_level", + "visitor.level_of_membership" + ] + ] + }, + { + "question": "find the #id# and #name of the museum# that has the most staff members?", + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year", + "title", + "designation" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ] + }, + "linking_list": [ + [ + "id", + "museum.museum_id" + ], + [ + "name of the museum", + "museum.name" + ], + [ + "name of the museum", + "museum.title" + ], + [ + "name of the museum", + "museum.designation" + ] + ], + "linking_list_idx": [ + [ + 0, + "museum.museum_id" + ], + [ + 1, + "museum.name" + ], + [ + 1, + "museum.title" + ], + [ + 1, + "museum.designation" + ] + ], + "linking_list_col": [ + [ + "museum.title", + "museum.designation" + ], + [ + "museum.name", + "museum.designation" + ], + [ + "museum.title", + "museum.name" + ] + ] + }, + { + "question": "find the #average number of staff# working for the museums that were #open before 2009# .", + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year", + "employee_count", + "staff_size" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ] + }, + "linking_list": [ + [ + "average number of staff", + "museum.num_of_staff" + ], + [ + "average number of staff", + "museum.employee_count" + ], + [ + "average number of staff", + "museum.staff_size" + ], + [ + "open before 2009", + "museum.open_year" + ] + ], + "linking_list_idx": [ + [ + 0, + "museum.num_of_staff" + ], + [ + 0, + "museum.employee_count" + ], + [ + 0, + "museum.staff_size" + ], + [ + 1, + "museum.open_year" + ] + ], + "linking_list_col": [ + [ + "museum.employee_count", + "museum.staff_size" + ], + [ + "museum.num_of_staff", + "museum.staff_size" + ], + [ + "museum.employee_count", + "museum.num_of_staff" + ] + ] + }, + { + "question": "find the #names# of museums which have #more staff# than the #minimum staff number of all museums opened after 2010# .", + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year", + "title", + "designation" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ] + }, + "linking_list": [ + [ + "names", + "museum.name" + ], + [ + "names", + "museum.title" + ], + [ + "names", + "museum.designation" + ], + [ + "more staff", + "museum.num_of_staff" + ], + [ + "minimum staff number of all museums opened after 2010", + "museum.num_of_staff" + ] + ], + "linking_list_idx": [ + [ + 0, + "museum.name" + ], + [ + 0, + "museum.title" + ], + [ + 0, + "museum.designation" + ], + [ + 1, + "museum.num_of_staff" + ], + [ + 2, + "museum.num_of_staff" + ] + ], + "linking_list_col": [ + [ + "museum.title", + "museum.designation" + ], + [ + "museum.name", + "museum.designation" + ], + [ + "museum.title", + "museum.name" + ] + ] + }, + { + "question": "find the #id# , #name# and #age for visitors# who visited some museums more than once.", + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age", + "visitor_name", + "full_name" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ] + }, + "linking_list": [ + [ + "id", + "visitor.id" + ], + [ + "name", + "visitor.name" + ], + [ + "name", + "visitor.visitor_name" + ], + [ + "name", + "visitor.full_name" + ], + [ + "age for visitors", + "visitor.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "visitor.id" + ], + [ + 1, + "visitor.name" + ], + [ + 1, + "visitor.visitor_name" + ], + [ + 1, + "visitor.full_name" + ], + [ + 2, + "visitor.age" + ] + ], + "linking_list_col": [ + [ + "visitor.visitor_name", + "visitor.full_name" + ], + [ + "visitor.name", + "visitor.full_name" + ], + [ + "visitor.visitor_name", + "visitor.name" + ] + ] + }, + { + "question": "what are the #id# , #name# and #membership level of visitors# who have #spent# the largest amount of money in total in all museum tickets?", + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age", + "visitor_name", + "full_name" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ] + }, + "linking_list": [ + [ + "id", + "visitor.id" + ], + [ + "name", + "visitor.name" + ], + [ + "name", + "visitor.visitor_name" + ], + [ + "name", + "visitor.full_name" + ], + [ + "membership level of visitors", + "visitor.level_of_membership" + ], + [ + "spent", + "visit.total_spent" + ] + ], + "linking_list_idx": [ + [ + 0, + "visitor.id" + ], + [ + 1, + "visitor.name" + ], + [ + 1, + "visitor.visitor_name" + ], + [ + 1, + "visitor.full_name" + ], + [ + 2, + "visitor.level_of_membership" + ], + [ + 3, + "visit.total_spent" + ] + ], + "linking_list_col": [ + [ + "visitor.visitor_name", + "visitor.full_name" + ], + [ + "visitor.name", + "visitor.full_name" + ], + [ + "visitor.visitor_name", + "visitor.name" + ] + ] + }, + { + "question": "what is the #name of the museum# that had no #visitor# yet?", + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year", + "title", + "designation" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ] + }, + "linking_list": [ + [ + "name of the museum", + "museum.name" + ], + [ + "name of the museum", + "museum.title" + ], + [ + "name of the museum", + "museum.designation" + ], + [ + "visitor", + "visit.visitor_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "museum.name" + ], + [ + 0, + "museum.title" + ], + [ + 0, + "museum.designation" + ], + [ + 1, + "visit.visitor_id" + ] + ], + "linking_list_col": [ + [ + "museum.title", + "museum.designation" + ], + [ + "museum.name", + "museum.designation" + ], + [ + "museum.title", + "museum.name" + ] + ] + }, + { + "question": "find the #name# and #age of the visitor# who bought the most #tickets# at once.", + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age", + "visitor_age", + "years_old" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ] + }, + "linking_list": [ + [ + "name", + "visitor.name" + ], + [ + "age of the visitor", + "visitor.age" + ], + [ + "age of the visitor", + "visitor.visitor_age" + ], + [ + "age of the visitor", + "visitor.years_old" + ], + [ + "tickets", + "visit.num_of_ticket" + ] + ], + "linking_list_idx": [ + [ + 0, + "visitor.name" + ], + [ + 1, + "visitor.age" + ], + [ + 1, + "visitor.visitor_age" + ], + [ + 1, + "visitor.years_old" + ], + [ + 2, + "visit.num_of_ticket" + ] + ], + "linking_list_col": [ + [ + "visitor.visitor_age", + "visitor.years_old" + ], + [ + "visitor.age", + "visitor.years_old" + ], + [ + "visitor.visitor_age", + "visitor.age" + ] + ] + }, + { + "question": "what are the #average and maximum number of tickets# bought in all visits?", + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent", + "ticket_count", + "admission_count" + ] + }, + "linking_list": [ + [ + "average and maximum number of tickets", + "visit.num_of_ticket" + ], + [ + "average and maximum number of tickets", + "visit.ticket_count" + ], + [ + "average and maximum number of tickets", + "visit.admission_count" + ] + ], + "linking_list_idx": [ + [ + 0, + "visit.num_of_ticket" + ], + [ + 0, + "visit.ticket_count" + ], + [ + 0, + "visit.admission_count" + ] + ], + "linking_list_col": [ + [ + "visit.ticket_count", + "visit.admission_count" + ], + [ + "visit.num_of_ticket", + "visit.admission_count" + ], + [ + "visit.ticket_count", + "visit.num_of_ticket" + ] + ] + }, + { + "question": "what is the #total ticket expense of the visitors# whose #membership level# is 1?", + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent", + "expenditure_total", + "total_paid" + ] + }, + "linking_list": [ + [ + "total ticket expense of the visitors", + "visit.total_spent" + ], + [ + "total ticket expense of the visitors", + "visit.expenditure_total" + ], + [ + "total ticket expense of the visitors", + "visit.total_paid" + ], + [ + "membership level", + "visitor.level_of_membership" + ] + ], + "linking_list_idx": [ + [ + 0, + "visit.total_spent" + ], + [ + 0, + "visit.expenditure_total" + ], + [ + 0, + "visit.total_paid" + ], + [ + 1, + "visitor.level_of_membership" + ] + ], + "linking_list_col": [ + [ + "visit.expenditure_total", + "visit.total_paid" + ], + [ + "visit.total_spent", + "visit.total_paid" + ], + [ + "visit.expenditure_total", + "visit.total_spent" + ] + ] + }, + { + "question": "what is the #name of the visitor# who visited both a #museum opened before 2009# and a museum opened after 2011?", + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age", + "visitor_name", + "full_name" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ] + }, + "linking_list": [ + [ + "name of the visitor", + "visitor.name" + ], + [ + "name of the visitor", + "visitor.visitor_name" + ], + [ + "name of the visitor", + "visitor.full_name" + ], + [ + "museum opened before 2009", + "museum.open_year" + ] + ], + "linking_list_idx": [ + [ + 0, + "visitor.name" + ], + [ + 0, + "visitor.visitor_name" + ], + [ + 0, + "visitor.full_name" + ], + [ + 1, + "museum.open_year" + ] + ], + "linking_list_col": [ + [ + "visitor.visitor_name", + "visitor.full_name" + ], + [ + "visitor.name", + "visitor.full_name" + ], + [ + "visitor.visitor_name", + "visitor.name" + ] + ] + }, + { + "question": "list the #first name# and #birth date of all players# from the country with code usa.", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code", + "dob", + "date_of_birth" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "first name", + "players.first_name" + ], + [ + "birth date of all players", + "players.birth_date" + ], + [ + "birth date of all players", + "players.dob" + ], + [ + "birth date of all players", + "players.date_of_birth" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.first_name" + ], + [ + 1, + "players.birth_date" + ], + [ + 1, + "players.dob" + ], + [ + 1, + "players.date_of_birth" + ] + ], + "linking_list_col": [ + [ + "players.dob", + "players.date_of_birth" + ], + [ + "players.birth_date", + "players.date_of_birth" + ], + [ + "players.dob", + "players.birth_date" + ] + ] + }, + { + "question": "what are the #first names# and #birth dates of players# from the usa?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code", + "dob", + "date_of_birth" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "first names", + "players.first_name" + ], + [ + "birth dates of players", + "players.birth_date" + ], + [ + "birth dates of players", + "players.dob" + ], + [ + "birth dates of players", + "players.date_of_birth" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.first_name" + ], + [ + 1, + "players.birth_date" + ], + [ + 1, + "players.dob" + ], + [ + 1, + "players.date_of_birth" + ] + ], + "linking_list_col": [ + [ + "players.dob", + "players.date_of_birth" + ], + [ + "players.birth_date", + "players.date_of_birth" + ], + [ + "players.dob", + "players.birth_date" + ] + ] + }, + { + "question": "find the #average age of losers# and winners of all matches.", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year", + "defeated_player_age", + "beaten_player_age" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "average age of losers", + "matches.loser_age" + ], + [ + "average age of losers", + "matches.defeated_player_age" + ], + [ + "average age of losers", + "matches.beaten_player_age" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.loser_age" + ], + [ + 0, + "matches.defeated_player_age" + ], + [ + 0, + "matches.beaten_player_age" + ] + ], + "linking_list_col": [ + [ + "matches.defeated_player_age", + "matches.beaten_player_age" + ], + [ + "matches.loser_age", + "matches.beaten_player_age" + ], + [ + "matches.defeated_player_age", + "matches.loser_age" + ] + ] + }, + { + "question": "what are the #average ages of losers# and winners across matches?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year", + "defeated_player_age", + "beaten_player_age" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "average ages of losers", + "matches.loser_age" + ], + [ + "average ages of losers", + "matches.defeated_player_age" + ], + [ + "average ages of losers", + "matches.beaten_player_age" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.loser_age" + ], + [ + 0, + "matches.defeated_player_age" + ], + [ + 0, + "matches.beaten_player_age" + ] + ], + "linking_list_col": [ + [ + "matches.defeated_player_age", + "matches.beaten_player_age" + ], + [ + "matches.loser_age", + "matches.beaten_player_age" + ], + [ + "matches.defeated_player_age", + "matches.loser_age" + ] + ] + }, + { + "question": "find the #average rank of winners# in all matches.", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year", + "winning_player_ranking", + "victorious_player_ranking" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "average rank of winners", + "matches.winner_rank" + ], + [ + "average rank of winners", + "matches.winning_player_ranking" + ], + [ + "average rank of winners", + "matches.victorious_player_ranking" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.winner_rank" + ], + [ + 0, + "matches.winning_player_ranking" + ], + [ + 0, + "matches.victorious_player_ranking" + ] + ], + "linking_list_col": [ + [ + "matches.winning_player_ranking", + "matches.victorious_player_ranking" + ], + [ + "matches.winner_rank", + "matches.victorious_player_ranking" + ], + [ + "matches.winning_player_ranking", + "matches.winner_rank" + ] + ] + }, + { + "question": "what is the #average rank for winners# in all matches?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year", + "winning_player_ranking", + "victorious_player_ranking" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "average rank for winners", + "matches.winner_rank" + ], + [ + "average rank for winners", + "matches.winning_player_ranking" + ], + [ + "average rank for winners", + "matches.victorious_player_ranking" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.winner_rank" + ], + [ + 0, + "matches.winning_player_ranking" + ], + [ + 0, + "matches.victorious_player_ranking" + ] + ], + "linking_list_col": [ + [ + "matches.winning_player_ranking", + "matches.victorious_player_ranking" + ], + [ + "matches.winner_rank", + "matches.victorious_player_ranking" + ], + [ + "matches.winning_player_ranking", + "matches.winner_rank" + ] + ] + }, + { + "question": "find the #highest rank of losers# in all matches.", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year", + "defeated_player_ranking", + "beaten_player_ranking" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "highest rank of losers", + "matches.loser_rank" + ], + [ + "highest rank of losers", + "matches.defeated_player_ranking" + ], + [ + "highest rank of losers", + "matches.beaten_player_ranking" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.loser_rank" + ], + [ + 0, + "matches.defeated_player_ranking" + ], + [ + 0, + "matches.beaten_player_ranking" + ] + ], + "linking_list_col": [ + [ + "matches.defeated_player_ranking", + "matches.beaten_player_ranking" + ], + [ + "matches.loser_rank", + "matches.beaten_player_ranking" + ], + [ + "matches.defeated_player_ranking", + "matches.loser_rank" + ] + ] + }, + { + "question": "what is the #best rank of losers# across all matches?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year", + "defeated_player_ranking", + "beaten_player_ranking" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "best rank of losers", + "matches.loser_rank" + ], + [ + "best rank of losers", + "matches.defeated_player_ranking" + ], + [ + "best rank of losers", + "matches.beaten_player_ranking" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.loser_rank" + ], + [ + 0, + "matches.defeated_player_ranking" + ], + [ + 0, + "matches.beaten_player_ranking" + ] + ], + "linking_list_col": [ + [ + "matches.defeated_player_ranking", + "matches.beaten_player_ranking" + ], + [ + "matches.loser_rank", + "matches.beaten_player_ranking" + ], + [ + "matches.defeated_player_ranking", + "matches.loser_rank" + ] + ] + }, + { + "question": "find the number of distinct #country codes of all players# .", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code", + "nationality_code", + "country_id" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "country codes of all players", + "players.country_code" + ], + [ + "country codes of all players", + "players.nationality_code" + ], + [ + "country codes of all players", + "players.country_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.country_code" + ], + [ + 0, + "players.nationality_code" + ], + [ + 0, + "players.country_id" + ] + ], + "linking_list_col": [ + [ + "players.nationality_code", + "players.country_id" + ], + [ + "players.country_code", + "players.country_id" + ], + [ + "players.nationality_code", + "players.country_code" + ] + ] + }, + { + "question": "how many distinct #countries# do players come from?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code", + "nationality_code", + "country_id" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "countries", + "players.country_code" + ], + [ + "countries", + "players.nationality_code" + ], + [ + "countries", + "players.country_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.country_code" + ], + [ + 0, + "players.nationality_code" + ], + [ + 0, + "players.country_id" + ] + ], + "linking_list_col": [ + [ + "players.nationality_code", + "players.country_id" + ], + [ + "players.country_code", + "players.country_id" + ], + [ + "players.nationality_code", + "players.country_code" + ] + ] + }, + { + "question": "find the number of distinct #name of losers# .", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year", + "defeated_player_name", + "beaten_player_name" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "name of losers", + "matches.loser_name" + ], + [ + "name of losers", + "matches.defeated_player_name" + ], + [ + "name of losers", + "matches.beaten_player_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.loser_name" + ], + [ + 0, + "matches.defeated_player_name" + ], + [ + 0, + "matches.beaten_player_name" + ] + ], + "linking_list_col": [ + [ + "matches.defeated_player_name", + "matches.beaten_player_name" + ], + [ + "matches.loser_name", + "matches.beaten_player_name" + ], + [ + "matches.defeated_player_name", + "matches.loser_name" + ] + ] + }, + { + "question": "how many different #loser names# are there?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year", + "defeated_player_name", + "beaten_player_name" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "loser names", + "matches.loser_name" + ], + [ + "loser names", + "matches.defeated_player_name" + ], + [ + "loser names", + "matches.beaten_player_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.loser_name" + ], + [ + 0, + "matches.defeated_player_name" + ], + [ + 0, + "matches.beaten_player_name" + ] + ], + "linking_list_col": [ + [ + "matches.defeated_player_name", + "matches.beaten_player_name" + ], + [ + "matches.loser_name", + "matches.beaten_player_name" + ], + [ + "matches.defeated_player_name", + "matches.loser_name" + ] + ] + }, + { + "question": "find the #name of tourney# that has more than 10 matches.", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year", + "event_name", + "tournament_name" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "name of tourney", + "matches.tourney_name" + ], + [ + "name of tourney", + "matches.event_name" + ], + [ + "name of tourney", + "matches.tournament_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.tourney_name" + ], + [ + 0, + "matches.event_name" + ], + [ + 0, + "matches.tournament_name" + ] + ], + "linking_list_col": [ + [ + "matches.event_name", + "matches.tournament_name" + ], + [ + "matches.tourney_name", + "matches.tournament_name" + ], + [ + "matches.event_name", + "matches.tourney_name" + ] + ] + }, + { + "question": "what are the #names of tournaments# that have more than 10 matches?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year", + "event_name", + "tournament_name" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "names of tournaments", + "matches.tourney_name" + ], + [ + "names of tournaments", + "matches.event_name" + ], + [ + "names of tournaments", + "matches.tournament_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.tourney_name" + ], + [ + 0, + "matches.event_name" + ], + [ + 0, + "matches.tournament_name" + ] + ], + "linking_list_col": [ + [ + "matches.event_name", + "matches.tournament_name" + ], + [ + "matches.tourney_name", + "matches.tournament_name" + ], + [ + "matches.event_name", + "matches.tourney_name" + ] + ] + }, + { + "question": "list the #names of all winners# who played in both 2013 and 2016.", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year", + "winning_player_name", + "victorious_player_name" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "names of all winners", + "matches.winner_name" + ], + [ + "names of all winners", + "matches.winning_player_name" + ], + [ + "names of all winners", + "matches.victorious_player_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.winner_name" + ], + [ + 0, + "matches.winning_player_name" + ], + [ + 0, + "matches.victorious_player_name" + ] + ], + "linking_list_col": [ + [ + "matches.winning_player_name", + "matches.victorious_player_name" + ], + [ + "matches.winner_name", + "matches.victorious_player_name" + ], + [ + "matches.winning_player_name", + "matches.winner_name" + ] + ] + }, + { + "question": "what are the #names of players# who won in both 2013 and 2016?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year", + "winning_player_name", + "victorious_player_name" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "names of players", + "matches.winner_name" + ], + [ + "names of players", + "matches.winning_player_name" + ], + [ + "names of players", + "matches.victorious_player_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.winner_name" + ], + [ + 0, + "matches.winning_player_name" + ], + [ + 0, + "matches.victorious_player_name" + ] + ], + "linking_list_col": [ + [ + "matches.winning_player_name", + "matches.victorious_player_name" + ], + [ + "matches.winner_name", + "matches.victorious_player_name" + ], + [ + "matches.winning_player_name", + "matches.winner_name" + ] + ] + }, + { + "question": "what are the #country code# and #first name of the players# who #won# in both #tourney wta championships# and australian open?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code", + "nationality_code", + "country_id" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "country code", + "players.country_code" + ], + [ + "country code", + "players.nationality_code" + ], + [ + "country code", + "players.country_id" + ], + [ + "first name of the players", + "players.first_name" + ], + [ + "won", + "matches.winner_id" + ], + [ + "tourney WTA Championships", + "matches.tourney_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.country_code" + ], + [ + 0, + "players.nationality_code" + ], + [ + 0, + "players.country_id" + ], + [ + 1, + "players.first_name" + ], + [ + 2, + "matches.winner_id" + ], + [ + 3, + "matches.tourney_name" + ] + ], + "linking_list_col": [ + [ + "players.nationality_code", + "players.country_id" + ], + [ + "players.country_code", + "players.country_id" + ], + [ + "players.nationality_code", + "players.country_code" + ] + ] + }, + { + "question": "what are the #first names# and #country codes for players# who #won# both the #wta championships# and the australian open?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code", + "nationality_code", + "country_id" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "first names", + "players.first_name" + ], + [ + "country codes for players", + "players.country_code" + ], + [ + "country codes for players", + "players.nationality_code" + ], + [ + "country codes for players", + "players.country_id" + ], + [ + "won", + "matches.winner_id" + ], + [ + "WTA Championships", + "matches.tourney_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.first_name" + ], + [ + 1, + "players.country_code" + ], + [ + 1, + "players.nationality_code" + ], + [ + 1, + "players.country_id" + ], + [ + 2, + "matches.winner_id" + ], + [ + 3, + "matches.tourney_name" + ] + ], + "linking_list_col": [ + [ + "players.nationality_code", + "players.country_id" + ], + [ + "players.country_code", + "players.country_id" + ], + [ + "players.nationality_code", + "players.country_code" + ] + ] + }, + { + "question": "find the #first name# and #country code of the oldest player# .", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code", + "nationality_code", + "country_id" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "first name", + "players.first_name" + ], + [ + "country code of the oldest player", + "players.country_code" + ], + [ + "country code of the oldest player", + "players.nationality_code" + ], + [ + "country code of the oldest player", + "players.country_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.first_name" + ], + [ + 1, + "players.country_code" + ], + [ + 1, + "players.nationality_code" + ], + [ + 1, + "players.country_id" + ] + ], + "linking_list_col": [ + [ + "players.nationality_code", + "players.country_id" + ], + [ + "players.country_code", + "players.country_id" + ], + [ + "players.nationality_code", + "players.country_code" + ] + ] + }, + { + "question": "find the #first name# and #country code of the player# who did the most number of #tours# .", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code", + "nationality_code", + "country_id" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "first name", + "players.first_name" + ], + [ + "country code of the player", + "players.country_code" + ], + [ + "country code of the player", + "players.nationality_code" + ], + [ + "country code of the player", + "players.country_id" + ], + [ + "tours", + "rankings.tours" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.first_name" + ], + [ + 1, + "players.country_code" + ], + [ + 1, + "players.nationality_code" + ], + [ + 1, + "players.country_id" + ], + [ + 2, + "rankings.tours" + ] + ], + "linking_list_col": [ + [ + "players.nationality_code", + "players.country_id" + ], + [ + "players.country_code", + "players.country_id" + ], + [ + "players.nationality_code", + "players.country_code" + ] + ] + }, + { + "question": "what is the #first name# and #country code of the player# with the most tours?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code", + "nationality_code", + "country_id" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "first name", + "players.first_name" + ], + [ + "country code of the player", + "players.country_code" + ], + [ + "country code of the player", + "players.nationality_code" + ], + [ + "country code of the player", + "players.country_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.first_name" + ], + [ + 1, + "players.country_code" + ], + [ + 1, + "players.nationality_code" + ], + [ + 1, + "players.country_id" + ] + ], + "linking_list_col": [ + [ + "players.nationality_code", + "players.country_id" + ], + [ + "players.country_code", + "players.country_id" + ], + [ + "players.nationality_code", + "players.country_code" + ] + ] + }, + { + "question": "find the #year# that has the most number of matches.", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year", + "match_year", + "event_year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "year", + "matches.year" + ], + [ + "year", + "matches.match_year" + ], + [ + "year", + "matches.event_year" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.year" + ], + [ + 0, + "matches.match_year" + ], + [ + 0, + "matches.event_year" + ] + ], + "linking_list_col": [ + [ + "matches.match_year", + "matches.event_year" + ], + [ + "matches.year", + "matches.event_year" + ], + [ + "matches.match_year", + "matches.year" + ] + ] + }, + { + "question": "which #year# had the most matches?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year", + "match_year", + "event_year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "year", + "matches.year" + ], + [ + "year", + "matches.match_year" + ], + [ + "year", + "matches.event_year" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.year" + ], + [ + 0, + "matches.match_year" + ], + [ + 0, + "matches.event_year" + ] + ], + "linking_list_col": [ + [ + "matches.match_year", + "matches.event_year" + ], + [ + "matches.year", + "matches.event_year" + ], + [ + "matches.match_year", + "matches.year" + ] + ] + }, + { + "question": "find the #name# and #rank points of the winner# who won the most times.", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year", + "winning_player_name", + "victorious_player_name" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "name", + "matches.winner_name" + ], + [ + "name", + "matches.winning_player_name" + ], + [ + "name", + "matches.victorious_player_name" + ], + [ + "rank points of the winner", + "matches.winner_rank_points" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.winner_name" + ], + [ + 0, + "matches.winning_player_name" + ], + [ + 0, + "matches.victorious_player_name" + ], + [ + 1, + "matches.winner_rank_points" + ] + ], + "linking_list_col": [ + [ + "matches.winning_player_name", + "matches.victorious_player_name" + ], + [ + "matches.winner_name", + "matches.victorious_player_name" + ], + [ + "matches.winning_player_name", + "matches.winner_name" + ] + ] + }, + { + "question": "what is the #name of the winner# who has won the most matches, and how many #rank points# does this player have?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year", + "winning_player_name", + "victorious_player_name" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "name of the winner", + "matches.winner_name" + ], + [ + "name of the winner", + "matches.winning_player_name" + ], + [ + "name of the winner", + "matches.victorious_player_name" + ], + [ + "rank points", + "matches.winner_rank_points" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.winner_name" + ], + [ + 0, + "matches.winning_player_name" + ], + [ + 0, + "matches.victorious_player_name" + ], + [ + 1, + "matches.winner_rank_points" + ] + ], + "linking_list_col": [ + [ + "matches.winning_player_name", + "matches.victorious_player_name" + ], + [ + "matches.winner_name", + "matches.victorious_player_name" + ], + [ + "matches.winning_player_name", + "matches.winner_name" + ] + ] + }, + { + "question": "find the #name of the winner# who has the #highest rank points# and participated in the #australian open tourney# .", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year", + "winning_player_name", + "victorious_player_name" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "name of the winner", + "matches.winner_name" + ], + [ + "name of the winner", + "matches.winning_player_name" + ], + [ + "name of the winner", + "matches.victorious_player_name" + ], + [ + "highest rank points", + "matches.winner_rank_points" + ], + [ + "Australian Open tourney", + "matches.tourney_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.winner_name" + ], + [ + 0, + "matches.winning_player_name" + ], + [ + 0, + "matches.victorious_player_name" + ], + [ + 1, + "matches.winner_rank_points" + ], + [ + 2, + "matches.tourney_name" + ] + ], + "linking_list_col": [ + [ + "matches.winning_player_name", + "matches.victorious_player_name" + ], + [ + "matches.winner_name", + "matches.victorious_player_name" + ], + [ + "matches.winning_player_name", + "matches.winner_name" + ] + ] + }, + { + "question": "what is the #name of the winner with the most rank points# who participated in the australian open tournament?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year", + "winning_player_name", + "victorious_player_name" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "name of the winner with the most rank points", + "matches.winner_name" + ], + [ + "name of the winner with the most rank points", + "matches.winning_player_name" + ], + [ + "name of the winner with the most rank points", + "matches.victorious_player_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.winner_name" + ], + [ + 0, + "matches.winning_player_name" + ], + [ + 0, + "matches.victorious_player_name" + ] + ], + "linking_list_col": [ + [ + "matches.winning_player_name", + "matches.victorious_player_name" + ], + [ + "matches.winner_name", + "matches.victorious_player_name" + ], + [ + "matches.winning_player_name", + "matches.winner_name" + ] + ] + }, + { + "question": "what are the #names of the winner# and #loser# who played in the longest match?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year", + "winning_player_name", + "victorious_player_name" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "names of the winner", + "matches.winner_name" + ], + [ + "names of the winner", + "matches.winning_player_name" + ], + [ + "names of the winner", + "matches.victorious_player_name" + ], + [ + "loser", + "matches.loser_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.winner_name" + ], + [ + 0, + "matches.winning_player_name" + ], + [ + 0, + "matches.victorious_player_name" + ], + [ + 1, + "matches.loser_name" + ] + ], + "linking_list_col": [ + [ + "matches.winning_player_name", + "matches.victorious_player_name" + ], + [ + "matches.winner_name", + "matches.victorious_player_name" + ], + [ + "matches.winning_player_name", + "matches.winner_name" + ] + ] + }, + { + "question": "find the #average ranking for each player# and their #first name# .", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code", + "given_name", + "forename" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "average ranking for each player", + "rankings.ranking" + ], + [ + "first name", + "players.first_name" + ], + [ + "first name", + "players.given_name" + ], + [ + "first name", + "players.forename" + ] + ], + "linking_list_idx": [ + [ + 0, + "rankings.ranking" + ], + [ + 1, + "players.first_name" + ], + [ + 1, + "players.given_name" + ], + [ + 1, + "players.forename" + ] + ], + "linking_list_col": [ + [ + "players.given_name", + "players.forename" + ], + [ + "players.first_name", + "players.forename" + ], + [ + "players.given_name", + "players.first_name" + ] + ] + }, + { + "question": "what are the #first names of all players# , and their average rankings?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code", + "given_name", + "forename" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "first names of all players", + "players.first_name" + ], + [ + "first names of all players", + "players.given_name" + ], + [ + "first names of all players", + "players.forename" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.first_name" + ], + [ + 0, + "players.given_name" + ], + [ + 0, + "players.forename" + ] + ], + "linking_list_col": [ + [ + "players.given_name", + "players.forename" + ], + [ + "players.first_name", + "players.forename" + ], + [ + "players.given_name", + "players.first_name" + ] + ] + }, + { + "question": "find the total #ranking points for each player# and their #first name# .", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code", + "given_name", + "forename" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "ranking points for each player", + "rankings.ranking_points" + ], + [ + "first name", + "players.first_name" + ], + [ + "first name", + "players.given_name" + ], + [ + "first name", + "players.forename" + ] + ], + "linking_list_idx": [ + [ + 0, + "rankings.ranking_points" + ], + [ + 1, + "players.first_name" + ], + [ + 1, + "players.given_name" + ], + [ + 1, + "players.forename" + ] + ], + "linking_list_col": [ + [ + "players.given_name", + "players.forename" + ], + [ + "players.first_name", + "players.forename" + ], + [ + "players.given_name", + "players.first_name" + ] + ] + }, + { + "question": "what are the #first names of all players# , and their total ranking points?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code", + "given_name", + "forename" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "first names of all players", + "players.first_name" + ], + [ + "first names of all players", + "players.given_name" + ], + [ + "first names of all players", + "players.forename" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.first_name" + ], + [ + 0, + "players.given_name" + ], + [ + 0, + "players.forename" + ] + ], + "linking_list_col": [ + [ + "players.given_name", + "players.forename" + ], + [ + "players.first_name", + "players.forename" + ], + [ + "players.given_name", + "players.first_name" + ] + ] + }, + { + "question": "find the #code of the country# where has the greatest number of players.", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code", + "nationality_code", + "country_id" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "code of the country", + "players.country_code" + ], + [ + "code of the country", + "players.nationality_code" + ], + [ + "code of the country", + "players.country_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.country_code" + ], + [ + 0, + "players.nationality_code" + ], + [ + 0, + "players.country_id" + ] + ], + "linking_list_col": [ + [ + "players.nationality_code", + "players.country_id" + ], + [ + "players.country_code", + "players.country_id" + ], + [ + "players.nationality_code", + "players.country_code" + ] + ] + }, + { + "question": "what is the #code of the country# with the most players?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code", + "nationality_code", + "country_id" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "code of the country", + "players.country_code" + ], + [ + "code of the country", + "players.nationality_code" + ], + [ + "code of the country", + "players.country_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.country_code" + ], + [ + 0, + "players.nationality_code" + ], + [ + 0, + "players.country_id" + ] + ], + "linking_list_col": [ + [ + "players.nationality_code", + "players.country_id" + ], + [ + "players.country_code", + "players.country_id" + ], + [ + "players.nationality_code", + "players.country_code" + ] + ] + }, + { + "question": "find the #codes of countries# that have more than 50 players.", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code", + "nationality_code", + "country_id" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "codes of countries", + "players.country_code" + ], + [ + "codes of countries", + "players.nationality_code" + ], + [ + "codes of countries", + "players.country_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.country_code" + ], + [ + 0, + "players.nationality_code" + ], + [ + 0, + "players.country_id" + ] + ], + "linking_list_col": [ + [ + "players.nationality_code", + "players.country_id" + ], + [ + "players.country_code", + "players.country_id" + ], + [ + "players.nationality_code", + "players.country_code" + ] + ] + }, + { + "question": "what are the #codes of countries# with more than 50 players?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code", + "nationality_code", + "country_id" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "codes of countries", + "players.country_code" + ], + [ + "codes of countries", + "players.nationality_code" + ], + [ + "codes of countries", + "players.country_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.country_code" + ], + [ + 0, + "players.nationality_code" + ], + [ + 0, + "players.country_id" + ] + ], + "linking_list_col": [ + [ + "players.nationality_code", + "players.country_id" + ], + [ + "players.country_code", + "players.country_id" + ], + [ + "players.nationality_code", + "players.country_code" + ] + ] + }, + { + "question": "find the #total number of tours for each ranking date# .", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours", + "tournaments", + "events" + ] + }, + "linking_list": [ + [ + "total number of tours for each ranking date", + "rankings.tours" + ], + [ + "total number of tours for each ranking date", + "rankings.tournaments" + ], + [ + "total number of tours for each ranking date", + "rankings.events" + ] + ], + "linking_list_idx": [ + [ + 0, + "rankings.tours" + ], + [ + 0, + "rankings.tournaments" + ], + [ + 0, + "rankings.events" + ] + ], + "linking_list_col": [ + [ + "rankings.tournaments", + "rankings.events" + ], + [ + "rankings.tours", + "rankings.events" + ], + [ + "rankings.tournaments", + "rankings.tours" + ] + ] + }, + { + "question": "how many #total tours# were there for each ranking date?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours", + "tournaments", + "events" + ] + }, + "linking_list": [ + [ + "total tours", + "rankings.tours" + ], + [ + "total tours", + "rankings.tournaments" + ], + [ + "total tours", + "rankings.events" + ] + ], + "linking_list_idx": [ + [ + 0, + "rankings.tours" + ], + [ + 0, + "rankings.tournaments" + ], + [ + 0, + "rankings.events" + ] + ], + "linking_list_col": [ + [ + "rankings.tournaments", + "rankings.events" + ], + [ + "rankings.tours", + "rankings.events" + ], + [ + "rankings.tournaments", + "rankings.tours" + ] + ] + }, + { + "question": "find the number of matches happened in each #year# .", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year", + "match_year", + "event_year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "year", + "matches.year" + ], + [ + "year", + "matches.match_year" + ], + [ + "year", + "matches.event_year" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.year" + ], + [ + 0, + "matches.match_year" + ], + [ + 0, + "matches.event_year" + ] + ], + "linking_list_col": [ + [ + "matches.match_year", + "matches.event_year" + ], + [ + "matches.year", + "matches.event_year" + ], + [ + "matches.match_year", + "matches.year" + ] + ] + }, + { + "question": "find the #name# and #rank# of the 3 youngest winners across all matches.", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year", + "winning_player_name", + "victorious_player_name" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "name", + "matches.winner_name" + ], + [ + "name", + "matches.winning_player_name" + ], + [ + "name", + "matches.victorious_player_name" + ], + [ + "rank", + "matches.winner_rank" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.winner_name" + ], + [ + 0, + "matches.winning_player_name" + ], + [ + 0, + "matches.victorious_player_name" + ], + [ + 1, + "matches.winner_rank" + ] + ], + "linking_list_col": [ + [ + "matches.winning_player_name", + "matches.victorious_player_name" + ], + [ + "matches.winner_name", + "matches.victorious_player_name" + ], + [ + "matches.winning_player_name", + "matches.winner_name" + ] + ] + }, + { + "question": "what are the #names# and #ranks# of the three #youngest winners# across all matches?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year", + "winning_player_name", + "victorious_player_name" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "names", + "matches.winner_name" + ], + [ + "names", + "matches.winning_player_name" + ], + [ + "names", + "matches.victorious_player_name" + ], + [ + "ranks", + "matches.winner_rank" + ], + [ + "youngest winners", + "matches.winner_age" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.winner_name" + ], + [ + 0, + "matches.winning_player_name" + ], + [ + 0, + "matches.victorious_player_name" + ], + [ + 1, + "matches.winner_rank" + ], + [ + 2, + "matches.winner_age" + ] + ], + "linking_list_col": [ + [ + "matches.winning_player_name", + "matches.victorious_player_name" + ], + [ + "matches.winner_name", + "matches.victorious_player_name" + ], + [ + "matches.winning_player_name", + "matches.winner_name" + ] + ] + }, + { + "question": "how many different #winners# both participated in the #wta championships# and were left handed?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year", + "winning_player_name", + "victorious_player_name" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "winners", + "matches.winner_name" + ], + [ + "winners", + "matches.winning_player_name" + ], + [ + "winners", + "matches.victorious_player_name" + ], + [ + "WTA Championships", + "matches.tourney_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.winner_name" + ], + [ + 0, + "matches.winning_player_name" + ], + [ + 0, + "matches.victorious_player_name" + ], + [ + 1, + "matches.tourney_name" + ] + ], + "linking_list_col": [ + [ + "matches.winning_player_name", + "matches.victorious_player_name" + ], + [ + "matches.winner_name", + "matches.victorious_player_name" + ], + [ + "matches.winning_player_name", + "matches.winner_name" + ] + ] + }, + { + "question": "find the #first name# , #country code# and #birth date of the winner# who has the highest #rank points in all matches# .", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code", + "dob", + "date_of_birth" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "first name", + "players.first_name" + ], + [ + "country code", + "players.country_code" + ], + [ + "birth date of the winner", + "players.birth_date" + ], + [ + "birth date of the winner", + "players.dob" + ], + [ + "birth date of the winner", + "players.date_of_birth" + ], + [ + "rank points in all matches", + "matches.winner_rank_points" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.first_name" + ], + [ + 1, + "players.country_code" + ], + [ + 2, + "players.birth_date" + ], + [ + 2, + "players.dob" + ], + [ + 2, + "players.date_of_birth" + ], + [ + 3, + "matches.winner_rank_points" + ] + ], + "linking_list_col": [ + [ + "players.dob", + "players.date_of_birth" + ], + [ + "players.birth_date", + "players.date_of_birth" + ], + [ + "players.dob", + "players.birth_date" + ] + ] + }, + { + "question": "what is the #first name# , #country code# , and #birth date of the player# with the most #winner rank points# across all matches?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code", + "dob", + "date_of_birth" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "first name", + "players.first_name" + ], + [ + "country code", + "players.country_code" + ], + [ + "birth date of the player", + "players.birth_date" + ], + [ + "birth date of the player", + "players.dob" + ], + [ + "birth date of the player", + "players.date_of_birth" + ], + [ + "winner rank points", + "matches.winner_rank_points" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.first_name" + ], + [ + 1, + "players.country_code" + ], + [ + 2, + "players.birth_date" + ], + [ + 2, + "players.dob" + ], + [ + 2, + "players.date_of_birth" + ], + [ + 3, + "matches.winner_rank_points" + ] + ], + "linking_list_col": [ + [ + "players.dob", + "players.date_of_birth" + ], + [ + "players.birth_date", + "players.date_of_birth" + ], + [ + "players.dob", + "players.birth_date" + ] + ] + }, + { + "question": "list the #name# and #tonnage# ordered by in descending alphaetical order for the names.", + "db_schema": { + "battle": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result" + ], + "ship": [ + "lost_in_battle", + "id", + "name", + "tonnage", + "ship_type", + "location", + "disposition_of_ship", + "ship_name", + "vessel_name" + ], + "death": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured" + ] + }, + "linking_list": [ + [ + "name", + "ship.name" + ], + [ + "name", + "ship.ship_name" + ], + [ + "name", + "ship.vessel_name" + ], + [ + "tonnage", + "ship.tonnage" + ] + ], + "linking_list_idx": [ + [ + 0, + "ship.name" + ], + [ + 0, + "ship.ship_name" + ], + [ + 0, + "ship.vessel_name" + ], + [ + 1, + "ship.tonnage" + ] + ], + "linking_list_col": [ + [ + "ship.ship_name", + "ship.vessel_name" + ], + [ + "ship.name", + "ship.vessel_name" + ], + [ + "ship.ship_name", + "ship.name" + ] + ] + }, + { + "question": "list the #name# , #date# and #result of each battle# .", + "db_schema": { + "battle": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result", + "battle_date", + "engagement_date" + ], + "ship": [ + "lost_in_battle", + "id", + "name", + "tonnage", + "ship_type", + "location", + "disposition_of_ship" + ], + "death": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured" + ] + }, + "linking_list": [ + [ + "name", + "battle.name" + ], + [ + "date", + "battle.date" + ], + [ + "date", + "battle.battle_date" + ], + [ + "date", + "battle.engagement_date" + ], + [ + "result of each battle", + "battle.result" + ] + ], + "linking_list_idx": [ + [ + 0, + "battle.name" + ], + [ + 1, + "battle.date" + ], + [ + 1, + "battle.battle_date" + ], + [ + 1, + "battle.engagement_date" + ], + [ + 2, + "battle.result" + ] + ], + "linking_list_col": [ + [ + "battle.battle_date", + "battle.engagement_date" + ], + [ + "battle.date", + "battle.engagement_date" + ], + [ + "battle.battle_date", + "battle.date" + ] + ] + }, + { + "question": "what is #maximum and minimum death toll# caused each time?", + "db_schema": { + "battle": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result" + ], + "ship": [ + "lost_in_battle", + "id", + "name", + "tonnage", + "ship_type", + "location", + "disposition_of_ship" + ], + "death": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured", + "deaths", + "fatalities" + ] + }, + "linking_list": [ + [ + "maximum and minimum death toll", + "death.killed" + ], + [ + "maximum and minimum death toll", + "death.deaths" + ], + [ + "maximum and minimum death toll", + "death.fatalities" + ] + ], + "linking_list_idx": [ + [ + 0, + "death.killed" + ], + [ + 0, + "death.deaths" + ], + [ + 0, + "death.fatalities" + ] + ], + "linking_list_col": [ + [ + "death.deaths", + "death.fatalities" + ], + [ + "death.killed", + "death.fatalities" + ], + [ + "death.deaths", + "death.killed" + ] + ] + }, + { + "question": "what is the #average number of injuries# caused each time?", + "db_schema": { + "battle": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result" + ], + "ship": [ + "lost_in_battle", + "id", + "name", + "tonnage", + "ship_type", + "location", + "disposition_of_ship" + ], + "death": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured", + "wounded", + "casualties" + ] + }, + "linking_list": [ + [ + "average number of injuries", + "death.injured" + ], + [ + "average number of injuries", + "death.wounded" + ], + [ + "average number of injuries", + "death.casualties" + ] + ], + "linking_list_idx": [ + [ + 0, + "death.injured" + ], + [ + 0, + "death.wounded" + ], + [ + 0, + "death.casualties" + ] + ], + "linking_list_col": [ + [ + "death.wounded", + "death.casualties" + ], + [ + "death.injured", + "death.casualties" + ], + [ + "death.wounded", + "death.injured" + ] + ] + }, + { + "question": "what are the #death# and #injury# situations caused by the #ship with tonnage# 't'?", + "db_schema": { + "battle": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result" + ], + "ship": [ + "lost_in_battle", + "id", + "name", + "tonnage", + "ship_type", + "location", + "disposition_of_ship" + ], + "death": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured", + "deaths", + "fatalities" + ] + }, + "linking_list": [ + [ + "death", + "death.killed" + ], + [ + "death", + "death.deaths" + ], + [ + "death", + "death.fatalities" + ], + [ + "injury", + "death.injured" + ], + [ + "ship with tonnage", + "ship.tonnage" + ] + ], + "linking_list_idx": [ + [ + 0, + "death.killed" + ], + [ + 0, + "death.deaths" + ], + [ + 0, + "death.fatalities" + ], + [ + 1, + "death.injured" + ], + [ + 2, + "ship.tonnage" + ] + ], + "linking_list_col": [ + [ + "death.deaths", + "death.fatalities" + ], + [ + "death.killed", + "death.fatalities" + ], + [ + "death.deaths", + "death.killed" + ] + ] + }, + { + "question": "what are the #name# and #results# of the battles when the #bulgarian commander# is not 'boril'", + "db_schema": { + "battle": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result", + "outcome", + "consequence" + ], + "ship": [ + "lost_in_battle", + "id", + "name", + "tonnage", + "ship_type", + "location", + "disposition_of_ship" + ], + "death": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured" + ] + }, + "linking_list": [ + [ + "name", + "battle.name" + ], + [ + "results", + "battle.result" + ], + [ + "results", + "battle.outcome" + ], + [ + "results", + "battle.consequence" + ], + [ + "bulgarian commander", + "battle.bulgarian_commander" + ] + ], + "linking_list_idx": [ + [ + 0, + "battle.name" + ], + [ + 1, + "battle.result" + ], + [ + 1, + "battle.outcome" + ], + [ + 1, + "battle.consequence" + ], + [ + 2, + "battle.bulgarian_commander" + ] + ], + "linking_list_col": [ + [ + "battle.outcome", + "battle.consequence" + ], + [ + "battle.result", + "battle.consequence" + ], + [ + "battle.outcome", + "battle.result" + ] + ] + }, + { + "question": "what are the different #ids# and #names of the battles that lost# any 'brig' type shipes?", + "db_schema": { + "battle": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result", + "title", + "designation" + ], + "ship": [ + "lost_in_battle", + "id", + "name", + "tonnage", + "ship_type", + "location", + "disposition_of_ship" + ], + "death": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured" + ] + }, + "linking_list": [ + [ + "ids", + "battle.id" + ], + [ + "names of the battles that lost", + "battle.name" + ], + [ + "names of the battles that lost", + "battle.title" + ], + [ + "names of the battles that lost", + "battle.designation" + ] + ], + "linking_list_idx": [ + [ + 0, + "battle.id" + ], + [ + 1, + "battle.name" + ], + [ + 1, + "battle.title" + ], + [ + 1, + "battle.designation" + ] + ], + "linking_list_col": [ + [ + "battle.title", + "battle.designation" + ], + [ + "battle.name", + "battle.designation" + ], + [ + "battle.title", + "battle.name" + ] + ] + }, + { + "question": "what are the #ids# and #names of the battles# that led to more than 10 people #killed# in total.", + "db_schema": { + "battle": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result", + "title", + "designation" + ], + "ship": [ + "lost_in_battle", + "id", + "name", + "tonnage", + "ship_type", + "location", + "disposition_of_ship" + ], + "death": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured" + ] + }, + "linking_list": [ + [ + "ids", + "battle.id" + ], + [ + "names of the battles", + "battle.name" + ], + [ + "names of the battles", + "battle.title" + ], + [ + "names of the battles", + "battle.designation" + ], + [ + "killed", + "death.killed" + ] + ], + "linking_list_idx": [ + [ + 0, + "battle.id" + ], + [ + 1, + "battle.name" + ], + [ + 1, + "battle.title" + ], + [ + 1, + "battle.designation" + ], + [ + 2, + "death.killed" + ] + ], + "linking_list_col": [ + [ + "battle.title", + "battle.designation" + ], + [ + "battle.name", + "battle.designation" + ], + [ + "battle.title", + "battle.name" + ] + ] + }, + { + "question": "what is the #ship id# and #name# that caused most total injuries?", + "db_schema": { + "battle": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result" + ], + "ship": [ + "lost_in_battle", + "id", + "name", + "tonnage", + "ship_type", + "location", + "disposition_of_ship", + "ship_id", + "vessel_id" + ], + "death": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured" + ] + }, + "linking_list": [ + [ + "ship id", + "ship.id" + ], + [ + "ship id", + "ship.ship_id" + ], + [ + "ship id", + "ship.vessel_id" + ], + [ + "name", + "ship.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "ship.id" + ], + [ + 0, + "ship.ship_id" + ], + [ + 0, + "ship.vessel_id" + ], + [ + 1, + "ship.name" + ] + ], + "linking_list_col": [ + [ + "ship.ship_id", + "ship.vessel_id" + ], + [ + "ship.id", + "ship.vessel_id" + ], + [ + "ship.ship_id", + "ship.id" + ] + ] + }, + { + "question": "what are the distinct #battle names# which are between #bulgarian commander# 'kaloyan' and #latin commander# 'baldwin i'?", + "db_schema": { + "battle": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result", + "title", + "designation" + ], + "ship": [ + "lost_in_battle", + "id", + "name", + "tonnage", + "ship_type", + "location", + "disposition_of_ship" + ], + "death": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured" + ] + }, + "linking_list": [ + [ + "battle names", + "battle.name" + ], + [ + "battle names", + "battle.title" + ], + [ + "battle names", + "battle.designation" + ], + [ + "bulgarian commander", + "battle.bulgarian_commander" + ], + [ + "latin commander", + "battle.latin_commander" + ] + ], + "linking_list_idx": [ + [ + 0, + "battle.name" + ], + [ + 0, + "battle.title" + ], + [ + 0, + "battle.designation" + ], + [ + 1, + "battle.bulgarian_commander" + ], + [ + 2, + "battle.latin_commander" + ] + ], + "linking_list_col": [ + [ + "battle.title", + "battle.designation" + ], + [ + "battle.name", + "battle.designation" + ], + [ + "battle.title", + "battle.name" + ] + ] + }, + { + "question": "how many different #results# are there for the battles?", + "db_schema": { + "battle": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result", + "outcome", + "consequence" + ], + "ship": [ + "lost_in_battle", + "id", + "name", + "tonnage", + "ship_type", + "location", + "disposition_of_ship" + ], + "death": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured" + ] + }, + "linking_list": [ + [ + "results", + "battle.result" + ], + [ + "results", + "battle.outcome" + ], + [ + "results", + "battle.consequence" + ] + ], + "linking_list_idx": [ + [ + 0, + "battle.result" + ], + [ + 0, + "battle.outcome" + ], + [ + 0, + "battle.consequence" + ] + ], + "linking_list_col": [ + [ + "battle.outcome", + "battle.consequence" + ], + [ + "battle.result", + "battle.consequence" + ], + [ + "battle.outcome", + "battle.result" + ] + ] + }, + { + "question": "list the #name# and #date the battle# that has lost the ship named 'lettice' and the ship named 'hms atalanta'", + "db_schema": { + "battle": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result", + "battle_date", + "engagement_date" + ], + "ship": [ + "lost_in_battle", + "id", + "name", + "tonnage", + "ship_type", + "location", + "disposition_of_ship" + ], + "death": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured" + ] + }, + "linking_list": [ + [ + "name", + "battle.name" + ], + [ + "date the battle", + "battle.date" + ], + [ + "date the battle", + "battle.battle_date" + ], + [ + "date the battle", + "battle.engagement_date" + ] + ], + "linking_list_idx": [ + [ + 0, + "battle.name" + ], + [ + 1, + "battle.date" + ], + [ + 1, + "battle.battle_date" + ], + [ + 1, + "battle.engagement_date" + ] + ], + "linking_list_col": [ + [ + "battle.battle_date", + "battle.engagement_date" + ], + [ + "battle.date", + "battle.engagement_date" + ], + [ + "battle.battle_date", + "battle.date" + ] + ] + }, + { + "question": "show #names# , #results# and #bulgarian commanders# of the battles with no ships lost in the 'english channel'.", + "db_schema": { + "battle": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result", + "outcome", + "consequence" + ], + "ship": [ + "lost_in_battle", + "id", + "name", + "tonnage", + "ship_type", + "location", + "disposition_of_ship" + ], + "death": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured" + ] + }, + "linking_list": [ + [ + "names", + "battle.name" + ], + [ + "results", + "battle.result" + ], + [ + "results", + "battle.outcome" + ], + [ + "results", + "battle.consequence" + ], + [ + "bulgarian commanders", + "battle.bulgarian_commander" + ] + ], + "linking_list_idx": [ + [ + 0, + "battle.name" + ], + [ + 1, + "battle.result" + ], + [ + 1, + "battle.outcome" + ], + [ + 1, + "battle.consequence" + ], + [ + 2, + "battle.bulgarian_commander" + ] + ], + "linking_list_col": [ + [ + "battle.outcome", + "battle.consequence" + ], + [ + "battle.result", + "battle.consequence" + ], + [ + "battle.outcome", + "battle.result" + ] + ] + }, + { + "question": "what are the #notes of the death events# which has substring 'east'?", + "db_schema": { + "battle": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result" + ], + "ship": [ + "lost_in_battle", + "id", + "name", + "tonnage", + "ship_type", + "location", + "disposition_of_ship" + ], + "death": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured", + "description", + "details" + ] + }, + "linking_list": [ + [ + "notes of the death events", + "death.note" + ], + [ + "notes of the death events", + "death.description" + ], + [ + "notes of the death events", + "death.details" + ] + ], + "linking_list_idx": [ + [ + 0, + "death.note" + ], + [ + 0, + "death.description" + ], + [ + 0, + "death.details" + ] + ], + "linking_list_col": [ + [ + "death.description", + "death.details" + ], + [ + "death.note", + "death.details" + ], + [ + "death.description", + "death.note" + ] + ] + }, + { + "question": "what are all the addresses including #line 1# and line 2?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details", + "first_line", + "primary_address" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "line 1", + "addresses.line_1" + ], + [ + "line 1", + "addresses.first_line" + ], + [ + "line 1", + "addresses.primary_address" + ] + ], + "linking_list_idx": [ + [ + 0, + "addresses.line_1" + ], + [ + 0, + "addresses.first_line" + ], + [ + 0, + "addresses.primary_address" + ] + ], + "linking_list_col": [ + [ + "addresses.first_line", + "addresses.primary_address" + ], + [ + "addresses.line_1", + "addresses.primary_address" + ], + [ + "addresses.first_line", + "addresses.line_1" + ] + ] + }, + { + "question": "what is the #zip code of the address in the city# port chelsea?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details", + "postal_code", + "postcode" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "zip code of the address in the city", + "addresses.zip_postcode" + ], + [ + "zip code of the address in the city", + "addresses.postal_code" + ], + [ + "zip code of the address in the city", + "addresses.postcode" + ] + ], + "linking_list_idx": [ + [ + 0, + "addresses.zip_postcode" + ], + [ + 0, + "addresses.postal_code" + ], + [ + 0, + "addresses.postcode" + ] + ], + "linking_list_col": [ + [ + "addresses.postal_code", + "addresses.postcode" + ], + [ + "addresses.zip_postcode", + "addresses.postcode" + ], + [ + "addresses.postal_code", + "addresses.zip_postcode" + ] + ] + }, + { + "question": "how many different #degree names# are offered?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details", + "program_name", + "degree_name" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "degree names", + "degree_programs.degree_summary_name" + ], + [ + "degree names", + "degree_programs.program_name" + ], + [ + "degree names", + "degree_programs.degree_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "degree_programs.degree_summary_name" + ], + [ + 0, + "degree_programs.program_name" + ], + [ + 0, + "degree_programs.degree_name" + ] + ], + "linking_list_col": [ + [ + "degree_programs.program_name", + "degree_programs.degree_name" + ], + [ + "degree_programs.degree_summary_name", + "degree_programs.degree_name" + ], + [ + "degree_programs.program_name", + "degree_programs.degree_summary_name" + ] + ] + }, + { + "question": "how many #different degrees# are offered?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details", + "program_name", + "degree_name" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "different degrees", + "degree_programs.degree_summary_name" + ], + [ + "different degrees", + "degree_programs.program_name" + ], + [ + "different degrees", + "degree_programs.degree_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "degree_programs.degree_summary_name" + ], + [ + 0, + "degree_programs.program_name" + ], + [ + 0, + "degree_programs.degree_name" + ] + ], + "linking_list_col": [ + [ + "degree_programs.program_name", + "degree_programs.degree_name" + ], + [ + "degree_programs.degree_summary_name", + "degree_programs.degree_name" + ], + [ + "degree_programs.program_name", + "degree_programs.degree_summary_name" + ] + ] + }, + { + "question": "what are the #names# and descriptions of all the sections?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details", + "part_name", + "segment_name" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "names", + "sections.section_name" + ], + [ + "names", + "sections.part_name" + ], + [ + "names", + "sections.segment_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "sections.section_name" + ], + [ + 0, + "sections.part_name" + ], + [ + 0, + "sections.segment_name" + ] + ], + "linking_list_col": [ + [ + "sections.part_name", + "sections.segment_name" + ], + [ + "sections.section_name", + "sections.segment_name" + ], + [ + "sections.part_name", + "sections.section_name" + ] + ] + }, + { + "question": "what are the #names# and descriptions for all the sections?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details", + "part_name", + "segment_name" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "names", + "sections.section_name" + ], + [ + "names", + "sections.part_name" + ], + [ + "names", + "sections.segment_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "sections.section_name" + ], + [ + 0, + "sections.part_name" + ], + [ + 0, + "sections.segment_name" + ] + ], + "linking_list_col": [ + [ + "sections.part_name", + "sections.segment_name" + ], + [ + "sections.section_name", + "sections.segment_name" + ], + [ + "sections.part_name", + "sections.section_name" + ] + ] + }, + { + "question": "what are the #names# and #id# of courses having at most 2 sections?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details", + "class_name", + "subject_name" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "names", + "courses.course_name" + ], + [ + "names", + "courses.class_name" + ], + [ + "names", + "courses.subject_name" + ], + [ + "id", + "courses.course_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "courses.course_name" + ], + [ + 0, + "courses.class_name" + ], + [ + 0, + "courses.subject_name" + ], + [ + 1, + "courses.course_id" + ] + ], + "linking_list_col": [ + [ + "courses.class_name", + "courses.subject_name" + ], + [ + "courses.course_name", + "courses.subject_name" + ], + [ + "courses.class_name", + "courses.course_name" + ] + ] + }, + { + "question": "what are the #names# and #ids# of every course with less than 2 sections?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details", + "class_name", + "subject_name" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "names", + "courses.course_name" + ], + [ + "names", + "courses.class_name" + ], + [ + "names", + "courses.subject_name" + ], + [ + "ids", + "courses.course_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "courses.course_name" + ], + [ + 0, + "courses.class_name" + ], + [ + 0, + "courses.subject_name" + ], + [ + 1, + "courses.course_id" + ] + ], + "linking_list_col": [ + [ + "courses.class_name", + "courses.subject_name" + ], + [ + "courses.course_name", + "courses.subject_name" + ], + [ + "courses.class_name", + "courses.course_name" + ] + ] + }, + { + "question": "list the #section_name# in reversed lexicographical order.", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details", + "part_name", + "segment_name" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "section_name", + "sections.section_name" + ], + [ + "section_name", + "sections.part_name" + ], + [ + "section_name", + "sections.segment_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "sections.section_name" + ], + [ + 0, + "sections.part_name" + ], + [ + 0, + "sections.segment_name" + ] + ], + "linking_list_col": [ + [ + "sections.part_name", + "sections.segment_name" + ], + [ + "sections.section_name", + "sections.segment_name" + ], + [ + "sections.part_name", + "sections.section_name" + ] + ] + }, + { + "question": "what is the #description# of the department whose #name# has the substring the computer?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details", + "dept_desc", + "faculty_desc" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "description", + "departments.department_description" + ], + [ + "description", + "departments.dept_desc" + ], + [ + "description", + "departments.faculty_desc" + ], + [ + "name", + "departments.department_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "departments.department_description" + ], + [ + 0, + "departments.dept_desc" + ], + [ + 0, + "departments.faculty_desc" + ], + [ + 1, + "departments.department_name" + ] + ], + "linking_list_col": [ + [ + "departments.dept_desc", + "departments.faculty_desc" + ], + [ + "departments.department_description", + "departments.faculty_desc" + ], + [ + "departments.dept_desc", + "departments.department_description" + ] + ] + }, + { + "question": "what is the #department description# for the one whose name has the word computer?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details", + "dept_desc", + "faculty_desc" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "department description", + "departments.department_description" + ], + [ + "department description", + "departments.dept_desc" + ], + [ + "department description", + "departments.faculty_desc" + ] + ], + "linking_list_idx": [ + [ + 0, + "departments.department_description" + ], + [ + 0, + "departments.dept_desc" + ], + [ + 0, + "departments.faculty_desc" + ] + ], + "linking_list_col": [ + [ + "departments.dept_desc", + "departments.faculty_desc" + ], + [ + "departments.department_description", + "departments.faculty_desc" + ], + [ + "departments.dept_desc", + "departments.department_description" + ] + ] + }, + { + "question": "who are enrolled in 2 degree programs in one semester? list the #first name# , #middle name# and #last name# and the #id# .", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details", + "surname", + "family_name" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "first name", + "students.first_name" + ], + [ + "middle name", + "students.middle_name" + ], + [ + "last name", + "students.last_name" + ], + [ + "last name", + "students.surname" + ], + [ + "last name", + "students.family_name" + ], + [ + "id", + "students.student_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.first_name" + ], + [ + 1, + "students.middle_name" + ], + [ + 2, + "students.last_name" + ], + [ + 2, + "students.surname" + ], + [ + 2, + "students.family_name" + ], + [ + 3, + "students.student_id" + ] + ], + "linking_list_col": [ + [ + "students.surname", + "students.family_name" + ], + [ + "students.last_name", + "students.family_name" + ], + [ + "students.surname", + "students.last_name" + ] + ] + }, + { + "question": "who is enrolled in a bachelor degree program? list the #first name# , #middle name# , #last name# .", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details", + "surname", + "family_name" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "first name", + "students.first_name" + ], + [ + "middle name", + "students.middle_name" + ], + [ + "last name", + "students.last_name" + ], + [ + "last name", + "students.surname" + ], + [ + "last name", + "students.family_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.first_name" + ], + [ + 1, + "students.middle_name" + ], + [ + 2, + "students.last_name" + ], + [ + 2, + "students.surname" + ], + [ + 2, + "students.family_name" + ] + ], + "linking_list_col": [ + [ + "students.surname", + "students.family_name" + ], + [ + "students.last_name", + "students.family_name" + ], + [ + "students.surname", + "students.last_name" + ] + ] + }, + { + "question": "find the #kind of program# which most number of students are enrolled in?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details", + "program_name", + "degree_name" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "kind of program", + "degree_programs.degree_summary_name" + ], + [ + "kind of program", + "degree_programs.program_name" + ], + [ + "kind of program", + "degree_programs.degree_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "degree_programs.degree_summary_name" + ], + [ + 0, + "degree_programs.program_name" + ], + [ + 0, + "degree_programs.degree_name" + ] + ], + "linking_list_col": [ + [ + "degree_programs.program_name", + "degree_programs.degree_name" + ], + [ + "degree_programs.degree_summary_name", + "degree_programs.degree_name" + ], + [ + "degree_programs.program_name", + "degree_programs.degree_summary_name" + ] + ] + }, + { + "question": "what is the #degree summary name# that has the most number of students enrolled?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details", + "program_name", + "degree_name" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "degree summary name", + "degree_programs.degree_summary_name" + ], + [ + "degree summary name", + "degree_programs.program_name" + ], + [ + "degree summary name", + "degree_programs.degree_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "degree_programs.degree_summary_name" + ], + [ + 0, + "degree_programs.program_name" + ], + [ + 0, + "degree_programs.degree_name" + ] + ], + "linking_list_col": [ + [ + "degree_programs.program_name", + "degree_programs.degree_name" + ], + [ + "degree_programs.degree_summary_name", + "degree_programs.degree_name" + ], + [ + "degree_programs.program_name", + "degree_programs.degree_summary_name" + ] + ] + }, + { + "question": "what is the #program id# and the #summary of the degree# that has the most students enrolled?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details", + "program_name", + "degree_name" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "program id", + "degree_programs.degree_program_id" + ], + [ + "summary of the degree", + "degree_programs.degree_summary_name" + ], + [ + "summary of the degree", + "degree_programs.program_name" + ], + [ + "summary of the degree", + "degree_programs.degree_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "degree_programs.degree_program_id" + ], + [ + 1, + "degree_programs.degree_summary_name" + ], + [ + 1, + "degree_programs.program_name" + ], + [ + 1, + "degree_programs.degree_name" + ] + ], + "linking_list_col": [ + [ + "degree_programs.program_name", + "degree_programs.degree_name" + ], + [ + "degree_programs.degree_summary_name", + "degree_programs.degree_name" + ], + [ + "degree_programs.program_name", + "degree_programs.degree_summary_name" + ] + ] + }, + { + "question": "which student has enrolled for the most times in any program? list the id, #first name# , #middle name# , #last name# , the #number of enrollments# and #student id# .", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details", + "surname", + "family_name" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "first name", + "students.first_name" + ], + [ + "middle name", + "students.middle_name" + ], + [ + "last name", + "students.last_name" + ], + [ + "last name", + "students.surname" + ], + [ + "last name", + "students.family_name" + ], + [ + "number of enrollments", + "student_enrolment.student_id" + ], + [ + "student id", + "students.student_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.first_name" + ], + [ + 1, + "students.middle_name" + ], + [ + 2, + "students.last_name" + ], + [ + 2, + "students.surname" + ], + [ + 2, + "students.family_name" + ], + [ + 3, + "student_enrolment.student_id" + ], + [ + 4, + "students.student_id" + ] + ], + "linking_list_col": [ + [ + "students.surname", + "students.family_name" + ], + [ + "students.last_name", + "students.family_name" + ], + [ + "students.surname", + "students.last_name" + ] + ] + }, + { + "question": "what is the first, middle, and #last name# , along with the #id# and #number of enrollments# , for the student who enrolled the most in any program?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details", + "surname", + "family_name" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "last name", + "students.last_name" + ], + [ + "last name", + "students.surname" + ], + [ + "last name", + "students.family_name" + ], + [ + "id", + "students.student_id" + ], + [ + "number of enrollments", + "student_enrolment.student_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.last_name" + ], + [ + 0, + "students.surname" + ], + [ + 0, + "students.family_name" + ], + [ + 1, + "students.student_id" + ], + [ + 2, + "student_enrolment.student_id" + ] + ], + "linking_list_col": [ + [ + "students.surname", + "students.family_name" + ], + [ + "students.last_name", + "students.family_name" + ], + [ + "students.surname", + "students.last_name" + ] + ] + }, + { + "question": "which semesters do not have any student enrolled? list the #semester name# .", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details", + "term_name", + "session_name" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "semester name", + "semesters.semester_name" + ], + [ + "semester name", + "semesters.term_name" + ], + [ + "semester name", + "semesters.session_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "semesters.semester_name" + ], + [ + 0, + "semesters.term_name" + ], + [ + 0, + "semesters.session_name" + ] + ], + "linking_list_col": [ + [ + "semesters.term_name", + "semesters.session_name" + ], + [ + "semesters.semester_name", + "semesters.session_name" + ], + [ + "semesters.term_name", + "semesters.semester_name" + ] + ] + }, + { + "question": "what is the #name of the semester# with no students enrolled?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details", + "term_name", + "session_name" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "name of the semester", + "semesters.semester_name" + ], + [ + "name of the semester", + "semesters.term_name" + ], + [ + "name of the semester", + "semesters.session_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "semesters.semester_name" + ], + [ + 0, + "semesters.term_name" + ], + [ + 0, + "semesters.session_name" + ] + ], + "linking_list_col": [ + [ + "semesters.term_name", + "semesters.session_name" + ], + [ + "semesters.semester_name", + "semesters.session_name" + ], + [ + "semesters.term_name", + "semesters.semester_name" + ] + ] + }, + { + "question": "what are all the #course names of the courses# which ever have students enrolled in?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details", + "class_name", + "subject_name" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "course names of the courses", + "courses.course_name" + ], + [ + "course names of the courses", + "courses.class_name" + ], + [ + "course names of the courses", + "courses.subject_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "courses.course_name" + ], + [ + 0, + "courses.class_name" + ], + [ + 0, + "courses.subject_name" + ] + ], + "linking_list_col": [ + [ + "courses.class_name", + "courses.subject_name" + ], + [ + "courses.course_name", + "courses.subject_name" + ], + [ + "courses.class_name", + "courses.course_name" + ] + ] + }, + { + "question": "what are the #names of all courses# that have some students enrolled?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details", + "class_name", + "subject_name" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "names of all courses", + "courses.course_name" + ], + [ + "names of all courses", + "courses.class_name" + ], + [ + "names of all courses", + "courses.subject_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "courses.course_name" + ], + [ + 0, + "courses.class_name" + ], + [ + 0, + "courses.subject_name" + ] + ], + "linking_list_col": [ + [ + "courses.class_name", + "courses.subject_name" + ], + [ + "courses.course_name", + "courses.subject_name" + ], + [ + "courses.class_name", + "courses.course_name" + ] + ] + }, + { + "question": "what's the #name of the course# with most number of enrollments?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details", + "class_name", + "subject_name" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "name of the course", + "courses.course_name" + ], + [ + "name of the course", + "courses.class_name" + ], + [ + "name of the course", + "courses.subject_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "courses.course_name" + ], + [ + 0, + "courses.class_name" + ], + [ + 0, + "courses.subject_name" + ] + ], + "linking_list_col": [ + [ + "courses.class_name", + "courses.subject_name" + ], + [ + "courses.course_name", + "courses.subject_name" + ], + [ + "courses.class_name", + "courses.course_name" + ] + ] + }, + { + "question": "what is the #name of the course# with the most students enrolled?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details", + "class_name", + "subject_name" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "name of the course", + "courses.course_name" + ], + [ + "name of the course", + "courses.class_name" + ], + [ + "name of the course", + "courses.subject_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "courses.course_name" + ], + [ + 0, + "courses.class_name" + ], + [ + 0, + "courses.subject_name" + ] + ], + "linking_list_col": [ + [ + "courses.class_name", + "courses.subject_name" + ], + [ + "courses.course_name", + "courses.subject_name" + ], + [ + "courses.class_name", + "courses.course_name" + ] + ] + }, + { + "question": "find the #last name of the students# who #currently live in the state# of north carolina but have not registered in any degree program.", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details", + "surname", + "family_name" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "last name of the students", + "students.last_name" + ], + [ + "last name of the students", + "students.surname" + ], + [ + "last name of the students", + "students.family_name" + ], + [ + "currently live in the state", + "addresses.state_province_county" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.last_name" + ], + [ + 0, + "students.surname" + ], + [ + 0, + "students.family_name" + ], + [ + 1, + "addresses.state_province_county" + ] + ], + "linking_list_col": [ + [ + "students.surname", + "students.family_name" + ], + [ + "students.last_name", + "students.family_name" + ], + [ + "students.surname", + "students.last_name" + ] + ] + }, + { + "question": "what are the #last name of the students# who live in #north carolina# but have not registered in any degree programs?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details", + "surname", + "family_name" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "last name of the students", + "students.last_name" + ], + [ + "last name of the students", + "students.surname" + ], + [ + "last name of the students", + "students.family_name" + ], + [ + "North Carolina", + "addresses.state_province_county" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.last_name" + ], + [ + 0, + "students.surname" + ], + [ + 0, + "students.family_name" + ], + [ + 1, + "addresses.state_province_county" + ] + ], + "linking_list_col": [ + [ + "students.surname", + "students.family_name" + ], + [ + "students.last_name", + "students.family_name" + ], + [ + "students.surname", + "students.last_name" + ] + ] + }, + { + "question": "show the #date# and #id# of the transcript with at least 2 #course results# .", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id", + "record_id", + "document_id" + ] + }, + "linking_list": [ + [ + "date", + "transcripts.transcript_date" + ], + [ + "id", + "transcript_contents.transcript_id" + ], + [ + "id", + "transcript_contents.record_id" + ], + [ + "id", + "transcript_contents.document_id" + ], + [ + "course results", + "transcript_contents.student_course_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "transcripts.transcript_date" + ], + [ + 1, + "transcript_contents.transcript_id" + ], + [ + 1, + "transcript_contents.record_id" + ], + [ + 1, + "transcript_contents.document_id" + ], + [ + 2, + "transcript_contents.student_course_id" + ] + ], + "linking_list_col": [ + [ + "transcript_contents.record_id", + "transcript_contents.document_id" + ], + [ + "transcript_contents.transcript_id", + "transcript_contents.document_id" + ], + [ + "transcript_contents.record_id", + "transcript_contents.transcript_id" + ] + ] + }, + { + "question": "what is the #phone number# of the man with the #first name# timmothy and the #last name# ward?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details", + "contact_number", + "phone_number" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "phone number", + "students.cell_mobile_number" + ], + [ + "phone number", + "students.contact_number" + ], + [ + "phone number", + "students.phone_number" + ], + [ + "first name", + "students.first_name" + ], + [ + "last name", + "students.last_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.cell_mobile_number" + ], + [ + 0, + "students.contact_number" + ], + [ + 0, + "students.phone_number" + ], + [ + 1, + "students.first_name" + ], + [ + 2, + "students.last_name" + ] + ], + "linking_list_col": [ + [ + "students.contact_number", + "students.phone_number" + ], + [ + "students.cell_mobile_number", + "students.phone_number" + ], + [ + "students.contact_number", + "students.cell_mobile_number" + ] + ] + }, + { + "question": "who is the first student to register? list the #first name# , #middle name# and #last name# .", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details", + "surname", + "family_name" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "first name", + "students.first_name" + ], + [ + "middle name", + "students.middle_name" + ], + [ + "last name", + "students.last_name" + ], + [ + "last name", + "students.surname" + ], + [ + "last name", + "students.family_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.first_name" + ], + [ + 1, + "students.middle_name" + ], + [ + 2, + "students.last_name" + ], + [ + 2, + "students.surname" + ], + [ + 2, + "students.family_name" + ] + ], + "linking_list_col": [ + [ + "students.surname", + "students.family_name" + ], + [ + "students.last_name", + "students.family_name" + ], + [ + "students.surname", + "students.last_name" + ] + ] + }, + { + "question": "who is the earliest #graduate# of the school? list the #first name# , #middle name# and #last name# .", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details", + "surname", + "family_name" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "graduate", + "students.date_left" + ], + [ + "first name", + "students.first_name" + ], + [ + "middle name", + "students.middle_name" + ], + [ + "last name", + "students.last_name" + ], + [ + "last name", + "students.surname" + ], + [ + "last name", + "students.family_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.date_left" + ], + [ + 1, + "students.first_name" + ], + [ + 2, + "students.middle_name" + ], + [ + 3, + "students.last_name" + ], + [ + 3, + "students.surname" + ], + [ + 3, + "students.family_name" + ] + ], + "linking_list_col": [ + [ + "students.surname", + "students.family_name" + ], + [ + "students.last_name", + "students.family_name" + ], + [ + "students.surname", + "students.last_name" + ] + ] + }, + { + "question": "whose #permanent address# is different from his or her current address? list his or her #first name# .", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details", + "forename", + "given_name" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "permanent address", + "students.permanent_address_id" + ], + [ + "first name", + "students.first_name" + ], + [ + "first name", + "students.forename" + ], + [ + "first name", + "students.given_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.permanent_address_id" + ], + [ + 1, + "students.first_name" + ], + [ + 1, + "students.forename" + ], + [ + 1, + "students.given_name" + ] + ], + "linking_list_col": [ + [ + "students.forename", + "students.given_name" + ], + [ + "students.first_name", + "students.given_name" + ], + [ + "students.forename", + "students.first_name" + ] + ] + }, + { + "question": "what is the #first name of the student# whose #permanent address# is different from his or her current one?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details", + "forename", + "given_name" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "first name of the student", + "students.first_name" + ], + [ + "first name of the student", + "students.forename" + ], + [ + "first name of the student", + "students.given_name" + ], + [ + "permanent address", + "students.permanent_address_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.first_name" + ], + [ + 0, + "students.forename" + ], + [ + 0, + "students.given_name" + ], + [ + 1, + "students.permanent_address_id" + ] + ], + "linking_list_col": [ + [ + "students.forename", + "students.given_name" + ], + [ + "students.first_name", + "students.given_name" + ], + [ + "students.forename", + "students.first_name" + ] + ] + }, + { + "question": "which address holds the most number of students currently? list the #address id# and all lines.", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details", + "address_code", + "postal_address_id" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "address id", + "addresses.address_id" + ], + [ + "address id", + "addresses.address_code" + ], + [ + "address id", + "addresses.postal_address_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "addresses.address_id" + ], + [ + 0, + "addresses.address_code" + ], + [ + 0, + "addresses.postal_address_id" + ] + ], + "linking_list_col": [ + [ + "addresses.address_code", + "addresses.postal_address_id" + ], + [ + "addresses.address_id", + "addresses.postal_address_id" + ], + [ + "addresses.address_code", + "addresses.address_id" + ] + ] + }, + { + "question": "what is the #id# , #line 1# , and #line 2 of the address# with the most students?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details", + "address_code", + "postal_address_id" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "id", + "addresses.address_id" + ], + [ + "id", + "addresses.address_code" + ], + [ + "id", + "addresses.postal_address_id" + ], + [ + "line 1", + "addresses.line_1" + ], + [ + "line 2 of the address", + "addresses.line_2" + ] + ], + "linking_list_idx": [ + [ + 0, + "addresses.address_id" + ], + [ + 0, + "addresses.address_code" + ], + [ + 0, + "addresses.postal_address_id" + ], + [ + 1, + "addresses.line_1" + ], + [ + 2, + "addresses.line_2" + ] + ], + "linking_list_col": [ + [ + "addresses.address_code", + "addresses.postal_address_id" + ], + [ + "addresses.address_id", + "addresses.postal_address_id" + ], + [ + "addresses.address_code", + "addresses.address_id" + ] + ] + }, + { + "question": "on #average# , when were the transcripts printed?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details", + "record_date", + "document_date" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "average", + "transcripts.transcript_date" + ], + [ + "average", + "transcripts.record_date" + ], + [ + "average", + "transcripts.document_date" + ] + ], + "linking_list_idx": [ + [ + 0, + "transcripts.transcript_date" + ], + [ + 0, + "transcripts.record_date" + ], + [ + 0, + "transcripts.document_date" + ] + ], + "linking_list_col": [ + [ + "transcripts.record_date", + "transcripts.document_date" + ], + [ + "transcripts.transcript_date", + "transcripts.document_date" + ], + [ + "transcripts.record_date", + "transcripts.transcript_date" + ] + ] + }, + { + "question": "when is the first transcript released? list the #date# and #details# .", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details", + "additional_information", + "extra_notes" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "date", + "transcripts.transcript_date" + ], + [ + "details", + "transcripts.other_details" + ], + [ + "details", + "transcripts.additional_information" + ], + [ + "details", + "transcripts.extra_notes" + ] + ], + "linking_list_idx": [ + [ + 0, + "transcripts.transcript_date" + ], + [ + 1, + "transcripts.other_details" + ], + [ + 1, + "transcripts.additional_information" + ], + [ + 1, + "transcripts.extra_notes" + ] + ], + "linking_list_col": [ + [ + "transcripts.additional_information", + "transcripts.extra_notes" + ], + [ + "transcripts.other_details", + "transcripts.extra_notes" + ], + [ + "transcripts.additional_information", + "transcripts.other_details" + ] + ] + }, + { + "question": "what is the earliest #date of a transcript release# , and what #details# can you tell me?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details", + "additional_information", + "extra_notes" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "date of a transcript release", + "transcripts.transcript_date" + ], + [ + "details", + "transcripts.other_details" + ], + [ + "details", + "transcripts.additional_information" + ], + [ + "details", + "transcripts.extra_notes" + ] + ], + "linking_list_idx": [ + [ + 0, + "transcripts.transcript_date" + ], + [ + 1, + "transcripts.other_details" + ], + [ + 1, + "transcripts.additional_information" + ], + [ + 1, + "transcripts.extra_notes" + ] + ], + "linking_list_col": [ + [ + "transcripts.additional_information", + "transcripts.extra_notes" + ], + [ + "transcripts.other_details", + "transcripts.extra_notes" + ], + [ + "transcripts.additional_information", + "transcripts.other_details" + ] + ] + }, + { + "question": "when was the last #transcript# released?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details", + "record_date", + "document_date" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "transcript", + "transcripts.transcript_date" + ], + [ + "transcript", + "transcripts.record_date" + ], + [ + "transcript", + "transcripts.document_date" + ] + ], + "linking_list_idx": [ + [ + 0, + "transcripts.transcript_date" + ], + [ + 0, + "transcripts.record_date" + ], + [ + 0, + "transcripts.document_date" + ] + ], + "linking_list_col": [ + [ + "transcripts.record_date", + "transcripts.document_date" + ], + [ + "transcripts.transcript_date", + "transcripts.document_date" + ], + [ + "transcripts.record_date", + "transcripts.transcript_date" + ] + ] + }, + { + "question": "how many times at most can a #course enrollment result# show in different transcripts? also show the #course enrollment id# .", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id", + "course_student_id", + "enrollment_id" + ] + }, + "linking_list": [ + [ + "course enrollment result", + "transcript_contents.student_course_id" + ], + [ + "course enrollment result", + "transcript_contents.course_student_id" + ], + [ + "course enrollment result", + "transcript_contents.enrollment_id" + ], + [ + "course enrollment id", + "transcript_contents.student_course_id" + ], + [ + "course enrollment id", + "transcript_contents.course_student_id" + ], + [ + "course enrollment id", + "transcript_contents.enrollment_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "transcript_contents.student_course_id" + ], + [ + 0, + "transcript_contents.course_student_id" + ], + [ + 0, + "transcript_contents.enrollment_id" + ], + [ + 1, + "transcript_contents.student_course_id" + ], + [ + 1, + "transcript_contents.course_student_id" + ], + [ + 1, + "transcript_contents.enrollment_id" + ] + ], + "linking_list_col": [ + [ + "transcript_contents.course_student_id", + "transcript_contents.enrollment_id" + ], + [ + "transcript_contents.student_course_id", + "transcript_contents.enrollment_id" + ], + [ + "transcript_contents.course_student_id", + "transcript_contents.student_course_id" + ] + ] + }, + { + "question": "what is the maximum #number of times that a course shows up in different transcripts# and what is that course's enrollment id?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id", + "course_student_id", + "enrollment_id" + ] + }, + "linking_list": [ + [ + "number of times that a course shows up in different transcripts", + "transcript_contents.student_course_id" + ], + [ + "number of times that a course shows up in different transcripts", + "transcript_contents.course_student_id" + ], + [ + "number of times that a course shows up in different transcripts", + "transcript_contents.enrollment_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "transcript_contents.student_course_id" + ], + [ + 0, + "transcript_contents.course_student_id" + ], + [ + 0, + "transcript_contents.enrollment_id" + ] + ], + "linking_list_col": [ + [ + "transcript_contents.course_student_id", + "transcript_contents.enrollment_id" + ], + [ + "transcript_contents.student_course_id", + "transcript_contents.enrollment_id" + ], + [ + "transcript_contents.course_student_id", + "transcript_contents.student_course_id" + ] + ] + }, + { + "question": "how many #different addresses# do the students currently live?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details", + "current_residence_id", + "residence_address_id" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "different addresses", + "students.current_address_id" + ], + [ + "different addresses", + "students.current_residence_id" + ], + [ + "different addresses", + "students.residence_address_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.current_address_id" + ], + [ + 0, + "students.current_residence_id" + ], + [ + 0, + "students.residence_address_id" + ] + ], + "linking_list_col": [ + [ + "students.current_residence_id", + "students.residence_address_id" + ], + [ + "students.current_address_id", + "students.residence_address_id" + ], + [ + "students.current_residence_id", + "students.current_address_id" + ] + ] + }, + { + "question": "list all the #student details# in reversed lexicographical order.", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details", + "additional_details", + "extra_info" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "student details", + "students.other_student_details" + ], + [ + "student details", + "students.additional_details" + ], + [ + "student details", + "students.extra_info" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.other_student_details" + ], + [ + 0, + "students.additional_details" + ], + [ + 0, + "students.extra_info" + ] + ], + "linking_list_col": [ + [ + "students.additional_details", + "students.extra_info" + ], + [ + "students.other_student_details", + "students.extra_info" + ], + [ + "students.additional_details", + "students.other_student_details" + ] + ] + }, + { + "question": "what #other details# can you tell me about students in reverse alphabetical order?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details", + "additional_details", + "extra_info" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "other details", + "students.other_student_details" + ], + [ + "other details", + "students.additional_details" + ], + [ + "other details", + "students.extra_info" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.other_student_details" + ], + [ + 0, + "students.additional_details" + ], + [ + 0, + "students.extra_info" + ] + ], + "linking_list_col": [ + [ + "students.additional_details", + "students.extra_info" + ], + [ + "students.other_student_details", + "students.extra_info" + ], + [ + "students.additional_details", + "students.other_student_details" + ] + ] + }, + { + "question": "list the #title of all cartoons# in alphabetical order.", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel", + "cartoon_name", + "program_title" + ] + }, + "linking_list": [ + [ + "title of all cartoons", + "cartoon.title" + ], + [ + "title of all cartoons", + "cartoon.cartoon_name" + ], + [ + "title of all cartoons", + "cartoon.program_title" + ] + ], + "linking_list_idx": [ + [ + 0, + "cartoon.title" + ], + [ + 0, + "cartoon.cartoon_name" + ], + [ + 0, + "cartoon.program_title" + ] + ], + "linking_list_col": [ + [ + "cartoon.cartoon_name", + "cartoon.program_title" + ], + [ + "cartoon.title", + "cartoon.program_title" + ], + [ + "cartoon.cartoon_name", + "cartoon.title" + ] + ] + }, + { + "question": "what are the #titles of the cartoons# sorted alphabetically?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel", + "cartoon_name", + "program_title" + ] + }, + "linking_list": [ + [ + "titles of the cartoons", + "cartoon.title" + ], + [ + "titles of the cartoons", + "cartoon.cartoon_name" + ], + [ + "titles of the cartoons", + "cartoon.program_title" + ] + ], + "linking_list_idx": [ + [ + 0, + "cartoon.title" + ], + [ + 0, + "cartoon.cartoon_name" + ], + [ + 0, + "cartoon.program_title" + ] + ], + "linking_list_col": [ + [ + "cartoon.cartoon_name", + "cartoon.program_title" + ], + [ + "cartoon.title", + "cartoon.program_title" + ], + [ + "cartoon.cartoon_name", + "cartoon.title" + ] + ] + }, + { + "question": "list all #cartoon titles# and their #directors# ordered by their air date", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel", + "cartoon_name", + "program_title" + ] + }, + "linking_list": [ + [ + "cartoon titles", + "cartoon.title" + ], + [ + "cartoon titles", + "cartoon.cartoon_name" + ], + [ + "cartoon titles", + "cartoon.program_title" + ], + [ + "directors", + "cartoon.directed_by" + ] + ], + "linking_list_idx": [ + [ + 0, + "cartoon.title" + ], + [ + 0, + "cartoon.cartoon_name" + ], + [ + 0, + "cartoon.program_title" + ], + [ + 1, + "cartoon.directed_by" + ] + ], + "linking_list_col": [ + [ + "cartoon.cartoon_name", + "cartoon.program_title" + ], + [ + "cartoon.title", + "cartoon.program_title" + ], + [ + "cartoon.cartoon_name", + "cartoon.title" + ] + ] + }, + { + "question": "what is the #name# and #directors of all the cartoons# that are ordered by air date?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel", + "cartoon_name", + "program_title" + ] + }, + "linking_list": [ + [ + "name", + "cartoon.title" + ], + [ + "name", + "cartoon.cartoon_name" + ], + [ + "name", + "cartoon.program_title" + ], + [ + "directors of all the cartoons", + "cartoon.directed_by" + ] + ], + "linking_list_idx": [ + [ + 0, + "cartoon.title" + ], + [ + 0, + "cartoon.cartoon_name" + ], + [ + 0, + "cartoon.program_title" + ], + [ + 1, + "cartoon.directed_by" + ] + ], + "linking_list_col": [ + [ + "cartoon.cartoon_name", + "cartoon.program_title" + ], + [ + "cartoon.title", + "cartoon.program_title" + ], + [ + "cartoon.cartoon_name", + "cartoon.title" + ] + ] + }, + { + "question": "which #country# has the most of tv channels? list the country and number of tv channels it has.", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "nation", + "territory" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "country", + "tv_channel.country" + ], + [ + "country", + "tv_channel.nation" + ], + [ + "country", + "tv_channel.territory" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.country" + ], + [ + 0, + "tv_channel.nation" + ], + [ + 0, + "tv_channel.territory" + ] + ], + "linking_list_col": [ + [ + "tv_channel.nation", + "tv_channel.territory" + ], + [ + "tv_channel.country", + "tv_channel.territory" + ], + [ + "tv_channel.nation", + "tv_channel.country" + ] + ] + }, + { + "question": "what is the #country# with the most number of tv channels and how many does it have?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "nation", + "territory" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "country", + "tv_channel.country" + ], + [ + "country", + "tv_channel.nation" + ], + [ + "country", + "tv_channel.territory" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.country" + ], + [ + 0, + "tv_channel.nation" + ], + [ + 0, + "tv_channel.territory" + ] + ], + "linking_list_col": [ + [ + "tv_channel.nation", + "tv_channel.territory" + ], + [ + "tv_channel.country", + "tv_channel.territory" + ], + [ + "tv_channel.nation", + "tv_channel.country" + ] + ] + }, + { + "question": "list the number of different #series names# and #contents in the tv channel table# .", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "broadcast", + "transmission" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "series names", + "tv_channel.series_name" + ], + [ + "contents in the TV Channel table", + "tv_channel.content" + ], + [ + "contents in the TV Channel table", + "tv_channel.broadcast" + ], + [ + "contents in the TV Channel table", + "tv_channel.transmission" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.series_name" + ], + [ + 1, + "tv_channel.content" + ], + [ + 1, + "tv_channel.broadcast" + ], + [ + 1, + "tv_channel.transmission" + ] + ], + "linking_list_col": [ + [ + "tv_channel.broadcast", + "tv_channel.transmission" + ], + [ + "tv_channel.content", + "tv_channel.transmission" + ], + [ + "tv_channel.broadcast", + "tv_channel.content" + ] + ] + }, + { + "question": "how many different #series# and #contents# are listed in the tv channel table?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "broadcast", + "transmission" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "series", + "tv_channel.series_name" + ], + [ + "contents", + "tv_channel.content" + ], + [ + "contents", + "tv_channel.broadcast" + ], + [ + "contents", + "tv_channel.transmission" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.series_name" + ], + [ + 1, + "tv_channel.content" + ], + [ + 1, + "tv_channel.broadcast" + ], + [ + 1, + "tv_channel.transmission" + ] + ], + "linking_list_col": [ + [ + "tv_channel.broadcast", + "tv_channel.transmission" + ], + [ + "tv_channel.content", + "tv_channel.transmission" + ], + [ + "tv_channel.broadcast", + "tv_channel.content" + ] + ] + }, + { + "question": "what is the #content of tv channel with serial name# \"sky radio\"?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "broadcast", + "transmission" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "content of TV Channel with serial name", + "tv_channel.content" + ], + [ + "content of TV Channel with serial name", + "tv_channel.broadcast" + ], + [ + "content of TV Channel with serial name", + "tv_channel.transmission" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.content" + ], + [ + 0, + "tv_channel.broadcast" + ], + [ + 0, + "tv_channel.transmission" + ] + ], + "linking_list_col": [ + [ + "tv_channel.broadcast", + "tv_channel.transmission" + ], + [ + "tv_channel.content", + "tv_channel.transmission" + ], + [ + "tv_channel.broadcast", + "tv_channel.content" + ] + ] + }, + { + "question": "what is the #content of the series# sky radio?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "broadcast", + "transmission" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "content of the series", + "tv_channel.content" + ], + [ + "content of the series", + "tv_channel.broadcast" + ], + [ + "content of the series", + "tv_channel.transmission" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.content" + ], + [ + 0, + "tv_channel.broadcast" + ], + [ + 0, + "tv_channel.transmission" + ] + ], + "linking_list_col": [ + [ + "tv_channel.broadcast", + "tv_channel.transmission" + ], + [ + "tv_channel.content", + "tv_channel.transmission" + ], + [ + "tv_channel.broadcast", + "tv_channel.content" + ] + ] + }, + { + "question": "what is the #package option of tv channel with serial name# \"sky radio\"?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "subscription_option", + "tv_service_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "Package Option of TV Channel with serial name", + "tv_channel.package_option" + ], + [ + "Package Option of TV Channel with serial name", + "tv_channel.subscription_option" + ], + [ + "Package Option of TV Channel with serial name", + "tv_channel.tv_service_option" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.package_option" + ], + [ + 0, + "tv_channel.subscription_option" + ], + [ + 0, + "tv_channel.tv_service_option" + ] + ], + "linking_list_col": [ + [ + "tv_channel.subscription_option", + "tv_channel.tv_service_option" + ], + [ + "tv_channel.package_option", + "tv_channel.tv_service_option" + ], + [ + "tv_channel.subscription_option", + "tv_channel.package_option" + ] + ] + }, + { + "question": "what are the #package options of the tv channels# whose #series names# are sky radio?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "subscription_option", + "tv_service_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "Package Options of the TV Channels", + "tv_channel.package_option" + ], + [ + "Package Options of the TV Channels", + "tv_channel.subscription_option" + ], + [ + "Package Options of the TV Channels", + "tv_channel.tv_service_option" + ], + [ + "series names", + "tv_channel.series_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.package_option" + ], + [ + 0, + "tv_channel.subscription_option" + ], + [ + 0, + "tv_channel.tv_service_option" + ], + [ + 1, + "tv_channel.series_name" + ] + ], + "linking_list_col": [ + [ + "tv_channel.subscription_option", + "tv_channel.tv_service_option" + ], + [ + "tv_channel.package_option", + "tv_channel.tv_service_option" + ], + [ + "tv_channel.subscription_option", + "tv_channel.package_option" + ] + ] + }, + { + "question": "list the #language# used least number of tv channel. list language and number of tv channel.", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "tongue", + "dialect" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "language", + "tv_channel.language" + ], + [ + "language", + "tv_channel.tongue" + ], + [ + "language", + "tv_channel.dialect" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.language" + ], + [ + 0, + "tv_channel.tongue" + ], + [ + 0, + "tv_channel.dialect" + ] + ], + "linking_list_col": [ + [ + "tv_channel.tongue", + "tv_channel.dialect" + ], + [ + "tv_channel.language", + "tv_channel.dialect" + ], + [ + "tv_channel.tongue", + "tv_channel.language" + ] + ] + }, + { + "question": "what are the #languages# used by the least number of tv channels and how many channels use it?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "tongue", + "dialect" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "languages", + "tv_channel.language" + ], + [ + "languages", + "tv_channel.tongue" + ], + [ + "languages", + "tv_channel.dialect" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.language" + ], + [ + 0, + "tv_channel.tongue" + ], + [ + 0, + "tv_channel.dialect" + ] + ], + "linking_list_col": [ + [ + "tv_channel.tongue", + "tv_channel.dialect" + ], + [ + "tv_channel.language", + "tv_channel.dialect" + ], + [ + "tv_channel.tongue", + "tv_channel.language" + ] + ] + }, + { + "question": "list each #language# and the number of tv channels using it.", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "tongue", + "dialect" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "language", + "tv_channel.language" + ], + [ + "language", + "tv_channel.tongue" + ], + [ + "language", + "tv_channel.dialect" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.language" + ], + [ + 0, + "tv_channel.tongue" + ], + [ + 0, + "tv_channel.dialect" + ] + ], + "linking_list_col": [ + [ + "tv_channel.tongue", + "tv_channel.dialect" + ], + [ + "tv_channel.language", + "tv_channel.dialect" + ], + [ + "tv_channel.tongue", + "tv_channel.language" + ] + ] + }, + { + "question": "for each #language# , list the number of tv channels that use it.", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "tongue", + "dialect" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "language", + "tv_channel.language" + ], + [ + "language", + "tv_channel.tongue" + ], + [ + "language", + "tv_channel.dialect" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.language" + ], + [ + 0, + "tv_channel.tongue" + ], + [ + 0, + "tv_channel.dialect" + ] + ], + "linking_list_col": [ + [ + "tv_channel.tongue", + "tv_channel.dialect" + ], + [ + "tv_channel.language", + "tv_channel.dialect" + ], + [ + "tv_channel.tongue", + "tv_channel.language" + ] + ] + }, + { + "question": "what is the tv channel that shows the cartoon \"the rise of the blue beetle!\"? list the tv channel's #series name# .", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "show_name", + "program_name" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "series name", + "tv_channel.series_name" + ], + [ + "series name", + "tv_channel.show_name" + ], + [ + "series name", + "tv_channel.program_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.series_name" + ], + [ + 0, + "tv_channel.show_name" + ], + [ + 0, + "tv_channel.program_name" + ] + ], + "linking_list_col": [ + [ + "tv_channel.show_name", + "tv_channel.program_name" + ], + [ + "tv_channel.series_name", + "tv_channel.program_name" + ], + [ + "tv_channel.show_name", + "tv_channel.series_name" + ] + ] + }, + { + "question": "what is the #series name of the tv channel# that shows the cartoon \"the rise of the blue beetle\"?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "show_name", + "program_name" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "series name of the TV Channel", + "tv_channel.series_name" + ], + [ + "series name of the TV Channel", + "tv_channel.show_name" + ], + [ + "series name of the TV Channel", + "tv_channel.program_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.series_name" + ], + [ + 0, + "tv_channel.show_name" + ], + [ + 0, + "tv_channel.program_name" + ] + ], + "linking_list_col": [ + [ + "tv_channel.show_name", + "tv_channel.program_name" + ], + [ + "tv_channel.series_name", + "tv_channel.program_name" + ], + [ + "tv_channel.show_name", + "tv_channel.series_name" + ] + ] + }, + { + "question": "list the #title# of all cartoons showed on #tv channel with series name# \"sky radio\".", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel", + "cartoon_name", + "program_title" + ] + }, + "linking_list": [ + [ + "title", + "cartoon.title" + ], + [ + "title", + "cartoon.cartoon_name" + ], + [ + "title", + "cartoon.program_title" + ], + [ + "TV Channel with series name", + "tv_channel.series_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "cartoon.title" + ], + [ + 0, + "cartoon.cartoon_name" + ], + [ + 0, + "cartoon.program_title" + ], + [ + 1, + "tv_channel.series_name" + ] + ], + "linking_list_col": [ + [ + "cartoon.cartoon_name", + "cartoon.program_title" + ], + [ + "cartoon.title", + "cartoon.program_title" + ], + [ + "cartoon.cartoon_name", + "cartoon.title" + ] + ] + }, + { + "question": "what is the #title# of all the cartools that are on the #tv channel with the series name# \"sky radio\"?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel", + "cartoon_name", + "program_title" + ] + }, + "linking_list": [ + [ + "title", + "cartoon.title" + ], + [ + "title", + "cartoon.cartoon_name" + ], + [ + "title", + "cartoon.program_title" + ], + [ + "TV Channel with the series name", + "tv_channel.series_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "cartoon.title" + ], + [ + 0, + "cartoon.cartoon_name" + ], + [ + 0, + "cartoon.program_title" + ], + [ + 1, + "tv_channel.series_name" + ] + ], + "linking_list_col": [ + [ + "cartoon.cartoon_name", + "cartoon.program_title" + ], + [ + "cartoon.title", + "cartoon.program_title" + ], + [ + "cartoon.cartoon_name", + "cartoon.title" + ] + ] + }, + { + "question": "list the #episode of all tv series# sorted by #rating# .", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel", + "part", + "chapter" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "Episode of all TV series", + "tv_series.episode" + ], + [ + "Episode of all TV series", + "tv_series.part" + ], + [ + "Episode of all TV series", + "tv_series.chapter" + ], + [ + "rating", + "tv_series.rating" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_series.episode" + ], + [ + 0, + "tv_series.part" + ], + [ + 0, + "tv_series.chapter" + ], + [ + 1, + "tv_series.rating" + ] + ], + "linking_list_col": [ + [ + "tv_series.part", + "tv_series.chapter" + ], + [ + "tv_series.episode", + "tv_series.chapter" + ], + [ + "tv_series.part", + "tv_series.episode" + ] + ] + }, + { + "question": "what are all of the #episodes# ordered by ratings?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel", + "part", + "chapter" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "episodes", + "tv_series.episode" + ], + [ + "episodes", + "tv_series.part" + ], + [ + "episodes", + "tv_series.chapter" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_series.episode" + ], + [ + 0, + "tv_series.part" + ], + [ + 0, + "tv_series.chapter" + ] + ], + "linking_list_col": [ + [ + "tv_series.part", + "tv_series.chapter" + ], + [ + "tv_series.episode", + "tv_series.chapter" + ], + [ + "tv_series.part", + "tv_series.episode" + ] + ] + }, + { + "question": "list top 3 highest #rating tv series# . list the #tv series's episode# and #rating# .", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel", + "popularity", + "score" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "Rating TV series", + "tv_series.rating" + ], + [ + "Rating TV series", + "tv_series.popularity" + ], + [ + "Rating TV series", + "tv_series.score" + ], + [ + "Rating", + "tv_series.rating" + ], + [ + "Rating", + "tv_series.popularity" + ], + [ + "Rating", + "tv_series.score" + ], + [ + "TV series's Episode", + "tv_series.episode" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_series.rating" + ], + [ + 0, + "tv_series.popularity" + ], + [ + 0, + "tv_series.score" + ], + [ + 1, + "tv_series.rating" + ], + [ + 1, + "tv_series.popularity" + ], + [ + 1, + "tv_series.score" + ], + [ + 2, + "tv_series.episode" + ] + ], + "linking_list_col": [ + [ + "tv_series.popularity", + "tv_series.score" + ], + [ + "tv_series.rating", + "tv_series.score" + ], + [ + "tv_series.popularity", + "tv_series.rating" + ] + ] + }, + { + "question": "what is the #air date of tv series with episode# \"a love of a lifetime\"?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel", + "broadcast_date", + "airing_date" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "air date of TV series with Episode", + "tv_series.air_date" + ], + [ + "air date of TV series with Episode", + "tv_series.broadcast_date" + ], + [ + "air date of TV series with Episode", + "tv_series.airing_date" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_series.air_date" + ], + [ + 0, + "tv_series.broadcast_date" + ], + [ + 0, + "tv_series.airing_date" + ] + ], + "linking_list_col": [ + [ + "tv_series.broadcast_date", + "tv_series.airing_date" + ], + [ + "tv_series.air_date", + "tv_series.airing_date" + ], + [ + "tv_series.broadcast_date", + "tv_series.air_date" + ] + ] + }, + { + "question": "what is #weekly rank of tv series with episode# \"a love of a lifetime\"?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel", + "position_in_chart", + "ranking" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "Weekly Rank of TV series with Episode", + "tv_series.weekly_rank" + ], + [ + "Weekly Rank of TV series with Episode", + "tv_series.position_in_chart" + ], + [ + "Weekly Rank of TV series with Episode", + "tv_series.ranking" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_series.weekly_rank" + ], + [ + 0, + "tv_series.position_in_chart" + ], + [ + 0, + "tv_series.ranking" + ] + ], + "linking_list_col": [ + [ + "tv_series.position_in_chart", + "tv_series.ranking" + ], + [ + "tv_series.weekly_rank", + "tv_series.ranking" + ], + [ + "tv_series.position_in_chart", + "tv_series.weekly_rank" + ] + ] + }, + { + "question": "what is the #weekly rank for the episode# \"a love of a lifetime\"?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel", + "position_in_chart", + "ranking" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "weekly rank for the episode", + "tv_series.weekly_rank" + ], + [ + "weekly rank for the episode", + "tv_series.position_in_chart" + ], + [ + "weekly rank for the episode", + "tv_series.ranking" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_series.weekly_rank" + ], + [ + 0, + "tv_series.position_in_chart" + ], + [ + 0, + "tv_series.ranking" + ] + ], + "linking_list_col": [ + [ + "tv_series.position_in_chart", + "tv_series.ranking" + ], + [ + "tv_series.weekly_rank", + "tv_series.ranking" + ], + [ + "tv_series.position_in_chart", + "tv_series.weekly_rank" + ] + ] + }, + { + "question": "what is the tv channel of #tv series with episode# \"a love of a lifetime\"? list the #tv channel's series name# .", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "show_name", + "program_name" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "TV series with Episode", + "tv_series.episode" + ], + [ + "TV Channel's series name", + "tv_channel.series_name" + ], + [ + "TV Channel's series name", + "tv_channel.show_name" + ], + [ + "TV Channel's series name", + "tv_channel.program_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_series.episode" + ], + [ + 1, + "tv_channel.series_name" + ], + [ + 1, + "tv_channel.show_name" + ], + [ + 1, + "tv_channel.program_name" + ] + ], + "linking_list_col": [ + [ + "tv_channel.show_name", + "tv_channel.program_name" + ], + [ + "tv_channel.series_name", + "tv_channel.program_name" + ], + [ + "tv_channel.show_name", + "tv_channel.series_name" + ] + ] + }, + { + "question": "what is the #name of the series# that has the #episode# \"a love of a lifetime\"?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "show_name", + "program_name" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "name of the series", + "tv_channel.series_name" + ], + [ + "name of the series", + "tv_channel.show_name" + ], + [ + "name of the series", + "tv_channel.program_name" + ], + [ + "episode", + "tv_series.episode" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.series_name" + ], + [ + 0, + "tv_channel.show_name" + ], + [ + 0, + "tv_channel.program_name" + ], + [ + 1, + "tv_series.episode" + ] + ], + "linking_list_col": [ + [ + "tv_channel.show_name", + "tv_channel.program_name" + ], + [ + "tv_channel.series_name", + "tv_channel.program_name" + ], + [ + "tv_channel.show_name", + "tv_channel.series_name" + ] + ] + }, + { + "question": "what is the #episode for the tv series named# \"sky radio\"?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel", + "part", + "chapter" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "episode for the TV series named", + "tv_series.episode" + ], + [ + "episode for the TV series named", + "tv_series.part" + ], + [ + "episode for the TV series named", + "tv_series.chapter" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_series.episode" + ], + [ + 0, + "tv_series.part" + ], + [ + 0, + "tv_series.chapter" + ] + ], + "linking_list_col": [ + [ + "tv_series.part", + "tv_series.chapter" + ], + [ + "tv_series.episode", + "tv_series.chapter" + ], + [ + "tv_series.part", + "tv_series.episode" + ] + ] + }, + { + "question": "how many cartoons did each #director# create?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel", + "director_name", + "filmmaker" + ] + }, + "linking_list": [ + [ + "director", + "cartoon.directed_by" + ], + [ + "director", + "cartoon.director_name" + ], + [ + "director", + "cartoon.filmmaker" + ] + ], + "linking_list_idx": [ + [ + 0, + "cartoon.directed_by" + ], + [ + 0, + "cartoon.director_name" + ], + [ + 0, + "cartoon.filmmaker" + ] + ], + "linking_list_col": [ + [ + "cartoon.director_name", + "cartoon.filmmaker" + ], + [ + "cartoon.directed_by", + "cartoon.filmmaker" + ], + [ + "cartoon.director_name", + "cartoon.directed_by" + ] + ] + }, + { + "question": "find the #package choice# and #series name of the tv channel# that has #high definition tv# .", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "subscription_option", + "tv_service_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "package choice", + "tv_channel.package_option" + ], + [ + "package choice", + "tv_channel.subscription_option" + ], + [ + "package choice", + "tv_channel.tv_service_option" + ], + [ + "series name of the TV channel", + "tv_channel.series_name" + ], + [ + "high definition TV", + "tv_channel.hight_definition_tv" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.package_option" + ], + [ + 0, + "tv_channel.subscription_option" + ], + [ + 0, + "tv_channel.tv_service_option" + ], + [ + 1, + "tv_channel.series_name" + ], + [ + 2, + "tv_channel.hight_definition_tv" + ] + ], + "linking_list_col": [ + [ + "tv_channel.subscription_option", + "tv_channel.tv_service_option" + ], + [ + "tv_channel.package_option", + "tv_channel.tv_service_option" + ], + [ + "tv_channel.subscription_option", + "tv_channel.package_option" + ] + ] + }, + { + "question": "what are the #package options# and the #name of the series for the tv channel# that supports high definition tv?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "subscription_option", + "tv_service_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "package options", + "tv_channel.package_option" + ], + [ + "package options", + "tv_channel.subscription_option" + ], + [ + "package options", + "tv_channel.tv_service_option" + ], + [ + "name of the series for the TV Channel", + "tv_channel.series_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.package_option" + ], + [ + 0, + "tv_channel.subscription_option" + ], + [ + 0, + "tv_channel.tv_service_option" + ], + [ + 1, + "tv_channel.series_name" + ] + ], + "linking_list_col": [ + [ + "tv_channel.subscription_option", + "tv_channel.tv_service_option" + ], + [ + "tv_channel.package_option", + "tv_channel.tv_service_option" + ], + [ + "tv_channel.subscription_option", + "tv_channel.package_option" + ] + ] + }, + { + "question": "what are the #countries# that have cartoons on tv that were #written by# todd casey?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "nation", + "territory" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "countries", + "tv_channel.country" + ], + [ + "countries", + "tv_channel.nation" + ], + [ + "countries", + "tv_channel.territory" + ], + [ + "written by", + "cartoon.written_by" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.country" + ], + [ + 0, + "tv_channel.nation" + ], + [ + 0, + "tv_channel.territory" + ], + [ + 1, + "cartoon.written_by" + ] + ], + "linking_list_col": [ + [ + "tv_channel.nation", + "tv_channel.territory" + ], + [ + "tv_channel.country", + "tv_channel.territory" + ], + [ + "tv_channel.nation", + "tv_channel.country" + ] + ] + }, + { + "question": "which #countries' tv channels# are not playing any cartoon written by todd casey?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "nation", + "territory" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "countries' tv channels", + "tv_channel.country" + ], + [ + "countries' tv channels", + "tv_channel.nation" + ], + [ + "countries' tv channels", + "tv_channel.territory" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.country" + ], + [ + 0, + "tv_channel.nation" + ], + [ + 0, + "tv_channel.territory" + ] + ], + "linking_list_col": [ + [ + "tv_channel.nation", + "tv_channel.territory" + ], + [ + "tv_channel.country", + "tv_channel.territory" + ], + [ + "tv_channel.nation", + "tv_channel.country" + ] + ] + }, + { + "question": "what are the #countries# that are not playing cartoons written by todd casey?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "nation", + "territory" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "countries", + "tv_channel.country" + ], + [ + "countries", + "tv_channel.nation" + ], + [ + "countries", + "tv_channel.territory" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.country" + ], + [ + 0, + "tv_channel.nation" + ], + [ + 0, + "tv_channel.territory" + ] + ], + "linking_list_col": [ + [ + "tv_channel.nation", + "tv_channel.territory" + ], + [ + "tv_channel.country", + "tv_channel.territory" + ], + [ + "tv_channel.nation", + "tv_channel.country" + ] + ] + }, + { + "question": "find the #series name# and #country# of the tv channel that is playing some cartoons directed by ben jones and michael chang?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "nation", + "territory" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "series name", + "tv_channel.series_name" + ], + [ + "country", + "tv_channel.country" + ], + [ + "country", + "tv_channel.nation" + ], + [ + "country", + "tv_channel.territory" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.series_name" + ], + [ + 1, + "tv_channel.country" + ], + [ + 1, + "tv_channel.nation" + ], + [ + 1, + "tv_channel.territory" + ] + ], + "linking_list_col": [ + [ + "tv_channel.nation", + "tv_channel.territory" + ], + [ + "tv_channel.country", + "tv_channel.territory" + ], + [ + "tv_channel.nation", + "tv_channel.country" + ] + ] + }, + { + "question": "what is the #series name# and #country of all tv channels# that are playing cartoons directed by ben jones and cartoons directed by michael chang?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "nation", + "territory" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "series name", + "tv_channel.series_name" + ], + [ + "country of all TV channels", + "tv_channel.country" + ], + [ + "country of all TV channels", + "tv_channel.nation" + ], + [ + "country of all TV channels", + "tv_channel.territory" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.series_name" + ], + [ + 1, + "tv_channel.country" + ], + [ + 1, + "tv_channel.nation" + ], + [ + 1, + "tv_channel.territory" + ] + ], + "linking_list_col": [ + [ + "tv_channel.nation", + "tv_channel.territory" + ], + [ + "tv_channel.country", + "tv_channel.territory" + ], + [ + "tv_channel.nation", + "tv_channel.country" + ] + ] + }, + { + "question": "find the #pixel aspect ratio# and #nation of the tv channels# that do not use #english# .", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "screen_aspect_ratio_par", + "image_aspect_ratio_par" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "pixel aspect ratio", + "tv_channel.pixel_aspect_ratio_par" + ], + [ + "pixel aspect ratio", + "tv_channel.screen_aspect_ratio_par" + ], + [ + "pixel aspect ratio", + "tv_channel.image_aspect_ratio_par" + ], + [ + "nation of the tv channels", + "tv_channel.country" + ], + [ + "English", + "tv_channel.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.pixel_aspect_ratio_par" + ], + [ + 0, + "tv_channel.screen_aspect_ratio_par" + ], + [ + 0, + "tv_channel.image_aspect_ratio_par" + ], + [ + 1, + "tv_channel.country" + ], + [ + 2, + "tv_channel.language" + ] + ], + "linking_list_col": [ + [ + "tv_channel.screen_aspect_ratio_par", + "tv_channel.image_aspect_ratio_par" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "tv_channel.image_aspect_ratio_par" + ], + [ + "tv_channel.screen_aspect_ratio_par", + "tv_channel.pixel_aspect_ratio_par" + ] + ] + }, + { + "question": "what is the #pixel aspect ratio# and #country of origin for all tv channels# that do not use english?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "screen_aspect_ratio_par", + "image_aspect_ratio_par" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "pixel aspect ratio", + "tv_channel.pixel_aspect_ratio_par" + ], + [ + "pixel aspect ratio", + "tv_channel.screen_aspect_ratio_par" + ], + [ + "pixel aspect ratio", + "tv_channel.image_aspect_ratio_par" + ], + [ + "country of origin for all TV channels", + "tv_channel.country" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.pixel_aspect_ratio_par" + ], + [ + 0, + "tv_channel.screen_aspect_ratio_par" + ], + [ + 0, + "tv_channel.image_aspect_ratio_par" + ], + [ + 1, + "tv_channel.country" + ] + ], + "linking_list_col": [ + [ + "tv_channel.screen_aspect_ratio_par", + "tv_channel.image_aspect_ratio_par" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "tv_channel.image_aspect_ratio_par" + ], + [ + "tv_channel.screen_aspect_ratio_par", + "tv_channel.pixel_aspect_ratio_par" + ] + ] + }, + { + "question": "find #id of the tv channels# that from the #countries# where have more than two tv channels.", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "channel_id", + "index" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "id of the tv channels", + "tv_channel.id" + ], + [ + "id of the tv channels", + "tv_channel.channel_id" + ], + [ + "id of the tv channels", + "tv_channel.index" + ], + [ + "countries", + "tv_channel.country" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.id" + ], + [ + 0, + "tv_channel.channel_id" + ], + [ + 0, + "tv_channel.index" + ], + [ + 1, + "tv_channel.country" + ] + ], + "linking_list_col": [ + [ + "tv_channel.channel_id", + "tv_channel.index" + ], + [ + "tv_channel.id", + "tv_channel.index" + ], + [ + "tv_channel.channel_id", + "tv_channel.id" + ] + ] + }, + { + "question": "what are the #ids of all tv channels# that have more than 2 tv channels?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "channel_id", + "index" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "ids of all tv channels", + "tv_channel.id" + ], + [ + "ids of all tv channels", + "tv_channel.channel_id" + ], + [ + "ids of all tv channels", + "tv_channel.index" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.id" + ], + [ + 0, + "tv_channel.channel_id" + ], + [ + 0, + "tv_channel.index" + ] + ], + "linking_list_col": [ + [ + "tv_channel.channel_id", + "tv_channel.index" + ], + [ + "tv_channel.id", + "tv_channel.index" + ], + [ + "tv_channel.channel_id", + "tv_channel.id" + ] + ] + }, + { + "question": "find the #id# of tv channels that do not play any cartoon directed by ben jones.", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "channel_id", + "index" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "id", + "tv_channel.id" + ], + [ + "id", + "tv_channel.channel_id" + ], + [ + "id", + "tv_channel.index" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.id" + ], + [ + 0, + "tv_channel.channel_id" + ], + [ + 0, + "tv_channel.index" + ] + ], + "linking_list_col": [ + [ + "tv_channel.channel_id", + "tv_channel.index" + ], + [ + "tv_channel.id", + "tv_channel.index" + ], + [ + "tv_channel.channel_id", + "tv_channel.id" + ] + ] + }, + { + "question": "what are the #ids# of the tv channels that do not have any cartoons directed by ben jones?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "channel_id", + "index" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "ids", + "tv_channel.id" + ], + [ + "ids", + "tv_channel.channel_id" + ], + [ + "ids", + "tv_channel.index" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.id" + ], + [ + 0, + "tv_channel.channel_id" + ], + [ + 0, + "tv_channel.index" + ] + ], + "linking_list_col": [ + [ + "tv_channel.channel_id", + "tv_channel.index" + ], + [ + "tv_channel.id", + "tv_channel.index" + ], + [ + "tv_channel.channel_id", + "tv_channel.id" + ] + ] + }, + { + "question": "find the #package option# of the tv channel that do not have any cartoon directed by ben jones.", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "subscription_option", + "tv_service_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "package option", + "tv_channel.package_option" + ], + [ + "package option", + "tv_channel.subscription_option" + ], + [ + "package option", + "tv_channel.tv_service_option" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.package_option" + ], + [ + 0, + "tv_channel.subscription_option" + ], + [ + 0, + "tv_channel.tv_service_option" + ] + ], + "linking_list_col": [ + [ + "tv_channel.subscription_option", + "tv_channel.tv_service_option" + ], + [ + "tv_channel.package_option", + "tv_channel.tv_service_option" + ], + [ + "tv_channel.subscription_option", + "tv_channel.package_option" + ] + ] + }, + { + "question": "what are the #package options of all tv channels# that are not playing any cartoons directed by ben jones?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "subscription_option", + "tv_service_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "package options of all tv channels", + "tv_channel.package_option" + ], + [ + "package options of all tv channels", + "tv_channel.subscription_option" + ], + [ + "package options of all tv channels", + "tv_channel.tv_service_option" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.package_option" + ], + [ + 0, + "tv_channel.subscription_option" + ], + [ + 0, + "tv_channel.tv_service_option" + ] + ], + "linking_list_col": [ + [ + "tv_channel.subscription_option", + "tv_channel.tv_service_option" + ], + [ + "tv_channel.package_option", + "tv_channel.tv_service_option" + ], + [ + "tv_channel.subscription_option", + "tv_channel.package_option" + ] + ] + }, + { + "question": "list the #earnings of poker players# in descending order.", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings", + "income", + "revenue" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "earnings of poker players", + "poker_player.earnings" + ], + [ + "earnings of poker players", + "poker_player.income" + ], + [ + "earnings of poker players", + "poker_player.revenue" + ] + ], + "linking_list_idx": [ + [ + 0, + "poker_player.earnings" + ], + [ + 0, + "poker_player.income" + ], + [ + 0, + "poker_player.revenue" + ] + ], + "linking_list_col": [ + [ + "poker_player.income", + "poker_player.revenue" + ], + [ + "poker_player.earnings", + "poker_player.revenue" + ], + [ + "poker_player.income", + "poker_player.earnings" + ] + ] + }, + { + "question": "what are the #earnings of poker players# , ordered descending by value?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings", + "income", + "revenue" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "earnings of poker players", + "poker_player.earnings" + ], + [ + "earnings of poker players", + "poker_player.income" + ], + [ + "earnings of poker players", + "poker_player.revenue" + ] + ], + "linking_list_idx": [ + [ + 0, + "poker_player.earnings" + ], + [ + 0, + "poker_player.income" + ], + [ + 0, + "poker_player.revenue" + ] + ], + "linking_list_col": [ + [ + "poker_player.income", + "poker_player.revenue" + ], + [ + "poker_player.earnings", + "poker_player.revenue" + ], + [ + "poker_player.income", + "poker_player.earnings" + ] + ] + }, + { + "question": "list the #final tables made# and the #best finishes of poker players# .", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings", + "last_round_table", + "endgame_table" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "final tables made", + "poker_player.final_table_made" + ], + [ + "final tables made", + "poker_player.last_round_table" + ], + [ + "final tables made", + "poker_player.endgame_table" + ], + [ + "best finishes of poker players", + "poker_player.best_finish" + ] + ], + "linking_list_idx": [ + [ + 0, + "poker_player.final_table_made" + ], + [ + 0, + "poker_player.last_round_table" + ], + [ + 0, + "poker_player.endgame_table" + ], + [ + 1, + "poker_player.best_finish" + ] + ], + "linking_list_col": [ + [ + "poker_player.last_round_table", + "poker_player.endgame_table" + ], + [ + "poker_player.final_table_made", + "poker_player.endgame_table" + ], + [ + "poker_player.last_round_table", + "poker_player.final_table_made" + ] + ] + }, + { + "question": "what are the #final tables made# and best finishes for all poker players?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings", + "last_round_table", + "endgame_table" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "final tables made", + "poker_player.final_table_made" + ], + [ + "final tables made", + "poker_player.last_round_table" + ], + [ + "final tables made", + "poker_player.endgame_table" + ] + ], + "linking_list_idx": [ + [ + 0, + "poker_player.final_table_made" + ], + [ + 0, + "poker_player.last_round_table" + ], + [ + 0, + "poker_player.endgame_table" + ] + ], + "linking_list_col": [ + [ + "poker_player.last_round_table", + "poker_player.endgame_table" + ], + [ + "poker_player.final_table_made", + "poker_player.endgame_table" + ], + [ + "poker_player.last_round_table", + "poker_player.final_table_made" + ] + ] + }, + { + "question": "return the #average earnings# across all poker players.", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings", + "income", + "revenue" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "average earnings", + "poker_player.earnings" + ], + [ + "average earnings", + "poker_player.income" + ], + [ + "average earnings", + "poker_player.revenue" + ] + ], + "linking_list_idx": [ + [ + 0, + "poker_player.earnings" + ], + [ + 0, + "poker_player.income" + ], + [ + 0, + "poker_player.revenue" + ] + ], + "linking_list_col": [ + [ + "poker_player.income", + "poker_player.revenue" + ], + [ + "poker_player.earnings", + "poker_player.revenue" + ], + [ + "poker_player.income", + "poker_player.earnings" + ] + ] + }, + { + "question": "what is the #money rank of the poker player# with the highest earnings?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings", + "cash_ranking", + "financial_position" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "money rank of the poker player", + "poker_player.money_rank" + ], + [ + "money rank of the poker player", + "poker_player.cash_ranking" + ], + [ + "money rank of the poker player", + "poker_player.financial_position" + ] + ], + "linking_list_idx": [ + [ + 0, + "poker_player.money_rank" + ], + [ + 0, + "poker_player.cash_ranking" + ], + [ + 0, + "poker_player.financial_position" + ] + ], + "linking_list_col": [ + [ + "poker_player.cash_ranking", + "poker_player.financial_position" + ], + [ + "poker_player.money_rank", + "poker_player.financial_position" + ], + [ + "poker_player.cash_ranking", + "poker_player.money_rank" + ] + ] + }, + { + "question": "return the #money rank of the player# with the greatest #earnings# .", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings", + "cash_ranking", + "financial_position" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "money rank of the player", + "poker_player.money_rank" + ], + [ + "money rank of the player", + "poker_player.cash_ranking" + ], + [ + "money rank of the player", + "poker_player.financial_position" + ], + [ + "earnings", + "poker_player.earnings" + ] + ], + "linking_list_idx": [ + [ + 0, + "poker_player.money_rank" + ], + [ + 0, + "poker_player.cash_ranking" + ], + [ + 0, + "poker_player.financial_position" + ], + [ + 1, + "poker_player.earnings" + ] + ], + "linking_list_col": [ + [ + "poker_player.cash_ranking", + "poker_player.financial_position" + ], + [ + "poker_player.money_rank", + "poker_player.financial_position" + ], + [ + "poker_player.cash_ranking", + "poker_player.money_rank" + ] + ] + }, + { + "question": "what is the #maximum number of final tables made# among #poker players with earnings# less than 200000?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings", + "last_round_table", + "endgame_table" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "maximum number of final tables made", + "poker_player.final_table_made" + ], + [ + "maximum number of final tables made", + "poker_player.last_round_table" + ], + [ + "maximum number of final tables made", + "poker_player.endgame_table" + ], + [ + "poker players with earnings", + "poker_player.earnings" + ] + ], + "linking_list_idx": [ + [ + 0, + "poker_player.final_table_made" + ], + [ + 0, + "poker_player.last_round_table" + ], + [ + 0, + "poker_player.endgame_table" + ], + [ + 1, + "poker_player.earnings" + ] + ], + "linking_list_col": [ + [ + "poker_player.last_round_table", + "poker_player.endgame_table" + ], + [ + "poker_player.final_table_made", + "poker_player.endgame_table" + ], + [ + "poker_player.last_round_table", + "poker_player.final_table_made" + ] + ] + }, + { + "question": "return the #maximum final tables made# across all poker players who have #earnings# below 200000.", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings", + "last_round_table", + "endgame_table" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "maximum final tables made", + "poker_player.final_table_made" + ], + [ + "maximum final tables made", + "poker_player.last_round_table" + ], + [ + "maximum final tables made", + "poker_player.endgame_table" + ], + [ + "earnings", + "poker_player.earnings" + ] + ], + "linking_list_idx": [ + [ + 0, + "poker_player.final_table_made" + ], + [ + 0, + "poker_player.last_round_table" + ], + [ + 0, + "poker_player.endgame_table" + ], + [ + 1, + "poker_player.earnings" + ] + ], + "linking_list_col": [ + [ + "poker_player.last_round_table", + "poker_player.endgame_table" + ], + [ + "poker_player.final_table_made", + "poker_player.endgame_table" + ], + [ + "poker_player.last_round_table", + "poker_player.final_table_made" + ] + ] + }, + { + "question": "return the #names of all the poker players# .", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height", + "full_name", + "complete_name" + ] + }, + "linking_list": [ + [ + "names of all the poker players", + "people.name" + ], + [ + "names of all the poker players", + "people.full_name" + ], + [ + "names of all the poker players", + "people.complete_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.name" + ], + [ + 0, + "people.full_name" + ], + [ + 0, + "people.complete_name" + ] + ], + "linking_list_col": [ + [ + "people.full_name", + "people.complete_name" + ], + [ + "people.name", + "people.complete_name" + ], + [ + "people.full_name", + "people.name" + ] + ] + }, + { + "question": "what are the #names of poker players# whose #earnings# is higher than 300000?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height", + "full_name", + "complete_name" + ] + }, + "linking_list": [ + [ + "names of poker players", + "people.name" + ], + [ + "names of poker players", + "people.full_name" + ], + [ + "names of poker players", + "people.complete_name" + ], + [ + "earnings", + "poker_player.earnings" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.name" + ], + [ + 0, + "people.full_name" + ], + [ + 0, + "people.complete_name" + ], + [ + 1, + "poker_player.earnings" + ] + ], + "linking_list_col": [ + [ + "people.full_name", + "people.complete_name" + ], + [ + "people.name", + "people.complete_name" + ], + [ + "people.full_name", + "people.name" + ] + ] + }, + { + "question": "give the #names of poker players# who have #earnings# above 300000.", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height", + "full_name", + "complete_name" + ] + }, + "linking_list": [ + [ + "names of poker players", + "people.name" + ], + [ + "names of poker players", + "people.full_name" + ], + [ + "names of poker players", + "people.complete_name" + ], + [ + "earnings", + "poker_player.earnings" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.name" + ], + [ + 0, + "people.full_name" + ], + [ + 0, + "people.complete_name" + ], + [ + 1, + "poker_player.earnings" + ] + ], + "linking_list_col": [ + [ + "people.full_name", + "people.complete_name" + ], + [ + "people.name", + "people.complete_name" + ], + [ + "people.full_name", + "people.name" + ] + ] + }, + { + "question": "list the #names of poker players# ordered by the #final tables made# in ascending order.", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height", + "full_name", + "complete_name" + ] + }, + "linking_list": [ + [ + "names of poker players", + "people.name" + ], + [ + "names of poker players", + "people.full_name" + ], + [ + "names of poker players", + "people.complete_name" + ], + [ + "final tables made", + "poker_player.final_table_made" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.name" + ], + [ + 0, + "people.full_name" + ], + [ + 0, + "people.complete_name" + ], + [ + 1, + "poker_player.final_table_made" + ] + ], + "linking_list_col": [ + [ + "people.full_name", + "people.complete_name" + ], + [ + "people.name", + "people.complete_name" + ], + [ + "people.full_name", + "people.name" + ] + ] + }, + { + "question": "what are the #names of poker players# , ordered ascending by the number of final tables they have made?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height", + "full_name", + "complete_name" + ] + }, + "linking_list": [ + [ + "names of poker players", + "people.name" + ], + [ + "names of poker players", + "people.full_name" + ], + [ + "names of poker players", + "people.complete_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.name" + ], + [ + 0, + "people.full_name" + ], + [ + 0, + "people.complete_name" + ] + ], + "linking_list_col": [ + [ + "people.full_name", + "people.complete_name" + ], + [ + "people.name", + "people.complete_name" + ], + [ + "people.full_name", + "people.name" + ] + ] + }, + { + "question": "what is the #birth date of the poker player# with the lowest earnings?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height", + "date_of_birth", + "birthday" + ] + }, + "linking_list": [ + [ + "birth date of the poker player", + "people.birth_date" + ], + [ + "birth date of the poker player", + "people.date_of_birth" + ], + [ + "birth date of the poker player", + "people.birthday" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.birth_date" + ], + [ + 0, + "people.date_of_birth" + ], + [ + 0, + "people.birthday" + ] + ], + "linking_list_col": [ + [ + "people.date_of_birth", + "people.birthday" + ], + [ + "people.birth_date", + "people.birthday" + ], + [ + "people.date_of_birth", + "people.birth_date" + ] + ] + }, + { + "question": "return the #birth date of the poker player# with the lowest #earnings# .", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height", + "date_of_birth", + "birthday" + ] + }, + "linking_list": [ + [ + "birth date of the poker player", + "people.birth_date" + ], + [ + "birth date of the poker player", + "people.date_of_birth" + ], + [ + "birth date of the poker player", + "people.birthday" + ], + [ + "earnings", + "poker_player.earnings" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.birth_date" + ], + [ + 0, + "people.date_of_birth" + ], + [ + 0, + "people.birthday" + ], + [ + 1, + "poker_player.earnings" + ] + ], + "linking_list_col": [ + [ + "people.date_of_birth", + "people.birthday" + ], + [ + "people.birth_date", + "people.birthday" + ], + [ + "people.date_of_birth", + "people.birth_date" + ] + ] + }, + { + "question": "return the #money rank of the poker player# with the greatest #height# .", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings", + "cash_ranking", + "financial_position" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "money rank of the poker player", + "poker_player.money_rank" + ], + [ + "money rank of the poker player", + "poker_player.cash_ranking" + ], + [ + "money rank of the poker player", + "poker_player.financial_position" + ], + [ + "height", + "people.height" + ] + ], + "linking_list_idx": [ + [ + 0, + "poker_player.money_rank" + ], + [ + 0, + "poker_player.cash_ranking" + ], + [ + 0, + "poker_player.financial_position" + ], + [ + 1, + "people.height" + ] + ], + "linking_list_col": [ + [ + "poker_player.cash_ranking", + "poker_player.financial_position" + ], + [ + "poker_player.money_rank", + "poker_player.financial_position" + ], + [ + "poker_player.cash_ranking", + "poker_player.money_rank" + ] + ] + }, + { + "question": "what is the #average earnings of poker players with height# higher than 200?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings", + "income", + "revenue" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "average earnings of poker players with height", + "poker_player.earnings" + ], + [ + "average earnings of poker players with height", + "poker_player.income" + ], + [ + "average earnings of poker players with height", + "poker_player.revenue" + ] + ], + "linking_list_idx": [ + [ + 0, + "poker_player.earnings" + ], + [ + 0, + "poker_player.income" + ], + [ + 0, + "poker_player.revenue" + ] + ], + "linking_list_col": [ + [ + "poker_player.income", + "poker_player.revenue" + ], + [ + "poker_player.earnings", + "poker_player.revenue" + ], + [ + "poker_player.income", + "poker_player.earnings" + ] + ] + }, + { + "question": "give #average earnings of poker players# who are #taller than 200# .", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings", + "income", + "revenue" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "average earnings of poker players", + "poker_player.earnings" + ], + [ + "average earnings of poker players", + "poker_player.income" + ], + [ + "average earnings of poker players", + "poker_player.revenue" + ], + [ + "taller than 200", + "people.height" + ] + ], + "linking_list_idx": [ + [ + 0, + "poker_player.earnings" + ], + [ + 0, + "poker_player.income" + ], + [ + 0, + "poker_player.revenue" + ], + [ + 1, + "people.height" + ] + ], + "linking_list_col": [ + [ + "poker_player.income", + "poker_player.revenue" + ], + [ + "poker_player.earnings", + "poker_player.revenue" + ], + [ + "poker_player.income", + "poker_player.earnings" + ] + ] + }, + { + "question": "what are the #names of poker players# in descending order of earnings?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height", + "full_name", + "complete_name" + ] + }, + "linking_list": [ + [ + "names of poker players", + "people.name" + ], + [ + "names of poker players", + "people.full_name" + ], + [ + "names of poker players", + "people.complete_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.name" + ], + [ + 0, + "people.full_name" + ], + [ + 0, + "people.complete_name" + ] + ], + "linking_list_col": [ + [ + "people.full_name", + "people.complete_name" + ], + [ + "people.name", + "people.complete_name" + ], + [ + "people.full_name", + "people.name" + ] + ] + }, + { + "question": "return the #names of poker players# sorted by their #earnings# descending.", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height", + "full_name", + "complete_name" + ] + }, + "linking_list": [ + [ + "names of poker players", + "people.name" + ], + [ + "names of poker players", + "people.full_name" + ], + [ + "names of poker players", + "people.complete_name" + ], + [ + "earnings", + "poker_player.earnings" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.name" + ], + [ + 0, + "people.full_name" + ], + [ + 0, + "people.complete_name" + ], + [ + 1, + "poker_player.earnings" + ] + ], + "linking_list_col": [ + [ + "people.full_name", + "people.complete_name" + ], + [ + "people.name", + "people.complete_name" + ], + [ + "people.full_name", + "people.name" + ] + ] + }, + { + "question": "what are different #nationalities of people# and the corresponding number of people from each nation?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height", + "country", + "citizenship" + ] + }, + "linking_list": [ + [ + "nationalities of people", + "people.nationality" + ], + [ + "nationalities of people", + "people.country" + ], + [ + "nationalities of people", + "people.citizenship" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.nationality" + ], + [ + 0, + "people.country" + ], + [ + 0, + "people.citizenship" + ] + ], + "linking_list_col": [ + [ + "people.country", + "people.citizenship" + ], + [ + "people.nationality", + "people.citizenship" + ], + [ + "people.country", + "people.nationality" + ] + ] + }, + { + "question": "give the #nationality# that is most common across all people.", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height", + "country", + "citizenship" + ] + }, + "linking_list": [ + [ + "nationality", + "people.nationality" + ], + [ + "nationality", + "people.country" + ], + [ + "nationality", + "people.citizenship" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.nationality" + ], + [ + 0, + "people.country" + ], + [ + 0, + "people.citizenship" + ] + ], + "linking_list_col": [ + [ + "people.country", + "people.citizenship" + ], + [ + "people.nationality", + "people.citizenship" + ], + [ + "people.country", + "people.nationality" + ] + ] + }, + { + "question": "what are the #nationalities# that are shared by at least two people?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height", + "country", + "citizenship" + ] + }, + "linking_list": [ + [ + "nationalities", + "people.nationality" + ], + [ + "nationalities", + "people.country" + ], + [ + "nationalities", + "people.citizenship" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.nationality" + ], + [ + 0, + "people.country" + ], + [ + 0, + "people.citizenship" + ] + ], + "linking_list_col": [ + [ + "people.country", + "people.citizenship" + ], + [ + "people.nationality", + "people.citizenship" + ], + [ + "people.country", + "people.nationality" + ] + ] + }, + { + "question": "return the #nationalities# for which there are two or more people.", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height", + "country", + "citizenship" + ] + }, + "linking_list": [ + [ + "nationalities", + "people.nationality" + ], + [ + "nationalities", + "people.country" + ], + [ + "nationalities", + "people.citizenship" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.nationality" + ], + [ + 0, + "people.country" + ], + [ + 0, + "people.citizenship" + ] + ], + "linking_list_col": [ + [ + "people.country", + "people.citizenship" + ], + [ + "people.nationality", + "people.citizenship" + ], + [ + "people.country", + "people.nationality" + ] + ] + }, + { + "question": "list the #names# and #birth dates of people# in ascending alphabetical order of name.", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height", + "date_of_birth", + "birthday" + ] + }, + "linking_list": [ + [ + "names", + "people.name" + ], + [ + "birth dates of people", + "people.birth_date" + ], + [ + "birth dates of people", + "people.date_of_birth" + ], + [ + "birth dates of people", + "people.birthday" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.name" + ], + [ + 1, + "people.birth_date" + ], + [ + 1, + "people.date_of_birth" + ], + [ + 1, + "people.birthday" + ] + ], + "linking_list_col": [ + [ + "people.date_of_birth", + "people.birthday" + ], + [ + "people.birth_date", + "people.birthday" + ], + [ + "people.date_of_birth", + "people.birth_date" + ] + ] + }, + { + "question": "what are the #names# and #birth dates of people# , ordered by their names in alphabetical order?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height", + "date_of_birth", + "birthday" + ] + }, + "linking_list": [ + [ + "names", + "people.name" + ], + [ + "birth dates of people", + "people.birth_date" + ], + [ + "birth dates of people", + "people.date_of_birth" + ], + [ + "birth dates of people", + "people.birthday" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.name" + ], + [ + 1, + "people.birth_date" + ], + [ + 1, + "people.date_of_birth" + ], + [ + 1, + "people.birthday" + ] + ], + "linking_list_col": [ + [ + "people.date_of_birth", + "people.birthday" + ], + [ + "people.birth_date", + "people.birthday" + ], + [ + "people.date_of_birth", + "people.birth_date" + ] + ] + }, + { + "question": "show #names of people# whose #nationality# is not \"russia\".", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height", + "full_name", + "complete_name" + ] + }, + "linking_list": [ + [ + "names of people", + "people.name" + ], + [ + "names of people", + "people.full_name" + ], + [ + "names of people", + "people.complete_name" + ], + [ + "nationality", + "people.nationality" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.name" + ], + [ + 0, + "people.full_name" + ], + [ + 0, + "people.complete_name" + ], + [ + 1, + "people.nationality" + ] + ], + "linking_list_col": [ + [ + "people.full_name", + "people.complete_name" + ], + [ + "people.name", + "people.complete_name" + ], + [ + "people.full_name", + "people.name" + ] + ] + }, + { + "question": "what are the #names of people# who are not from russia?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height", + "full_name", + "complete_name" + ] + }, + "linking_list": [ + [ + "names of people", + "people.name" + ], + [ + "names of people", + "people.full_name" + ], + [ + "names of people", + "people.complete_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.name" + ], + [ + 0, + "people.full_name" + ], + [ + 0, + "people.complete_name" + ] + ], + "linking_list_col": [ + [ + "people.full_name", + "people.complete_name" + ], + [ + "people.name", + "people.complete_name" + ], + [ + "people.full_name", + "people.name" + ] + ] + }, + { + "question": "list the #names of people# that are not poker players.", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height", + "full_name", + "complete_name" + ] + }, + "linking_list": [ + [ + "names of people", + "people.name" + ], + [ + "names of people", + "people.full_name" + ], + [ + "names of people", + "people.complete_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.name" + ], + [ + 0, + "people.full_name" + ], + [ + 0, + "people.complete_name" + ] + ], + "linking_list_col": [ + [ + "people.full_name", + "people.complete_name" + ], + [ + "people.name", + "people.complete_name" + ], + [ + "people.full_name", + "people.name" + ] + ] + }, + { + "question": "what are the #names of people# who do not play poker?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height", + "full_name", + "complete_name" + ] + }, + "linking_list": [ + [ + "names of people", + "people.name" + ], + [ + "names of people", + "people.full_name" + ], + [ + "names of people", + "people.complete_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.name" + ], + [ + 0, + "people.full_name" + ], + [ + 0, + "people.complete_name" + ] + ], + "linking_list_col": [ + [ + "people.full_name", + "people.complete_name" + ], + [ + "people.name", + "people.complete_name" + ], + [ + "people.full_name", + "people.name" + ] + ] + }, + { + "question": "how many #distinct nationalities# are there?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height", + "country", + "citizenship" + ] + }, + "linking_list": [ + [ + "distinct nationalities", + "people.nationality" + ], + [ + "distinct nationalities", + "people.country" + ], + [ + "distinct nationalities", + "people.citizenship" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.nationality" + ], + [ + 0, + "people.country" + ], + [ + 0, + "people.citizenship" + ] + ], + "linking_list_col": [ + [ + "people.country", + "people.citizenship" + ], + [ + "people.nationality", + "people.citizenship" + ], + [ + "people.country", + "people.nationality" + ] + ] + }, + { + "question": "count the number of different #nationalities# .", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height", + "country", + "citizenship" + ] + }, + "linking_list": [ + [ + "nationalities", + "people.nationality" + ], + [ + "nationalities", + "people.country" + ], + [ + "nationalities", + "people.citizenship" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.nationality" + ], + [ + 0, + "people.country" + ], + [ + 0, + "people.citizenship" + ] + ], + "linking_list_col": [ + [ + "people.country", + "people.citizenship" + ], + [ + "people.nationality", + "people.citizenship" + ], + [ + "people.country", + "people.nationality" + ] + ] + }, + { + "question": "list the #vote ids# , #phone numbers# and #states of all votes# .", + "db_schema": { + "area_code_state": [ + "area_code", + "state" + ], + "contestants": [ + "contestant_number", + "contestant_name" + ], + "votes": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created", + "province", + "territory" + ] + }, + "linking_list": [ + [ + "vote ids", + "votes.vote_id" + ], + [ + "phone numbers", + "votes.phone_number" + ], + [ + "states of all votes", + "votes.state" + ], + [ + "states of all votes", + "votes.province" + ], + [ + "states of all votes", + "votes.territory" + ] + ], + "linking_list_idx": [ + [ + 0, + "votes.vote_id" + ], + [ + 1, + "votes.phone_number" + ], + [ + 2, + "votes.state" + ], + [ + 2, + "votes.province" + ], + [ + 2, + "votes.territory" + ] + ], + "linking_list_col": [ + [ + "votes.province", + "votes.territory" + ], + [ + "votes.state", + "votes.territory" + ], + [ + "votes.province", + "votes.state" + ] + ] + }, + { + "question": "what is #last date created of votes# from the #state# 'ca'?", + "db_schema": { + "area_code_state": [ + "area_code", + "state" + ], + "contestants": [ + "contestant_number", + "contestant_name" + ], + "votes": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created", + "generated", + "produced" + ] + }, + "linking_list": [ + [ + "last date created of votes", + "votes.created" + ], + [ + "last date created of votes", + "votes.generated" + ], + [ + "last date created of votes", + "votes.produced" + ], + [ + "state", + "votes.state" + ] + ], + "linking_list_idx": [ + [ + 0, + "votes.created" + ], + [ + 0, + "votes.generated" + ], + [ + 0, + "votes.produced" + ], + [ + 1, + "votes.state" + ] + ], + "linking_list_col": [ + [ + "votes.generated", + "votes.produced" + ], + [ + "votes.created", + "votes.produced" + ], + [ + "votes.generated", + "votes.created" + ] + ] + }, + { + "question": "what are the #names of the contestants# whose names are not 'jessie alloway'", + "db_schema": { + "area_code_state": [ + "area_code", + "state" + ], + "contestants": [ + "contestant_number", + "contestant_name", + "fullname", + "applicant_name" + ], + "votes": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ] + }, + "linking_list": [ + [ + "names of the contestants", + "contestants.contestant_name" + ], + [ + "names of the contestants", + "contestants.fullname" + ], + [ + "names of the contestants", + "contestants.applicant_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "contestants.contestant_name" + ], + [ + 0, + "contestants.fullname" + ], + [ + 0, + "contestants.applicant_name" + ] + ], + "linking_list_col": [ + [ + "contestants.fullname", + "contestants.applicant_name" + ], + [ + "contestants.contestant_name", + "contestants.applicant_name" + ], + [ + "contestants.fullname", + "contestants.contestant_name" + ] + ] + }, + { + "question": "what are the distinct #states# and create time of all votes?", + "db_schema": { + "area_code_state": [ + "area_code", + "state" + ], + "contestants": [ + "contestant_number", + "contestant_name" + ], + "votes": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created", + "province", + "territory" + ] + }, + "linking_list": [ + [ + "states", + "votes.state" + ], + [ + "states", + "votes.province" + ], + [ + "states", + "votes.territory" + ] + ], + "linking_list_idx": [ + [ + 0, + "votes.state" + ], + [ + 0, + "votes.province" + ], + [ + 0, + "votes.territory" + ] + ], + "linking_list_col": [ + [ + "votes.province", + "votes.territory" + ], + [ + "votes.state", + "votes.territory" + ], + [ + "votes.province", + "votes.state" + ] + ] + }, + { + "question": "what is the #area code# in which the most voters voted?", + "db_schema": { + "area_code_state": [ + "area_code", + "state", + "zip_code", + "postal_code" + ], + "contestants": [ + "contestant_number", + "contestant_name" + ], + "votes": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ] + }, + "linking_list": [ + [ + "area code", + "area_code_state.area_code" + ], + [ + "area code", + "area_code_state.zip_code" + ], + [ + "area code", + "area_code_state.postal_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "area_code_state.area_code" + ], + [ + 0, + "area_code_state.zip_code" + ], + [ + 0, + "area_code_state.postal_code" + ] + ], + "linking_list_col": [ + [ + "area_code_state.zip_code", + "area_code_state.postal_code" + ], + [ + "area_code_state.area_code", + "area_code_state.postal_code" + ], + [ + "area_code_state.zip_code", + "area_code_state.area_code" + ] + ] + }, + { + "question": "what are the #create dates# , #states# , and #phone numbers# of the votes that were for the contestant named 'tabatha gehling'?", + "db_schema": { + "area_code_state": [ + "area_code", + "state" + ], + "contestants": [ + "contestant_number", + "contestant_name" + ], + "votes": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created", + "generated", + "produced" + ] + }, + "linking_list": [ + [ + "create dates", + "votes.created" + ], + [ + "create dates", + "votes.generated" + ], + [ + "create dates", + "votes.produced" + ], + [ + "states", + "votes.state" + ], + [ + "phone numbers", + "votes.phone_number" + ] + ], + "linking_list_idx": [ + [ + 0, + "votes.created" + ], + [ + 0, + "votes.generated" + ], + [ + 0, + "votes.produced" + ], + [ + 1, + "votes.state" + ], + [ + 2, + "votes.phone_number" + ] + ], + "linking_list_col": [ + [ + "votes.generated", + "votes.produced" + ], + [ + "votes.created", + "votes.produced" + ], + [ + "votes.generated", + "votes.created" + ] + ] + }, + { + "question": "list the #area codes# in which voters voted both for the #contestant# 'tabatha gehling' and the contestant 'kelly clauss'.", + "db_schema": { + "area_code_state": [ + "area_code", + "state", + "zip_code", + "postal_code" + ], + "contestants": [ + "contestant_number", + "contestant_name" + ], + "votes": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ] + }, + "linking_list": [ + [ + "area codes", + "area_code_state.area_code" + ], + [ + "area codes", + "area_code_state.zip_code" + ], + [ + "area codes", + "area_code_state.postal_code" + ], + [ + "contestant", + "contestants.contestant_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "area_code_state.area_code" + ], + [ + 0, + "area_code_state.zip_code" + ], + [ + 0, + "area_code_state.postal_code" + ], + [ + 1, + "contestants.contestant_name" + ] + ], + "linking_list_col": [ + [ + "area_code_state.zip_code", + "area_code_state.postal_code" + ], + [ + "area_code_state.area_code", + "area_code_state.postal_code" + ], + [ + "area_code_state.zip_code", + "area_code_state.area_code" + ] + ] + }, + { + "question": "what are the #names of all the countries# that became #independent# after 1950?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "nation", + "title" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "names of all the countries", + "country.name" + ], + [ + "names of all the countries", + "country.nation" + ], + [ + "names of all the countries", + "country.title" + ], + [ + "independent", + "country.indepyear" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "country.nation" + ], + [ + 0, + "country.title" + ], + [ + 1, + "country.indepyear" + ] + ], + "linking_list_col": [ + [ + "country.nation", + "country.title" + ], + [ + "country.name", + "country.title" + ], + [ + "country.nation", + "country.name" + ] + ] + }, + { + "question": "give the #names of the nations# that were #founded after 1950# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "nation", + "title" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "names of the nations", + "country.name" + ], + [ + "names of the nations", + "country.nation" + ], + [ + "names of the nations", + "country.title" + ], + [ + "founded after 1950", + "country.indepyear" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "country.nation" + ], + [ + 0, + "country.title" + ], + [ + 1, + "country.indepyear" + ] + ], + "linking_list_col": [ + [ + "country.nation", + "country.title" + ], + [ + "country.name", + "country.title" + ], + [ + "country.nation", + "country.name" + ] + ] + }, + { + "question": "how much #surface area# do the countires in the carribean cover together?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "land_area", + "extent" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "surface area", + "country.surfacearea" + ], + [ + "surface area", + "country.land_area" + ], + [ + "surface area", + "country.extent" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.surfacearea" + ], + [ + 0, + "country.land_area" + ], + [ + 0, + "country.extent" + ] + ], + "linking_list_col": [ + [ + "country.land_area", + "country.extent" + ], + [ + "country.surfacearea", + "country.extent" + ], + [ + "country.land_area", + "country.surfacearea" + ] + ] + }, + { + "question": "which #continent is anguilla# in?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "mainland", + "continent_name" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "continent is Anguilla", + "country.continent" + ], + [ + "continent is Anguilla", + "country.mainland" + ], + [ + "continent is Anguilla", + "country.continent_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.continent" + ], + [ + 0, + "country.mainland" + ], + [ + 0, + "country.continent_name" + ] + ], + "linking_list_col": [ + [ + "country.mainland", + "country.continent_name" + ], + [ + "country.continent", + "country.continent_name" + ], + [ + "country.mainland", + "country.continent" + ] + ] + }, + { + "question": "what is the #continent name# which #anguilla# belongs to?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "mainland", + "continent_name" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "continent name", + "country.continent" + ], + [ + "continent name", + "country.mainland" + ], + [ + "continent name", + "country.continent_name" + ], + [ + "Anguilla", + "country.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.continent" + ], + [ + 0, + "country.mainland" + ], + [ + 0, + "country.continent_name" + ], + [ + 1, + "country.name" + ] + ], + "linking_list_col": [ + [ + "country.mainland", + "country.continent_name" + ], + [ + "country.continent", + "country.continent_name" + ], + [ + "country.mainland", + "country.continent" + ] + ] + }, + { + "question": "what #region is kabul# in?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "area", + "district" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "region is Kabul", + "country.region" + ], + [ + "region is Kabul", + "country.area" + ], + [ + "region is Kabul", + "country.district" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.region" + ], + [ + 0, + "country.area" + ], + [ + 0, + "country.district" + ] + ], + "linking_list_col": [ + [ + "country.area", + "country.district" + ], + [ + "country.region", + "country.district" + ], + [ + "country.area", + "country.region" + ] + ] + }, + { + "question": "which #language# is the most popular in aruba?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage", + "tongue", + "dialect" + ] + }, + "linking_list": [ + [ + "language", + "countrylanguage.language" + ], + [ + "language", + "countrylanguage.tongue" + ], + [ + "language", + "countrylanguage.dialect" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "countrylanguage.tongue" + ], + [ + 0, + "countrylanguage.dialect" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.tongue", + "countrylanguage.dialect" + ], + [ + "countrylanguage.language", + "countrylanguage.dialect" + ], + [ + "countrylanguage.tongue", + "countrylanguage.language" + ] + ] + }, + { + "question": "what #language# is predominantly spoken in aruba?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage", + "tongue", + "dialect" + ] + }, + "linking_list": [ + [ + "language", + "countrylanguage.language" + ], + [ + "language", + "countrylanguage.tongue" + ], + [ + "language", + "countrylanguage.dialect" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "countrylanguage.tongue" + ], + [ + 0, + "countrylanguage.dialect" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.tongue", + "countrylanguage.dialect" + ], + [ + "countrylanguage.language", + "countrylanguage.dialect" + ], + [ + "countrylanguage.tongue", + "countrylanguage.language" + ] + ] + }, + { + "question": "give me brazil\u2019s #population# and #life expectancies# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "life_length", + "life_span" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "population", + "country.population" + ], + [ + "life expectancies", + "country.lifeexpectancy" + ], + [ + "life expectancies", + "country.life_length" + ], + [ + "life expectancies", + "country.life_span" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.population" + ], + [ + 1, + "country.lifeexpectancy" + ], + [ + 1, + "country.life_length" + ], + [ + 1, + "country.life_span" + ] + ], + "linking_list_col": [ + [ + "country.life_length", + "country.life_span" + ], + [ + "country.lifeexpectancy", + "country.life_span" + ], + [ + "country.life_length", + "country.lifeexpectancy" + ] + ] + }, + { + "question": "what are the #region# and population of angola?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "area", + "district" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "region", + "country.region" + ], + [ + "region", + "country.area" + ], + [ + "region", + "country.district" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.region" + ], + [ + 0, + "country.area" + ], + [ + 0, + "country.district" + ] + ], + "linking_list_col": [ + [ + "country.area", + "country.district" + ], + [ + "country.region", + "country.district" + ], + [ + "country.area", + "country.region" + ] + ] + }, + { + "question": "what #region# does #angola# belong to and what is its population?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "area", + "district" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "region", + "country.region" + ], + [ + "region", + "country.area" + ], + [ + "region", + "country.district" + ], + [ + "Angola", + "country.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.region" + ], + [ + 0, + "country.area" + ], + [ + 0, + "country.district" + ], + [ + 1, + "country.name" + ] + ], + "linking_list_col": [ + [ + "country.area", + "country.district" + ], + [ + "country.region", + "country.district" + ], + [ + "country.area", + "country.region" + ] + ] + }, + { + "question": "what is the #name of country# that has the shortest life expectancy in asia?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "nation", + "title" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "name of country", + "country.name" + ], + [ + "name of country", + "country.nation" + ], + [ + "name of country", + "country.title" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "country.nation" + ], + [ + 0, + "country.title" + ] + ], + "linking_list_col": [ + [ + "country.nation", + "country.title" + ], + [ + "country.name", + "country.title" + ], + [ + "country.nation", + "country.name" + ] + ] + }, + { + "question": "give the #name of the country in asia# with the lowest #life expectancy# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "nation", + "title" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "name of the country in Asia", + "country.name" + ], + [ + "name of the country in Asia", + "country.nation" + ], + [ + "name of the country in Asia", + "country.title" + ], + [ + "life expectancy", + "country.lifeexpectancy" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "country.nation" + ], + [ + 0, + "country.title" + ], + [ + 1, + "country.lifeexpectancy" + ] + ], + "linking_list_col": [ + [ + "country.nation", + "country.title" + ], + [ + "country.name", + "country.title" + ], + [ + "country.nation", + "country.name" + ] + ] + }, + { + "question": "how many #people# live in #asia# , and what is the #largest gnp# among them?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "gross_national_product", + "national_income" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "people", + "country.population" + ], + [ + "Asia", + "country.continent" + ], + [ + "largest GNP", + "country.gnp" + ], + [ + "largest GNP", + "country.gross_national_product" + ], + [ + "largest GNP", + "country.national_income" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.population" + ], + [ + 1, + "country.continent" + ], + [ + 2, + "country.gnp" + ], + [ + 2, + "country.gross_national_product" + ], + [ + 2, + "country.national_income" + ] + ], + "linking_list_col": [ + [ + "country.gross_national_product", + "country.national_income" + ], + [ + "country.gnp", + "country.national_income" + ], + [ + "country.gross_national_product", + "country.gnp" + ] + ] + }, + { + "question": "what is the #average life expectancy in african countries# that are republics?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "life_length", + "life_span" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "average life expectancy in African countries", + "country.lifeexpectancy" + ], + [ + "average life expectancy in African countries", + "country.life_length" + ], + [ + "average life expectancy in African countries", + "country.life_span" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.lifeexpectancy" + ], + [ + 0, + "country.life_length" + ], + [ + 0, + "country.life_span" + ] + ], + "linking_list_col": [ + [ + "country.life_length", + "country.life_span" + ], + [ + "country.lifeexpectancy", + "country.life_span" + ], + [ + "country.life_length", + "country.lifeexpectancy" + ] + ] + }, + { + "question": "give the #average life expectancy for countries in africa# which are republics?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "life_length", + "life_span" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "average life expectancy for countries in Africa", + "country.lifeexpectancy" + ], + [ + "average life expectancy for countries in Africa", + "country.life_length" + ], + [ + "average life expectancy for countries in Africa", + "country.life_span" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.lifeexpectancy" + ], + [ + 0, + "country.life_length" + ], + [ + 0, + "country.life_span" + ] + ], + "linking_list_col": [ + [ + "country.life_length", + "country.life_span" + ], + [ + "country.lifeexpectancy", + "country.life_span" + ], + [ + "country.life_length", + "country.lifeexpectancy" + ] + ] + }, + { + "question": "give the #total surface area# covered by #countries in asia# or #europe# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "land_area", + "extent" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "total surface area", + "country.surfacearea" + ], + [ + "total surface area", + "country.land_area" + ], + [ + "total surface area", + "country.extent" + ], + [ + "countries in Asia", + "country.continent" + ], + [ + "Europe", + "country.continent" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.surfacearea" + ], + [ + 0, + "country.land_area" + ], + [ + 0, + "country.extent" + ], + [ + 1, + "country.continent" + ], + [ + 2, + "country.continent" + ] + ], + "linking_list_col": [ + [ + "country.land_area", + "country.extent" + ], + [ + "country.surfacearea", + "country.extent" + ], + [ + "country.land_area", + "country.surfacearea" + ] + ] + }, + { + "question": "how many #people# live in gelderland district?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population", + "total_inhabitants", + "number_of_residents" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "people", + "city.population" + ], + [ + "people", + "city.total_inhabitants" + ], + [ + "people", + "city.number_of_residents" + ] + ], + "linking_list_idx": [ + [ + 0, + "city.population" + ], + [ + 0, + "city.total_inhabitants" + ], + [ + 0, + "city.number_of_residents" + ] + ], + "linking_list_col": [ + [ + "city.total_inhabitants", + "city.number_of_residents" + ], + [ + "city.population", + "city.number_of_residents" + ], + [ + "city.total_inhabitants", + "city.population" + ] + ] + }, + { + "question": "what is the #average gnp# and #total population# in all nations whose #government# is us territory?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "gross_national_product", + "national_income" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "average GNP", + "country.gnp" + ], + [ + "average GNP", + "country.gross_national_product" + ], + [ + "average GNP", + "country.national_income" + ], + [ + "total population", + "country.population" + ], + [ + "government", + "country.governmentform" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.gnp" + ], + [ + 0, + "country.gross_national_product" + ], + [ + 0, + "country.national_income" + ], + [ + 1, + "country.population" + ], + [ + 2, + "country.governmentform" + ] + ], + "linking_list_col": [ + [ + "country.gross_national_product", + "country.national_income" + ], + [ + "country.gnp", + "country.national_income" + ], + [ + "country.gross_national_product", + "country.gnp" + ] + ] + }, + { + "question": "give the #mean gnp# and #total population of nations# which are considered #us territory# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "gross_national_product", + "national_income" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "mean GNP", + "country.gnp" + ], + [ + "mean GNP", + "country.gross_national_product" + ], + [ + "mean GNP", + "country.national_income" + ], + [ + "total population of nations", + "country.population" + ], + [ + "US territory", + "country.governmentform" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.gnp" + ], + [ + 0, + "country.gross_national_product" + ], + [ + 0, + "country.national_income" + ], + [ + 1, + "country.population" + ], + [ + 2, + "country.governmentform" + ] + ], + "linking_list_col": [ + [ + "country.gross_national_product", + "country.national_income" + ], + [ + "country.gnp", + "country.national_income" + ], + [ + "country.gross_national_product", + "country.gnp" + ] + ] + }, + { + "question": "how many #unique languages# are spoken in the world?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage", + "tongue", + "dialect" + ] + }, + "linking_list": [ + [ + "unique languages", + "countrylanguage.language" + ], + [ + "unique languages", + "countrylanguage.tongue" + ], + [ + "unique languages", + "countrylanguage.dialect" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "countrylanguage.tongue" + ], + [ + 0, + "countrylanguage.dialect" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.tongue", + "countrylanguage.dialect" + ], + [ + "countrylanguage.language", + "countrylanguage.dialect" + ], + [ + "countrylanguage.tongue", + "countrylanguage.language" + ] + ] + }, + { + "question": "what is the number of #distinct languages# used around the world?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage", + "tongue", + "dialect" + ] + }, + "linking_list": [ + [ + "distinct languages", + "countrylanguage.language" + ], + [ + "distinct languages", + "countrylanguage.tongue" + ], + [ + "distinct languages", + "countrylanguage.dialect" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "countrylanguage.tongue" + ], + [ + 0, + "countrylanguage.dialect" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.tongue", + "countrylanguage.dialect" + ], + [ + "countrylanguage.language", + "countrylanguage.dialect" + ], + [ + "countrylanguage.tongue", + "countrylanguage.language" + ] + ] + }, + { + "question": "how many #type of governments# are in africa?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "ruling_system", + "political_system" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "type of governments", + "country.governmentform" + ], + [ + "type of governments", + "country.ruling_system" + ], + [ + "type of governments", + "country.political_system" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.governmentform" + ], + [ + 0, + "country.ruling_system" + ], + [ + 0, + "country.political_system" + ] + ], + "linking_list_col": [ + [ + "country.ruling_system", + "country.political_system" + ], + [ + "country.governmentform", + "country.political_system" + ], + [ + "country.ruling_system", + "country.governmentform" + ] + ] + }, + { + "question": "how many different #forms of governments# are there in africa?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "ruling_system", + "political_system" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "forms of governments", + "country.governmentform" + ], + [ + "forms of governments", + "country.ruling_system" + ], + [ + "forms of governments", + "country.political_system" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.governmentform" + ], + [ + 0, + "country.ruling_system" + ], + [ + 0, + "country.political_system" + ] + ], + "linking_list_col": [ + [ + "country.ruling_system", + "country.political_system" + ], + [ + "country.governmentform", + "country.political_system" + ], + [ + "country.ruling_system", + "country.governmentform" + ] + ] + }, + { + "question": "what is the total number of #languages# used in aruba?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage", + "tongue", + "dialect" + ] + }, + "linking_list": [ + [ + "languages", + "countrylanguage.language" + ], + [ + "languages", + "countrylanguage.tongue" + ], + [ + "languages", + "countrylanguage.dialect" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "countrylanguage.tongue" + ], + [ + 0, + "countrylanguage.dialect" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.tongue", + "countrylanguage.dialect" + ], + [ + "countrylanguage.language", + "countrylanguage.dialect" + ], + [ + "countrylanguage.tongue", + "countrylanguage.language" + ] + ] + }, + { + "question": "how many #languages# are spoken in aruba?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage", + "tongue", + "dialect" + ] + }, + "linking_list": [ + [ + "languages", + "countrylanguage.language" + ], + [ + "languages", + "countrylanguage.tongue" + ], + [ + "languages", + "countrylanguage.dialect" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "countrylanguage.tongue" + ], + [ + 0, + "countrylanguage.dialect" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.tongue", + "countrylanguage.dialect" + ], + [ + "countrylanguage.language", + "countrylanguage.dialect" + ], + [ + "countrylanguage.tongue", + "countrylanguage.language" + ] + ] + }, + { + "question": "what is #name of the country# that speaks the largest number of languages?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "nation", + "title" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "name of the country", + "country.name" + ], + [ + "name of the country", + "country.nation" + ], + [ + "name of the country", + "country.title" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "country.nation" + ], + [ + 0, + "country.title" + ] + ], + "linking_list_col": [ + [ + "country.nation", + "country.title" + ], + [ + "country.name", + "country.title" + ], + [ + "country.nation", + "country.name" + ] + ] + }, + { + "question": "give the #name of the nation# that uses the greatest amount of languages.", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "nation", + "title" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "name of the nation", + "country.name" + ], + [ + "name of the nation", + "country.nation" + ], + [ + "name of the nation", + "country.title" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "country.nation" + ], + [ + 0, + "country.title" + ] + ], + "linking_list_col": [ + [ + "country.nation", + "country.title" + ], + [ + "country.name", + "country.title" + ], + [ + "country.nation", + "country.name" + ] + ] + }, + { + "question": "which #continent# has the most diverse languages?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "mainland", + "continent_name" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "continent", + "country.continent" + ], + [ + "continent", + "country.mainland" + ], + [ + "continent", + "country.continent_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.continent" + ], + [ + 0, + "country.mainland" + ], + [ + 0, + "country.continent_name" + ] + ], + "linking_list_col": [ + [ + "country.mainland", + "country.continent_name" + ], + [ + "country.continent", + "country.continent_name" + ], + [ + "country.mainland", + "country.continent" + ] + ] + }, + { + "question": "which #continent# speaks the most languages?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "mainland", + "continent_name" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "continent", + "country.continent" + ], + [ + "continent", + "country.mainland" + ], + [ + "continent", + "country.continent_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.continent" + ], + [ + 0, + "country.mainland" + ], + [ + 0, + "country.continent_name" + ] + ], + "linking_list_col": [ + [ + "country.mainland", + "country.continent_name" + ], + [ + "country.continent", + "country.continent_name" + ], + [ + "country.mainland", + "country.continent" + ] + ] + }, + { + "question": "what are the #names of nations# speak both #english# and french?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "nation", + "title" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "names of nations", + "country.name" + ], + [ + "names of nations", + "country.nation" + ], + [ + "names of nations", + "country.title" + ], + [ + "English", + "countrylanguage.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "country.nation" + ], + [ + 0, + "country.title" + ], + [ + 1, + "countrylanguage.language" + ] + ], + "linking_list_col": [ + [ + "country.nation", + "country.title" + ], + [ + "country.name", + "country.title" + ], + [ + "country.nation", + "country.name" + ] + ] + }, + { + "question": "give the #names of nations# that speak both #english# and #french# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "nation", + "title" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "names of nations", + "country.name" + ], + [ + "names of nations", + "country.nation" + ], + [ + "names of nations", + "country.title" + ], + [ + "English", + "countrylanguage.language" + ], + [ + "French", + "countrylanguage.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "country.nation" + ], + [ + 0, + "country.title" + ], + [ + 1, + "countrylanguage.language" + ], + [ + 2, + "countrylanguage.language" + ] + ], + "linking_list_col": [ + [ + "country.nation", + "country.title" + ], + [ + "country.name", + "country.title" + ], + [ + "country.nation", + "country.name" + ] + ] + }, + { + "question": "what are the #names of nations# where both #english# and #french# are official languages?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "nation", + "title" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "names of nations", + "country.name" + ], + [ + "names of nations", + "country.nation" + ], + [ + "names of nations", + "country.title" + ], + [ + "English", + "countrylanguage.language" + ], + [ + "French", + "countrylanguage.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "country.nation" + ], + [ + 0, + "country.title" + ], + [ + 1, + "countrylanguage.language" + ], + [ + 2, + "countrylanguage.language" + ] + ], + "linking_list_col": [ + [ + "country.nation", + "country.title" + ], + [ + "country.name", + "country.title" + ], + [ + "country.nation", + "country.name" + ] + ] + }, + { + "question": "give the #names of countries with english# and #french as official languages# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "nation", + "title" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "names of countries with English", + "country.name" + ], + [ + "names of countries with English", + "country.nation" + ], + [ + "names of countries with English", + "country.title" + ], + [ + "French as official languages", + "countrylanguage.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "country.nation" + ], + [ + 0, + "country.title" + ], + [ + 1, + "countrylanguage.language" + ] + ], + "linking_list_col": [ + [ + "country.nation", + "country.title" + ], + [ + "country.name", + "country.title" + ], + [ + "country.nation", + "country.name" + ] + ] + }, + { + "question": "what is the number of distinct #continents# where #chinese# is spoken?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "mainland", + "continent_name" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "continents", + "country.continent" + ], + [ + "continents", + "country.mainland" + ], + [ + "continents", + "country.continent_name" + ], + [ + "Chinese", + "countrylanguage.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.continent" + ], + [ + 0, + "country.mainland" + ], + [ + 0, + "country.continent_name" + ], + [ + 1, + "countrylanguage.language" + ] + ], + "linking_list_col": [ + [ + "country.mainland", + "country.continent_name" + ], + [ + "country.continent", + "country.continent_name" + ], + [ + "country.mainland", + "country.continent" + ] + ] + }, + { + "question": "how many #continents# speak chinese?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "mainland", + "continent_name" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "continents", + "country.continent" + ], + [ + "continents", + "country.mainland" + ], + [ + "continents", + "country.continent_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.continent" + ], + [ + 0, + "country.mainland" + ], + [ + 0, + "country.continent_name" + ] + ], + "linking_list_col": [ + [ + "country.mainland", + "country.continent_name" + ], + [ + "country.continent", + "country.continent_name" + ], + [ + "country.mainland", + "country.continent" + ] + ] + }, + { + "question": "what are the #regions# that use #english# or dutch?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "area", + "district" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "regions", + "country.region" + ], + [ + "regions", + "country.area" + ], + [ + "regions", + "country.district" + ], + [ + "English", + "countrylanguage.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.region" + ], + [ + 0, + "country.area" + ], + [ + 0, + "country.district" + ], + [ + 1, + "countrylanguage.language" + ] + ], + "linking_list_col": [ + [ + "country.area", + "country.district" + ], + [ + "country.region", + "country.district" + ], + [ + "country.area", + "country.region" + ] + ] + }, + { + "question": "which #regions# speak #dutch# or english?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "area", + "district" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "regions", + "country.region" + ], + [ + "regions", + "country.area" + ], + [ + "regions", + "country.district" + ], + [ + "Dutch", + "countrylanguage.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.region" + ], + [ + 0, + "country.area" + ], + [ + 0, + "country.district" + ], + [ + 1, + "countrylanguage.language" + ] + ], + "linking_list_col": [ + [ + "country.area", + "country.district" + ], + [ + "country.region", + "country.district" + ], + [ + "country.area", + "country.region" + ] + ] + }, + { + "question": "which #language# is the most popular on the asian continent?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage", + "tongue", + "dialect" + ] + }, + "linking_list": [ + [ + "language", + "countrylanguage.language" + ], + [ + "language", + "countrylanguage.tongue" + ], + [ + "language", + "countrylanguage.dialect" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "countrylanguage.tongue" + ], + [ + 0, + "countrylanguage.dialect" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.tongue", + "countrylanguage.dialect" + ], + [ + "countrylanguage.language", + "countrylanguage.dialect" + ], + [ + "countrylanguage.tongue", + "countrylanguage.language" + ] + ] + }, + { + "question": "what is the #language# that is used by the largest number of asian nations?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage", + "tongue", + "dialect" + ] + }, + "linking_list": [ + [ + "language", + "countrylanguage.language" + ], + [ + "language", + "countrylanguage.tongue" + ], + [ + "language", + "countrylanguage.dialect" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "countrylanguage.tongue" + ], + [ + 0, + "countrylanguage.dialect" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.tongue", + "countrylanguage.dialect" + ], + [ + "countrylanguage.language", + "countrylanguage.dialect" + ], + [ + "countrylanguage.tongue", + "countrylanguage.language" + ] + ] + }, + { + "question": "which #languages# are spoken by only one country in republic governments?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage", + "tongue", + "dialect" + ] + }, + "linking_list": [ + [ + "languages", + "countrylanguage.language" + ], + [ + "languages", + "countrylanguage.tongue" + ], + [ + "languages", + "countrylanguage.dialect" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "countrylanguage.tongue" + ], + [ + 0, + "countrylanguage.dialect" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.tongue", + "countrylanguage.dialect" + ], + [ + "countrylanguage.language", + "countrylanguage.dialect" + ], + [ + "countrylanguage.tongue", + "countrylanguage.language" + ] + ] + }, + { + "question": "what #languages# are only used by a single country with a republic government?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage", + "tongue", + "dialect" + ] + }, + "linking_list": [ + [ + "languages", + "countrylanguage.language" + ], + [ + "languages", + "countrylanguage.tongue" + ], + [ + "languages", + "countrylanguage.dialect" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "countrylanguage.tongue" + ], + [ + 0, + "countrylanguage.dialect" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.tongue", + "countrylanguage.dialect" + ], + [ + "countrylanguage.language", + "countrylanguage.dialect" + ], + [ + "countrylanguage.tongue", + "countrylanguage.language" + ] + ] + }, + { + "question": "find the #city with the largest population# that uses #english# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population", + "total_inhabitants", + "number_of_residents" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "city with the largest population", + "city.population" + ], + [ + "city with the largest population", + "city.total_inhabitants" + ], + [ + "city with the largest population", + "city.number_of_residents" + ], + [ + "English", + "countrylanguage.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "city.population" + ], + [ + 0, + "city.total_inhabitants" + ], + [ + 0, + "city.number_of_residents" + ], + [ + 1, + "countrylanguage.language" + ] + ], + "linking_list_col": [ + [ + "city.total_inhabitants", + "city.number_of_residents" + ], + [ + "city.population", + "city.number_of_residents" + ], + [ + "city.total_inhabitants", + "city.population" + ] + ] + }, + { + "question": "find the #name# , #population# and expected life length of asian country with the largest area?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "nation", + "title" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "name", + "country.name" + ], + [ + "name", + "country.nation" + ], + [ + "name", + "country.title" + ], + [ + "population", + "country.population" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "country.nation" + ], + [ + 0, + "country.title" + ], + [ + 1, + "country.population" + ] + ], + "linking_list_col": [ + [ + "country.nation", + "country.title" + ], + [ + "country.name", + "country.title" + ], + [ + "country.nation", + "country.name" + ] + ] + }, + { + "question": "what are the #name# , #population# , and #life expectancy# of the largest asian country by land?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "nation", + "title" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "name", + "country.name" + ], + [ + "name", + "country.nation" + ], + [ + "name", + "country.title" + ], + [ + "population", + "country.population" + ], + [ + "life expectancy", + "country.lifeexpectancy" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "country.nation" + ], + [ + 0, + "country.title" + ], + [ + 1, + "country.population" + ], + [ + 2, + "country.lifeexpectancy" + ] + ], + "linking_list_col": [ + [ + "country.nation", + "country.title" + ], + [ + "country.name", + "country.title" + ], + [ + "country.nation", + "country.name" + ] + ] + }, + { + "question": "what is #average life expectancy in the countries# where #english# is not the official language?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "life_length", + "life_span" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "average life expectancy in the countries", + "country.lifeexpectancy" + ], + [ + "average life expectancy in the countries", + "country.life_length" + ], + [ + "average life expectancy in the countries", + "country.life_span" + ], + [ + "English", + "countrylanguage.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.lifeexpectancy" + ], + [ + 0, + "country.life_length" + ], + [ + 0, + "country.life_span" + ], + [ + 1, + "countrylanguage.language" + ] + ], + "linking_list_col": [ + [ + "country.life_length", + "country.life_span" + ], + [ + "country.lifeexpectancy", + "country.life_span" + ], + [ + "country.life_length", + "country.lifeexpectancy" + ] + ] + }, + { + "question": "give the #mean life expectancy of countries# in which #english# is not the #official language# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "life_length", + "life_span" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "mean life expectancy of countries", + "country.lifeexpectancy" + ], + [ + "mean life expectancy of countries", + "country.life_length" + ], + [ + "mean life expectancy of countries", + "country.life_span" + ], + [ + "English", + "countrylanguage.language" + ], + [ + "official language", + "countrylanguage.isofficial" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.lifeexpectancy" + ], + [ + 0, + "country.life_length" + ], + [ + 0, + "country.life_span" + ], + [ + 1, + "countrylanguage.language" + ], + [ + 2, + "countrylanguage.isofficial" + ] + ], + "linking_list_col": [ + [ + "country.life_length", + "country.life_span" + ], + [ + "country.lifeexpectancy", + "country.life_span" + ], + [ + "country.life_length", + "country.lifeexpectancy" + ] + ] + }, + { + "question": "what is the #total number of people# living in the nations that do not use english?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "headcount", + "citizen_count" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "total number of people", + "country.population" + ], + [ + "total number of people", + "country.headcount" + ], + [ + "total number of people", + "country.citizen_count" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.population" + ], + [ + 0, + "country.headcount" + ], + [ + 0, + "country.citizen_count" + ] + ], + "linking_list_col": [ + [ + "country.headcount", + "country.citizen_count" + ], + [ + "country.population", + "country.citizen_count" + ], + [ + "country.headcount", + "country.population" + ] + ] + }, + { + "question": "how many #people# live in countries that do not speak english?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "headcount", + "citizen_count" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "people", + "country.population" + ], + [ + "people", + "country.headcount" + ], + [ + "people", + "country.citizen_count" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.population" + ], + [ + 0, + "country.headcount" + ], + [ + 0, + "country.citizen_count" + ] + ], + "linking_list_col": [ + [ + "country.headcount", + "country.citizen_count" + ], + [ + "country.population", + "country.citizen_count" + ], + [ + "country.headcount", + "country.population" + ] + ] + }, + { + "question": "what is the #official language# spoken in the country whose #head of state# is beatrix?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage", + "tongue", + "dialect" + ] + }, + "linking_list": [ + [ + "official language", + "countrylanguage.language" + ], + [ + "official language", + "countrylanguage.tongue" + ], + [ + "official language", + "countrylanguage.dialect" + ], + [ + "head of state", + "country.headofstate" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "countrylanguage.tongue" + ], + [ + 0, + "countrylanguage.dialect" + ], + [ + 1, + "country.headofstate" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.tongue", + "countrylanguage.dialect" + ], + [ + "countrylanguage.language", + "countrylanguage.dialect" + ], + [ + "countrylanguage.tongue", + "countrylanguage.language" + ] + ] + }, + { + "question": "what is the #official language# used in the #country the name of whose head of state# is beatrix.", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage", + "tongue", + "dialect" + ] + }, + "linking_list": [ + [ + "official language", + "countrylanguage.language" + ], + [ + "official language", + "countrylanguage.tongue" + ], + [ + "official language", + "countrylanguage.dialect" + ], + [ + "country the name of whose head of state", + "country.headofstate" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "countrylanguage.tongue" + ], + [ + 0, + "countrylanguage.dialect" + ], + [ + 1, + "country.headofstate" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.tongue", + "countrylanguage.dialect" + ], + [ + "countrylanguage.language", + "countrylanguage.dialect" + ], + [ + "countrylanguage.tongue", + "countrylanguage.language" + ] + ] + }, + { + "question": "what are the #countries# that have greater #surface area# than any country in europe?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "nation", + "title" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "countries", + "country.name" + ], + [ + "countries", + "country.nation" + ], + [ + "countries", + "country.title" + ], + [ + "surface area", + "country.surfacearea" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "country.nation" + ], + [ + 0, + "country.title" + ], + [ + 1, + "country.surfacearea" + ] + ], + "linking_list_col": [ + [ + "country.nation", + "country.title" + ], + [ + "country.name", + "country.title" + ], + [ + "country.nation", + "country.name" + ] + ] + }, + { + "question": "what are the #african countries# that have a #population# less than any country in asia?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "nation", + "title" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "African countries", + "country.name" + ], + [ + "African countries", + "country.nation" + ], + [ + "African countries", + "country.title" + ], + [ + "population", + "country.population" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "country.nation" + ], + [ + 0, + "country.title" + ], + [ + 1, + "country.population" + ] + ], + "linking_list_col": [ + [ + "country.nation", + "country.title" + ], + [ + "country.name", + "country.title" + ], + [ + "country.nation", + "country.name" + ] + ] + }, + { + "question": "which #african countries# have a smaller #population# than that of any country in asia?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "nation", + "title" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "African countries", + "country.name" + ], + [ + "African countries", + "country.nation" + ], + [ + "African countries", + "country.title" + ], + [ + "population", + "country.population" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "country.nation" + ], + [ + 0, + "country.title" + ], + [ + 1, + "country.population" + ] + ], + "linking_list_col": [ + [ + "country.nation", + "country.title" + ], + [ + "country.name", + "country.title" + ], + [ + "country.nation", + "country.name" + ] + ] + }, + { + "question": "which #asian countries# have a #population# that is larger than any country in africa?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "nation", + "title" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "Asian countries", + "country.name" + ], + [ + "Asian countries", + "country.nation" + ], + [ + "Asian countries", + "country.title" + ], + [ + "population", + "country.population" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "country.nation" + ], + [ + 0, + "country.title" + ], + [ + 1, + "country.population" + ] + ], + "linking_list_col": [ + [ + "country.nation", + "country.title" + ], + [ + "country.name", + "country.title" + ], + [ + "country.nation", + "country.name" + ] + ] + }, + { + "question": "what are the #country codes for countries# that do not speak english?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage", + "nationcode", + "territorycode" + ] + }, + "linking_list": [ + [ + "country codes for countries", + "countrylanguage.countrycode" + ], + [ + "country codes for countries", + "countrylanguage.nationcode" + ], + [ + "country codes for countries", + "countrylanguage.territorycode" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.countrycode" + ], + [ + 0, + "countrylanguage.nationcode" + ], + [ + 0, + "countrylanguage.territorycode" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.nationcode", + "countrylanguage.territorycode" + ], + [ + "countrylanguage.countrycode", + "countrylanguage.territorycode" + ], + [ + "countrylanguage.nationcode", + "countrylanguage.countrycode" + ] + ] + }, + { + "question": "return the #country codes for countries# that do not speak #english# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage", + "nationcode", + "territorycode" + ] + }, + "linking_list": [ + [ + "country codes for countries", + "countrylanguage.countrycode" + ], + [ + "country codes for countries", + "countrylanguage.nationcode" + ], + [ + "country codes for countries", + "countrylanguage.territorycode" + ], + [ + "English", + "countrylanguage.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.countrycode" + ], + [ + 0, + "countrylanguage.nationcode" + ], + [ + 0, + "countrylanguage.territorycode" + ], + [ + 1, + "countrylanguage.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.nationcode", + "countrylanguage.territorycode" + ], + [ + "countrylanguage.countrycode", + "countrylanguage.territorycode" + ], + [ + "countrylanguage.nationcode", + "countrylanguage.countrycode" + ] + ] + }, + { + "question": "what are the #country codes# of countries where people use #languages# other than english?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage", + "nationcode", + "territorycode" + ] + }, + "linking_list": [ + [ + "country codes", + "countrylanguage.countrycode" + ], + [ + "country codes", + "countrylanguage.nationcode" + ], + [ + "country codes", + "countrylanguage.territorycode" + ], + [ + "languages", + "countrylanguage.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.countrycode" + ], + [ + 0, + "countrylanguage.nationcode" + ], + [ + 0, + "countrylanguage.territorycode" + ], + [ + 1, + "countrylanguage.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.nationcode", + "countrylanguage.territorycode" + ], + [ + "countrylanguage.countrycode", + "countrylanguage.territorycode" + ], + [ + "countrylanguage.nationcode", + "countrylanguage.countrycode" + ] + ] + }, + { + "question": "give the #country codes# for countries in which people speak langauges that are not english.", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage", + "nationcode", + "territorycode" + ] + }, + "linking_list": [ + [ + "country codes", + "countrylanguage.countrycode" + ], + [ + "country codes", + "countrylanguage.nationcode" + ], + [ + "country codes", + "countrylanguage.territorycode" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.countrycode" + ], + [ + 0, + "countrylanguage.nationcode" + ], + [ + 0, + "countrylanguage.territorycode" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.nationcode", + "countrylanguage.territorycode" + ], + [ + "countrylanguage.countrycode", + "countrylanguage.territorycode" + ], + [ + "countrylanguage.nationcode", + "countrylanguage.countrycode" + ] + ] + }, + { + "question": "what are the #codes of the countries# that do not speak #english# and whose #government forms# are not republic?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "id", + "abbreviation" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "codes of the countries", + "country.code" + ], + [ + "codes of the countries", + "country.id" + ], + [ + "codes of the countries", + "country.abbreviation" + ], + [ + "English", + "countrylanguage.language" + ], + [ + "government forms", + "country.governmentform" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.code" + ], + [ + 0, + "country.id" + ], + [ + 0, + "country.abbreviation" + ], + [ + 1, + "countrylanguage.language" + ], + [ + 2, + "country.governmentform" + ] + ], + "linking_list_col": [ + [ + "country.id", + "country.abbreviation" + ], + [ + "country.code", + "country.abbreviation" + ], + [ + "country.id", + "country.code" + ] + ] + }, + { + "question": "return the #codes of countries# that do not #speak english# and do not have republics for #governments# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "id", + "abbreviation" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "codes of countries", + "country.code" + ], + [ + "codes of countries", + "country.id" + ], + [ + "codes of countries", + "country.abbreviation" + ], + [ + "speak English", + "countrylanguage.language" + ], + [ + "governments", + "country.governmentform" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.code" + ], + [ + 0, + "country.id" + ], + [ + 0, + "country.abbreviation" + ], + [ + 1, + "countrylanguage.language" + ], + [ + 2, + "country.governmentform" + ] + ], + "linking_list_col": [ + [ + "country.id", + "country.abbreviation" + ], + [ + "country.code", + "country.abbreviation" + ], + [ + "country.id", + "country.code" + ] + ] + }, + { + "question": "which #cities# are in #european countries# where #english# is not the official language?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population", + "city_name", + "title" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "cities", + "city.name" + ], + [ + "cities", + "city.city_name" + ], + [ + "cities", + "city.title" + ], + [ + "European countries", + "country.continent" + ], + [ + "English", + "countrylanguage.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "city.name" + ], + [ + 0, + "city.city_name" + ], + [ + 0, + "city.title" + ], + [ + 1, + "country.continent" + ], + [ + 2, + "countrylanguage.language" + ] + ], + "linking_list_col": [ + [ + "city.city_name", + "city.title" + ], + [ + "city.name", + "city.title" + ], + [ + "city.city_name", + "city.name" + ] + ] + }, + { + "question": "what are the #names of cities in europe# for which #english# is not the official language?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population", + "city_name", + "title" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "names of cities in Europe", + "city.name" + ], + [ + "names of cities in Europe", + "city.city_name" + ], + [ + "names of cities in Europe", + "city.title" + ], + [ + "English", + "countrylanguage.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "city.name" + ], + [ + 0, + "city.city_name" + ], + [ + 0, + "city.title" + ], + [ + 1, + "countrylanguage.language" + ] + ], + "linking_list_col": [ + [ + "city.city_name", + "city.title" + ], + [ + "city.name", + "city.title" + ], + [ + "city.city_name", + "city.name" + ] + ] + }, + { + "question": "return the different #names of cities# that are in #asia# and for which #chinese is the official language# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population", + "city_name", + "title" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "names of cities", + "city.name" + ], + [ + "names of cities", + "city.city_name" + ], + [ + "names of cities", + "city.title" + ], + [ + "Asia", + "country.continent" + ], + [ + "Chinese is the official language", + "countrylanguage.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "city.name" + ], + [ + 0, + "city.city_name" + ], + [ + 0, + "city.title" + ], + [ + 1, + "country.continent" + ], + [ + 2, + "countrylanguage.language" + ] + ], + "linking_list_col": [ + [ + "city.city_name", + "city.title" + ], + [ + "city.name", + "city.title" + ], + [ + "city.city_name", + "city.name" + ] + ] + }, + { + "question": "what are the #name# , #independence year# , and surface area of the country with the smallest population?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "nation", + "title" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "name", + "country.name" + ], + [ + "name", + "country.nation" + ], + [ + "name", + "country.title" + ], + [ + "independence year", + "country.indepyear" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "country.nation" + ], + [ + 0, + "country.title" + ], + [ + 1, + "country.indepyear" + ] + ], + "linking_list_col": [ + [ + "country.nation", + "country.title" + ], + [ + "country.name", + "country.title" + ], + [ + "country.nation", + "country.name" + ] + ] + }, + { + "question": "give the #name# , #year of independence# , and #surface area of the country# that has the lowest #population# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "nation", + "title" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "name", + "country.name" + ], + [ + "name", + "country.nation" + ], + [ + "name", + "country.title" + ], + [ + "year of independence", + "country.indepyear" + ], + [ + "surface area of the country", + "country.surfacearea" + ], + [ + "population", + "country.population" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "country.nation" + ], + [ + 0, + "country.title" + ], + [ + 1, + "country.indepyear" + ], + [ + 2, + "country.surfacearea" + ], + [ + 3, + "country.population" + ] + ], + "linking_list_col": [ + [ + "country.nation", + "country.title" + ], + [ + "country.name", + "country.title" + ], + [ + "country.nation", + "country.name" + ] + ] + }, + { + "question": "what are the #population# , #name# and #leader of the country# with the largest area?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "nation", + "title" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "population", + "country.population" + ], + [ + "name", + "country.name" + ], + [ + "name", + "country.nation" + ], + [ + "name", + "country.title" + ], + [ + "leader of the country", + "country.headofstate" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.population" + ], + [ + 1, + "country.name" + ], + [ + 1, + "country.nation" + ], + [ + 1, + "country.title" + ], + [ + 2, + "country.headofstate" + ] + ], + "linking_list_col": [ + [ + "country.nation", + "country.title" + ], + [ + "country.name", + "country.title" + ], + [ + "country.nation", + "country.name" + ] + ] + }, + { + "question": "give the #name# , #population# , and #head of state for the country# that has the #largest area# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "nation", + "title" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "name", + "country.name" + ], + [ + "name", + "country.nation" + ], + [ + "name", + "country.title" + ], + [ + "population", + "country.population" + ], + [ + "head of state for the country", + "country.headofstate" + ], + [ + "largest area", + "country.surfacearea" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "country.nation" + ], + [ + 0, + "country.title" + ], + [ + 1, + "country.population" + ], + [ + 2, + "country.headofstate" + ], + [ + 3, + "country.surfacearea" + ] + ], + "linking_list_col": [ + [ + "country.nation", + "country.title" + ], + [ + "country.name", + "country.title" + ], + [ + "country.nation", + "country.name" + ] + ] + }, + { + "question": "what are the #names of countries# that speak more than 2 #languages# , as well as how many languages they speak?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "nation", + "title" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "names of countries", + "country.name" + ], + [ + "names of countries", + "country.nation" + ], + [ + "names of countries", + "country.title" + ], + [ + "languages", + "countrylanguage.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "country.nation" + ], + [ + 0, + "country.title" + ], + [ + 1, + "countrylanguage.language" + ] + ], + "linking_list_col": [ + [ + "country.nation", + "country.title" + ], + [ + "country.name", + "country.title" + ], + [ + "country.nation", + "country.name" + ] + ] + }, + { + "question": "how many #cities in each district# have a #population# that is above the average population across all cities?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population", + "state", + "province" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "cities in each district", + "city.district" + ], + [ + "cities in each district", + "city.state" + ], + [ + "cities in each district", + "city.province" + ], + [ + "population", + "city.population" + ] + ], + "linking_list_idx": [ + [ + 0, + "city.district" + ], + [ + 0, + "city.state" + ], + [ + 0, + "city.province" + ], + [ + 1, + "city.population" + ] + ], + "linking_list_col": [ + [ + "city.state", + "city.province" + ], + [ + "city.district", + "city.province" + ], + [ + "city.state", + "city.district" + ] + ] + }, + { + "question": "find the #government form# name and #total population for each government form# whose #average life expectancy# is longer than 72.", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "ruling_system", + "political_system" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "government form", + "country.governmentform" + ], + [ + "government form", + "country.ruling_system" + ], + [ + "government form", + "country.political_system" + ], + [ + "total population for each government form", + "country.population" + ], + [ + "average life expectancy", + "country.lifeexpectancy" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.governmentform" + ], + [ + 0, + "country.ruling_system" + ], + [ + 0, + "country.political_system" + ], + [ + 1, + "country.population" + ], + [ + 2, + "country.lifeexpectancy" + ] + ], + "linking_list_col": [ + [ + "country.ruling_system", + "country.political_system" + ], + [ + "country.governmentform", + "country.political_system" + ], + [ + "country.ruling_system", + "country.governmentform" + ] + ] + }, + { + "question": "what are the different #government forms# and what is the #total population of each for government forms# that have an #average life expectancy# greater than 72?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "ruling_system", + "political_system" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "government forms", + "country.governmentform" + ], + [ + "government forms", + "country.ruling_system" + ], + [ + "government forms", + "country.political_system" + ], + [ + "total population of each for government forms", + "country.population" + ], + [ + "average life expectancy", + "country.lifeexpectancy" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.governmentform" + ], + [ + 0, + "country.ruling_system" + ], + [ + 0, + "country.political_system" + ], + [ + 1, + "country.population" + ], + [ + 2, + "country.lifeexpectancy" + ] + ], + "linking_list_col": [ + [ + "country.ruling_system", + "country.political_system" + ], + [ + "country.governmentform", + "country.political_system" + ], + [ + "country.ruling_system", + "country.governmentform" + ] + ] + }, + { + "question": "what are the different #continents# and the total popuation and #average life expectancy# corresponding to each, for continents that have an average life expectancy less than 72?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "mainland", + "continent_name" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "continents", + "country.continent" + ], + [ + "continents", + "country.mainland" + ], + [ + "continents", + "country.continent_name" + ], + [ + "average life expectancy", + "country.lifeexpectancy" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.continent" + ], + [ + 0, + "country.mainland" + ], + [ + 0, + "country.continent_name" + ], + [ + 1, + "country.lifeexpectancy" + ] + ], + "linking_list_col": [ + [ + "country.mainland", + "country.continent_name" + ], + [ + "country.continent", + "country.continent_name" + ], + [ + "country.mainland", + "country.continent" + ] + ] + }, + { + "question": "what are the #names# and #areas of countries# with the top 5 largest area?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "nation", + "title" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "names", + "country.name" + ], + [ + "names", + "country.nation" + ], + [ + "names", + "country.title" + ], + [ + "areas of countries", + "country.surfacearea" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "country.nation" + ], + [ + 0, + "country.title" + ], + [ + 1, + "country.surfacearea" + ] + ], + "linking_list_col": [ + [ + "country.nation", + "country.title" + ], + [ + "country.name", + "country.title" + ], + [ + "country.nation", + "country.name" + ] + ] + }, + { + "question": "return the #names# and #surface areas# of the 5 largest countries.", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "nation", + "title" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "names", + "country.name" + ], + [ + "names", + "country.nation" + ], + [ + "names", + "country.title" + ], + [ + "surface areas", + "country.surfacearea" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "country.nation" + ], + [ + 0, + "country.title" + ], + [ + 1, + "country.surfacearea" + ] + ], + "linking_list_col": [ + [ + "country.nation", + "country.title" + ], + [ + "country.name", + "country.title" + ], + [ + "country.nation", + "country.name" + ] + ] + }, + { + "question": "what are #names of countries# with the top 3 largest population?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "nation", + "title" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "names of countries", + "country.name" + ], + [ + "names of countries", + "country.nation" + ], + [ + "names of countries", + "country.title" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "country.nation" + ], + [ + 0, + "country.title" + ] + ], + "linking_list_col": [ + [ + "country.nation", + "country.title" + ], + [ + "country.name", + "country.title" + ], + [ + "country.nation", + "country.name" + ] + ] + }, + { + "question": "return the #names# of the 3 most populated countries.", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "nation", + "title" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "names", + "country.name" + ], + [ + "names", + "country.nation" + ], + [ + "names", + "country.title" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "country.nation" + ], + [ + 0, + "country.title" + ] + ], + "linking_list_col": [ + [ + "country.nation", + "country.title" + ], + [ + "country.name", + "country.title" + ], + [ + "country.nation", + "country.name" + ] + ] + }, + { + "question": "what are the #names of the nations# with the 3 lowest populations?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "nation", + "title" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "names of the nations", + "country.name" + ], + [ + "names of the nations", + "country.nation" + ], + [ + "names of the nations", + "country.title" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "country.nation" + ], + [ + 0, + "country.title" + ] + ], + "linking_list_col": [ + [ + "country.nation", + "country.title" + ], + [ + "country.name", + "country.title" + ], + [ + "country.nation", + "country.name" + ] + ] + }, + { + "question": "return the #names# of the 3 countries with the fewest #people# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "nation", + "title" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "names", + "country.name" + ], + [ + "names", + "country.nation" + ], + [ + "names", + "country.title" + ], + [ + "people", + "country.population" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "country.nation" + ], + [ + 0, + "country.title" + ], + [ + 1, + "country.population" + ] + ], + "linking_list_col": [ + [ + "country.nation", + "country.title" + ], + [ + "country.name", + "country.title" + ], + [ + "country.nation", + "country.name" + ] + ] + }, + { + "question": "what are the #names# of the countries that are in the #continent# of europe and have a #population# of 80000?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "nation", + "title" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "names", + "country.name" + ], + [ + "names", + "country.nation" + ], + [ + "names", + "country.title" + ], + [ + "continent", + "country.continent" + ], + [ + "population", + "country.population" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "country.nation" + ], + [ + 0, + "country.title" + ], + [ + 1, + "country.continent" + ], + [ + 2, + "country.population" + ] + ], + "linking_list_col": [ + [ + "country.nation", + "country.title" + ], + [ + "country.name", + "country.title" + ], + [ + "country.nation", + "country.name" + ] + ] + }, + { + "question": "give the #names of countries# that are in #europe# and have a #population# equal to 80000.", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "nation", + "title" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "names of countries", + "country.name" + ], + [ + "names of countries", + "country.nation" + ], + [ + "names of countries", + "country.title" + ], + [ + "Europe", + "country.continent" + ], + [ + "population", + "country.population" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "country.nation" + ], + [ + 0, + "country.title" + ], + [ + 1, + "country.continent" + ], + [ + 2, + "country.population" + ] + ], + "linking_list_col": [ + [ + "country.nation", + "country.title" + ], + [ + "country.name", + "country.title" + ], + [ + "country.nation", + "country.name" + ] + ] + }, + { + "question": "which #language# is spoken by the largest number of countries?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage", + "tongue", + "dialect" + ] + }, + "linking_list": [ + [ + "language", + "countrylanguage.language" + ], + [ + "language", + "countrylanguage.tongue" + ], + [ + "language", + "countrylanguage.dialect" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "countrylanguage.tongue" + ], + [ + 0, + "countrylanguage.dialect" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.tongue", + "countrylanguage.dialect" + ], + [ + "countrylanguage.language", + "countrylanguage.dialect" + ], + [ + "countrylanguage.tongue", + "countrylanguage.language" + ] + ] + }, + { + "question": "give the #language# that is spoken in the most countries.", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage", + "tongue", + "dialect" + ] + }, + "linking_list": [ + [ + "language", + "countrylanguage.language" + ], + [ + "language", + "countrylanguage.tongue" + ], + [ + "language", + "countrylanguage.dialect" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "countrylanguage.tongue" + ], + [ + 0, + "countrylanguage.dialect" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.tongue", + "countrylanguage.dialect" + ], + [ + "countrylanguage.language", + "countrylanguage.dialect" + ], + [ + "countrylanguage.tongue", + "countrylanguage.language" + ] + ] + }, + { + "question": "what is the #language# spoken by the largest #percentage# of people in each country?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage", + "fraction", + "proportion" + ] + }, + "linking_list": [ + [ + "language", + "countrylanguage.language" + ], + [ + "percentage", + "countrylanguage.percentage" + ], + [ + "percentage", + "countrylanguage.fraction" + ], + [ + "percentage", + "countrylanguage.proportion" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 1, + "countrylanguage.percentage" + ], + [ + 1, + "countrylanguage.fraction" + ], + [ + 1, + "countrylanguage.proportion" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.fraction", + "countrylanguage.proportion" + ], + [ + "countrylanguage.percentage", + "countrylanguage.proportion" + ], + [ + "countrylanguage.fraction", + "countrylanguage.percentage" + ] + ] + }, + { + "question": "what are the #country codes# of the different countries, and what are the #languages# spoken by the greatest #percentage# of people for each?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage", + "fraction", + "proportion" + ] + }, + "linking_list": [ + [ + "country codes", + "countrylanguage.countrycode" + ], + [ + "languages", + "countrylanguage.language" + ], + [ + "percentage", + "countrylanguage.percentage" + ], + [ + "percentage", + "countrylanguage.fraction" + ], + [ + "percentage", + "countrylanguage.proportion" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.countrycode" + ], + [ + 1, + "countrylanguage.language" + ], + [ + 2, + "countrylanguage.percentage" + ], + [ + 2, + "countrylanguage.fraction" + ], + [ + 2, + "countrylanguage.proportion" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.fraction", + "countrylanguage.proportion" + ], + [ + "countrylanguage.percentage", + "countrylanguage.proportion" + ], + [ + "countrylanguage.fraction", + "countrylanguage.percentage" + ] + ] + }, + { + "question": "list the #names of conductors# in ascending order of #age# .", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work", + "full_name", + "title" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "names of conductors", + "conductor.name" + ], + [ + "names of conductors", + "conductor.full_name" + ], + [ + "names of conductors", + "conductor.title" + ], + [ + "age", + "conductor.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "conductor.name" + ], + [ + 0, + "conductor.full_name" + ], + [ + 0, + "conductor.title" + ], + [ + 1, + "conductor.age" + ] + ], + "linking_list_col": [ + [ + "conductor.full_name", + "conductor.title" + ], + [ + "conductor.name", + "conductor.title" + ], + [ + "conductor.full_name", + "conductor.name" + ] + ] + }, + { + "question": "what are the #names of conductors# , ordered by age?", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work", + "full_name", + "title" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "names of conductors", + "conductor.name" + ], + [ + "names of conductors", + "conductor.full_name" + ], + [ + "names of conductors", + "conductor.title" + ] + ], + "linking_list_idx": [ + [ + 0, + "conductor.name" + ], + [ + 0, + "conductor.full_name" + ], + [ + 0, + "conductor.title" + ] + ], + "linking_list_col": [ + [ + "conductor.full_name", + "conductor.title" + ], + [ + "conductor.name", + "conductor.title" + ], + [ + "conductor.full_name", + "conductor.name" + ] + ] + }, + { + "question": "what are the #names of conductors# whose #nationalities# are not \"usa\"?", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work", + "full_name", + "title" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "names of conductors", + "conductor.name" + ], + [ + "names of conductors", + "conductor.full_name" + ], + [ + "names of conductors", + "conductor.title" + ], + [ + "nationalities", + "conductor.nationality" + ] + ], + "linking_list_idx": [ + [ + 0, + "conductor.name" + ], + [ + 0, + "conductor.full_name" + ], + [ + 0, + "conductor.title" + ], + [ + 1, + "conductor.nationality" + ] + ], + "linking_list_col": [ + [ + "conductor.full_name", + "conductor.title" + ], + [ + "conductor.name", + "conductor.title" + ], + [ + "conductor.full_name", + "conductor.name" + ] + ] + }, + { + "question": "return the #names of conductors# that do not have the #nationality# \"usa\".", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work", + "full_name", + "title" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "names of conductors", + "conductor.name" + ], + [ + "names of conductors", + "conductor.full_name" + ], + [ + "names of conductors", + "conductor.title" + ], + [ + "nationality", + "conductor.nationality" + ] + ], + "linking_list_idx": [ + [ + 0, + "conductor.name" + ], + [ + 0, + "conductor.full_name" + ], + [ + 0, + "conductor.title" + ], + [ + 1, + "conductor.nationality" + ] + ], + "linking_list_col": [ + [ + "conductor.full_name", + "conductor.title" + ], + [ + "conductor.name", + "conductor.title" + ], + [ + "conductor.full_name", + "conductor.name" + ] + ] + }, + { + "question": "what are the #record companies of orchestras# in descending order of years in which they were founded?", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format", + "recording_label", + "audio_company" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "record companies of orchestras", + "orchestra.record_company" + ], + [ + "record companies of orchestras", + "orchestra.recording_label" + ], + [ + "record companies of orchestras", + "orchestra.audio_company" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.record_company" + ], + [ + 0, + "orchestra.recording_label" + ], + [ + 0, + "orchestra.audio_company" + ] + ], + "linking_list_col": [ + [ + "orchestra.recording_label", + "orchestra.audio_company" + ], + [ + "orchestra.record_company", + "orchestra.audio_company" + ], + [ + "orchestra.recording_label", + "orchestra.record_company" + ] + ] + }, + { + "question": "return the #record companies of orchestras# , sorted descending by the #years in which they were founded# .", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format", + "recording_label", + "audio_company" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "record companies of orchestras", + "orchestra.record_company" + ], + [ + "record companies of orchestras", + "orchestra.recording_label" + ], + [ + "record companies of orchestras", + "orchestra.audio_company" + ], + [ + "years in which they were founded", + "orchestra.year_of_founded" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.record_company" + ], + [ + 0, + "orchestra.recording_label" + ], + [ + 0, + "orchestra.audio_company" + ], + [ + 1, + "orchestra.year_of_founded" + ] + ], + "linking_list_col": [ + [ + "orchestra.recording_label", + "orchestra.audio_company" + ], + [ + "orchestra.record_company", + "orchestra.audio_company" + ], + [ + "orchestra.recording_label", + "orchestra.record_company" + ] + ] + }, + { + "question": "return the #average attendance# across all shows.", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance", + "turnout", + "number_of_audience" + ] + }, + "linking_list": [ + [ + "average attendance", + "show.attendance" + ], + [ + "average attendance", + "show.turnout" + ], + [ + "average attendance", + "show.number_of_audience" + ] + ], + "linking_list_idx": [ + [ + 0, + "show.attendance" + ], + [ + 0, + "show.turnout" + ], + [ + 0, + "show.number_of_audience" + ] + ], + "linking_list_col": [ + [ + "show.turnout", + "show.number_of_audience" + ], + [ + "show.attendance", + "show.number_of_audience" + ], + [ + "show.turnout", + "show.attendance" + ] + ] + }, + { + "question": "what are the #maximum and minimum share of performances# whose #type# is not \"live final\".", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share", + "percentage_share", + "market_share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "maximum and minimum share of performances", + "performance.share" + ], + [ + "maximum and minimum share of performances", + "performance.percentage_share" + ], + [ + "maximum and minimum share of performances", + "performance.market_share" + ], + [ + "type", + "performance.type" + ] + ], + "linking_list_idx": [ + [ + 0, + "performance.share" + ], + [ + 0, + "performance.percentage_share" + ], + [ + 0, + "performance.market_share" + ], + [ + 1, + "performance.type" + ] + ], + "linking_list_col": [ + [ + "performance.percentage_share", + "performance.market_share" + ], + [ + "performance.share", + "performance.market_share" + ], + [ + "performance.percentage_share", + "performance.share" + ] + ] + }, + { + "question": "return the #maximum and minimum shares for performances# that do not have the #type# \"live final\".", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share", + "percentage_share", + "market_share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "maximum and minimum shares for performances", + "performance.share" + ], + [ + "maximum and minimum shares for performances", + "performance.percentage_share" + ], + [ + "maximum and minimum shares for performances", + "performance.market_share" + ], + [ + "type", + "performance.type" + ] + ], + "linking_list_idx": [ + [ + 0, + "performance.share" + ], + [ + 0, + "performance.percentage_share" + ], + [ + 0, + "performance.market_share" + ], + [ + 1, + "performance.type" + ] + ], + "linking_list_col": [ + [ + "performance.percentage_share", + "performance.market_share" + ], + [ + "performance.share", + "performance.market_share" + ], + [ + "performance.percentage_share", + "performance.share" + ] + ] + }, + { + "question": "how many different #nationalities# do conductors have?", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work", + "country", + "origin" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "nationalities", + "conductor.nationality" + ], + [ + "nationalities", + "conductor.country" + ], + [ + "nationalities", + "conductor.origin" + ] + ], + "linking_list_idx": [ + [ + 0, + "conductor.nationality" + ], + [ + 0, + "conductor.country" + ], + [ + 0, + "conductor.origin" + ] + ], + "linking_list_col": [ + [ + "conductor.country", + "conductor.origin" + ], + [ + "conductor.nationality", + "conductor.origin" + ], + [ + "conductor.country", + "conductor.nationality" + ] + ] + }, + { + "question": "count the number of different #nationalities of conductors# .", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work", + "country", + "origin" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "nationalities of conductors", + "conductor.nationality" + ], + [ + "nationalities of conductors", + "conductor.country" + ], + [ + "nationalities of conductors", + "conductor.origin" + ] + ], + "linking_list_idx": [ + [ + 0, + "conductor.nationality" + ], + [ + 0, + "conductor.country" + ], + [ + 0, + "conductor.origin" + ] + ], + "linking_list_col": [ + [ + "conductor.country", + "conductor.origin" + ], + [ + "conductor.nationality", + "conductor.origin" + ], + [ + "conductor.country", + "conductor.nationality" + ] + ] + }, + { + "question": "list #names of conductors# in descending order of #years of work# .", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work", + "full_name", + "title" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "names of conductors", + "conductor.name" + ], + [ + "names of conductors", + "conductor.full_name" + ], + [ + "names of conductors", + "conductor.title" + ], + [ + "years of work", + "conductor.year_of_work" + ] + ], + "linking_list_idx": [ + [ + 0, + "conductor.name" + ], + [ + 0, + "conductor.full_name" + ], + [ + 0, + "conductor.title" + ], + [ + 1, + "conductor.year_of_work" + ] + ], + "linking_list_col": [ + [ + "conductor.full_name", + "conductor.title" + ], + [ + "conductor.name", + "conductor.title" + ], + [ + "conductor.full_name", + "conductor.name" + ] + ] + }, + { + "question": "what are the #names of conductors# , sorted descending by the number of years they have worked?", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work", + "full_name", + "title" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "names of conductors", + "conductor.name" + ], + [ + "names of conductors", + "conductor.full_name" + ], + [ + "names of conductors", + "conductor.title" + ] + ], + "linking_list_idx": [ + [ + 0, + "conductor.name" + ], + [ + 0, + "conductor.full_name" + ], + [ + 0, + "conductor.title" + ] + ], + "linking_list_col": [ + [ + "conductor.full_name", + "conductor.title" + ], + [ + "conductor.name", + "conductor.title" + ], + [ + "conductor.full_name", + "conductor.name" + ] + ] + }, + { + "question": "list the #name of the conductor# with the most #years of work# .", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work", + "full_name", + "title" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "name of the conductor", + "conductor.name" + ], + [ + "name of the conductor", + "conductor.full_name" + ], + [ + "name of the conductor", + "conductor.title" + ], + [ + "years of work", + "conductor.year_of_work" + ] + ], + "linking_list_idx": [ + [ + 0, + "conductor.name" + ], + [ + 0, + "conductor.full_name" + ], + [ + 0, + "conductor.title" + ], + [ + 1, + "conductor.year_of_work" + ] + ], + "linking_list_col": [ + [ + "conductor.full_name", + "conductor.title" + ], + [ + "conductor.name", + "conductor.title" + ], + [ + "conductor.full_name", + "conductor.name" + ] + ] + }, + { + "question": "what is the #name of the conductor# who has worked the greatest number of years?", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work", + "full_name", + "title" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "name of the conductor", + "conductor.name" + ], + [ + "name of the conductor", + "conductor.full_name" + ], + [ + "name of the conductor", + "conductor.title" + ] + ], + "linking_list_idx": [ + [ + 0, + "conductor.name" + ], + [ + 0, + "conductor.full_name" + ], + [ + 0, + "conductor.title" + ] + ], + "linking_list_col": [ + [ + "conductor.full_name", + "conductor.title" + ], + [ + "conductor.name", + "conductor.title" + ], + [ + "conductor.full_name", + "conductor.name" + ] + ] + }, + { + "question": "show the #names of conductors# and the #orchestras# they have conducted.", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format", + "ensemble_name", + "band_name" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "names of conductors", + "conductor.name" + ], + [ + "orchestras", + "orchestra.orchestra" + ], + [ + "orchestras", + "orchestra.ensemble_name" + ], + [ + "orchestras", + "orchestra.band_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "conductor.name" + ], + [ + 1, + "orchestra.orchestra" + ], + [ + 1, + "orchestra.ensemble_name" + ], + [ + 1, + "orchestra.band_name" + ] + ], + "linking_list_col": [ + [ + "orchestra.ensemble_name", + "orchestra.band_name" + ], + [ + "orchestra.orchestra", + "orchestra.band_name" + ], + [ + "orchestra.ensemble_name", + "orchestra.orchestra" + ] + ] + }, + { + "question": "what are the #names of conductors# as well as the corresonding #orchestras# that they have conducted?", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format", + "ensemble_name", + "band_name" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "names of conductors", + "conductor.name" + ], + [ + "orchestras", + "orchestra.orchestra" + ], + [ + "orchestras", + "orchestra.ensemble_name" + ], + [ + "orchestras", + "orchestra.band_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "conductor.name" + ], + [ + 1, + "orchestra.orchestra" + ], + [ + 1, + "orchestra.ensemble_name" + ], + [ + 1, + "orchestra.band_name" + ] + ], + "linking_list_col": [ + [ + "orchestra.ensemble_name", + "orchestra.band_name" + ], + [ + "orchestra.orchestra", + "orchestra.band_name" + ], + [ + "orchestra.ensemble_name", + "orchestra.orchestra" + ] + ] + }, + { + "question": "show the #names of conductors# that have conducted more than one orchestras.", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work", + "full_name", + "title" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "names of conductors", + "conductor.name" + ], + [ + "names of conductors", + "conductor.full_name" + ], + [ + "names of conductors", + "conductor.title" + ] + ], + "linking_list_idx": [ + [ + 0, + "conductor.name" + ], + [ + 0, + "conductor.full_name" + ], + [ + 0, + "conductor.title" + ] + ], + "linking_list_col": [ + [ + "conductor.full_name", + "conductor.title" + ], + [ + "conductor.name", + "conductor.title" + ], + [ + "conductor.full_name", + "conductor.name" + ] + ] + }, + { + "question": "what are the #names of conductors# who have conducted at more than one orchestra?", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work", + "full_name", + "title" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "names of conductors", + "conductor.name" + ], + [ + "names of conductors", + "conductor.full_name" + ], + [ + "names of conductors", + "conductor.title" + ] + ], + "linking_list_idx": [ + [ + 0, + "conductor.name" + ], + [ + 0, + "conductor.full_name" + ], + [ + 0, + "conductor.title" + ] + ], + "linking_list_col": [ + [ + "conductor.full_name", + "conductor.title" + ], + [ + "conductor.name", + "conductor.title" + ], + [ + "conductor.full_name", + "conductor.name" + ] + ] + }, + { + "question": "show the #name of the conductor# that has conducted the most number of orchestras.", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work", + "full_name", + "title" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "name of the conductor", + "conductor.name" + ], + [ + "name of the conductor", + "conductor.full_name" + ], + [ + "name of the conductor", + "conductor.title" + ] + ], + "linking_list_idx": [ + [ + 0, + "conductor.name" + ], + [ + 0, + "conductor.full_name" + ], + [ + 0, + "conductor.title" + ] + ], + "linking_list_col": [ + [ + "conductor.full_name", + "conductor.title" + ], + [ + "conductor.name", + "conductor.title" + ], + [ + "conductor.full_name", + "conductor.name" + ] + ] + }, + { + "question": "what is the #name of the conductor# who has conducted the most orchestras?", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work", + "full_name", + "title" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "name of the conductor", + "conductor.name" + ], + [ + "name of the conductor", + "conductor.full_name" + ], + [ + "name of the conductor", + "conductor.title" + ] + ], + "linking_list_idx": [ + [ + 0, + "conductor.name" + ], + [ + 0, + "conductor.full_name" + ], + [ + 0, + "conductor.title" + ] + ], + "linking_list_col": [ + [ + "conductor.full_name", + "conductor.title" + ], + [ + "conductor.name", + "conductor.title" + ], + [ + "conductor.full_name", + "conductor.name" + ] + ] + }, + { + "question": "please show the #name# of the conductor that has conducted #orchestras founded after 2008# .", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work", + "full_name", + "title" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "name", + "conductor.name" + ], + [ + "name", + "conductor.full_name" + ], + [ + "name", + "conductor.title" + ], + [ + "orchestras founded after 2008", + "orchestra.year_of_founded" + ] + ], + "linking_list_idx": [ + [ + 0, + "conductor.name" + ], + [ + 0, + "conductor.full_name" + ], + [ + 0, + "conductor.title" + ], + [ + 1, + "orchestra.year_of_founded" + ] + ], + "linking_list_col": [ + [ + "conductor.full_name", + "conductor.title" + ], + [ + "conductor.name", + "conductor.title" + ], + [ + "conductor.full_name", + "conductor.name" + ] + ] + }, + { + "question": "what are the #names of conductors# who have conducted orchestras founded after the year 2008?", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work", + "full_name", + "title" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "names of conductors", + "conductor.name" + ], + [ + "names of conductors", + "conductor.full_name" + ], + [ + "names of conductors", + "conductor.title" + ] + ], + "linking_list_idx": [ + [ + 0, + "conductor.name" + ], + [ + 0, + "conductor.full_name" + ], + [ + 0, + "conductor.title" + ] + ], + "linking_list_col": [ + [ + "conductor.full_name", + "conductor.title" + ], + [ + "conductor.name", + "conductor.title" + ], + [ + "conductor.full_name", + "conductor.name" + ] + ] + }, + { + "question": "please show the different #record companies# and the corresponding number of orchestras.", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format", + "recording_label", + "audio_company" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "record companies", + "orchestra.record_company" + ], + [ + "record companies", + "orchestra.recording_label" + ], + [ + "record companies", + "orchestra.audio_company" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.record_company" + ], + [ + 0, + "orchestra.recording_label" + ], + [ + 0, + "orchestra.audio_company" + ] + ], + "linking_list_col": [ + [ + "orchestra.recording_label", + "orchestra.audio_company" + ], + [ + "orchestra.record_company", + "orchestra.audio_company" + ], + [ + "orchestra.recording_label", + "orchestra.record_company" + ] + ] + }, + { + "question": "how many orchestras does each #record company# manage?", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format", + "recording_label", + "audio_company" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "record company", + "orchestra.record_company" + ], + [ + "record company", + "orchestra.recording_label" + ], + [ + "record company", + "orchestra.audio_company" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.record_company" + ], + [ + 0, + "orchestra.recording_label" + ], + [ + 0, + "orchestra.audio_company" + ] + ], + "linking_list_col": [ + [ + "orchestra.recording_label", + "orchestra.audio_company" + ], + [ + "orchestra.record_company", + "orchestra.audio_company" + ], + [ + "orchestra.recording_label", + "orchestra.record_company" + ] + ] + }, + { + "question": "please show the #record formats of orchestras# in ascending order of count.", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format", + "dominant_record_type", + "primary_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "record formats of orchestras", + "orchestra.major_record_format" + ], + [ + "record formats of orchestras", + "orchestra.dominant_record_type" + ], + [ + "record formats of orchestras", + "orchestra.primary_format" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.major_record_format" + ], + [ + 0, + "orchestra.dominant_record_type" + ], + [ + 0, + "orchestra.primary_format" + ] + ], + "linking_list_col": [ + [ + "orchestra.dominant_record_type", + "orchestra.primary_format" + ], + [ + "orchestra.major_record_format", + "orchestra.primary_format" + ], + [ + "orchestra.dominant_record_type", + "orchestra.major_record_format" + ] + ] + }, + { + "question": "what are the #major record formats of orchestras# , sorted by their frequency?", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format", + "dominant_record_type", + "primary_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "major record formats of orchestras", + "orchestra.major_record_format" + ], + [ + "major record formats of orchestras", + "orchestra.dominant_record_type" + ], + [ + "major record formats of orchestras", + "orchestra.primary_format" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.major_record_format" + ], + [ + 0, + "orchestra.dominant_record_type" + ], + [ + 0, + "orchestra.primary_format" + ] + ], + "linking_list_col": [ + [ + "orchestra.dominant_record_type", + "orchestra.primary_format" + ], + [ + "orchestra.major_record_format", + "orchestra.primary_format" + ], + [ + "orchestra.dominant_record_type", + "orchestra.major_record_format" + ] + ] + }, + { + "question": "list the #record company# shared by the most number of orchestras.", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format", + "recording_label", + "audio_company" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "record company", + "orchestra.record_company" + ], + [ + "record company", + "orchestra.recording_label" + ], + [ + "record company", + "orchestra.audio_company" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.record_company" + ], + [ + 0, + "orchestra.recording_label" + ], + [ + 0, + "orchestra.audio_company" + ] + ], + "linking_list_col": [ + [ + "orchestra.recording_label", + "orchestra.audio_company" + ], + [ + "orchestra.record_company", + "orchestra.audio_company" + ], + [ + "orchestra.recording_label", + "orchestra.record_company" + ] + ] + }, + { + "question": "what is the #record company# used by the greatest number of orchestras?", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format", + "recording_label", + "audio_company" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "record company", + "orchestra.record_company" + ], + [ + "record company", + "orchestra.recording_label" + ], + [ + "record company", + "orchestra.audio_company" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.record_company" + ], + [ + 0, + "orchestra.recording_label" + ], + [ + 0, + "orchestra.audio_company" + ] + ], + "linking_list_col": [ + [ + "orchestra.recording_label", + "orchestra.audio_company" + ], + [ + "orchestra.record_company", + "orchestra.audio_company" + ], + [ + "orchestra.recording_label", + "orchestra.record_company" + ] + ] + }, + { + "question": "list the #names of orchestras# that have no performance.", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format", + "ensemble_name", + "band_name" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "names of orchestras", + "orchestra.orchestra" + ], + [ + "names of orchestras", + "orchestra.ensemble_name" + ], + [ + "names of orchestras", + "orchestra.band_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.orchestra" + ], + [ + 0, + "orchestra.ensemble_name" + ], + [ + 0, + "orchestra.band_name" + ] + ], + "linking_list_col": [ + [ + "orchestra.ensemble_name", + "orchestra.band_name" + ], + [ + "orchestra.orchestra", + "orchestra.band_name" + ], + [ + "orchestra.ensemble_name", + "orchestra.orchestra" + ] + ] + }, + { + "question": "what are the #orchestras# that do not have any performances?", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format", + "ensemble_name", + "band_name" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "orchestras", + "orchestra.orchestra" + ], + [ + "orchestras", + "orchestra.ensemble_name" + ], + [ + "orchestras", + "orchestra.band_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.orchestra" + ], + [ + 0, + "orchestra.ensemble_name" + ], + [ + 0, + "orchestra.band_name" + ] + ], + "linking_list_col": [ + [ + "orchestra.ensemble_name", + "orchestra.band_name" + ], + [ + "orchestra.orchestra", + "orchestra.band_name" + ], + [ + "orchestra.ensemble_name", + "orchestra.orchestra" + ] + ] + }, + { + "question": "show the #record companies# shared by #orchestras founded before 2003 and after 2003# .", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format", + "recording_label", + "audio_company" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "record companies", + "orchestra.record_company" + ], + [ + "record companies", + "orchestra.recording_label" + ], + [ + "record companies", + "orchestra.audio_company" + ], + [ + "orchestras founded before 2003 and after 2003", + "orchestra.year_of_founded" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.record_company" + ], + [ + 0, + "orchestra.recording_label" + ], + [ + 0, + "orchestra.audio_company" + ], + [ + 1, + "orchestra.year_of_founded" + ] + ], + "linking_list_col": [ + [ + "orchestra.recording_label", + "orchestra.audio_company" + ], + [ + "orchestra.record_company", + "orchestra.audio_company" + ], + [ + "orchestra.recording_label", + "orchestra.record_company" + ] + ] + }, + { + "question": "what are the #record companies# that are used by both orchestras founded before 2003 and those founded after 2003?", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format", + "recording_label", + "audio_company" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "record companies", + "orchestra.record_company" + ], + [ + "record companies", + "orchestra.recording_label" + ], + [ + "record companies", + "orchestra.audio_company" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.record_company" + ], + [ + 0, + "orchestra.recording_label" + ], + [ + 0, + "orchestra.audio_company" + ] + ], + "linking_list_col": [ + [ + "orchestra.recording_label", + "orchestra.audio_company" + ], + [ + "orchestra.record_company", + "orchestra.audio_company" + ], + [ + "orchestra.recording_label", + "orchestra.record_company" + ] + ] + }, + { + "question": "show the #years# in which orchestras that have given more than one performance are founded.", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format", + "inception_year", + "established_year" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "years", + "orchestra.year_of_founded" + ], + [ + "years", + "orchestra.inception_year" + ], + [ + "years", + "orchestra.established_year" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.year_of_founded" + ], + [ + 0, + "orchestra.inception_year" + ], + [ + 0, + "orchestra.established_year" + ] + ], + "linking_list_col": [ + [ + "orchestra.inception_year", + "orchestra.established_year" + ], + [ + "orchestra.year_of_founded", + "orchestra.established_year" + ], + [ + "orchestra.inception_year", + "orchestra.year_of_founded" + ] + ] + }, + { + "question": "what are #years of founding for orchestras# that have had more than a single performance?", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format", + "inception_year", + "established_year" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "years of founding for orchestras", + "orchestra.year_of_founded" + ], + [ + "years of founding for orchestras", + "orchestra.inception_year" + ], + [ + "years of founding for orchestras", + "orchestra.established_year" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.year_of_founded" + ], + [ + 0, + "orchestra.inception_year" + ], + [ + 0, + "orchestra.established_year" + ] + ], + "linking_list_col": [ + [ + "orchestra.inception_year", + "orchestra.established_year" + ], + [ + "orchestra.year_of_founded", + "orchestra.established_year" + ], + [ + "orchestra.inception_year", + "orchestra.year_of_founded" + ] + ] + }, + { + "question": "show the #names# and #grades of each high schooler# .", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "level", + "class_grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "names", + "highschooler.name" + ], + [ + "grades of each high schooler", + "highschooler.grade" + ], + [ + "grades of each high schooler", + "highschooler.level" + ], + [ + "grades of each high schooler", + "highschooler.class_grade" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.name" + ], + [ + 1, + "highschooler.grade" + ], + [ + 1, + "highschooler.level" + ], + [ + 1, + "highschooler.class_grade" + ] + ], + "linking_list_col": [ + [ + "highschooler.level", + "highschooler.class_grade" + ], + [ + "highschooler.grade", + "highschooler.class_grade" + ], + [ + "highschooler.level", + "highschooler.grade" + ] + ] + }, + { + "question": "show all the #grades of the high schoolers# .", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "level", + "class_grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "grades of the high schoolers", + "highschooler.grade" + ], + [ + "grades of the high schoolers", + "highschooler.level" + ], + [ + "grades of the high schoolers", + "highschooler.class_grade" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.grade" + ], + [ + 0, + "highschooler.level" + ], + [ + 0, + "highschooler.class_grade" + ] + ], + "linking_list_col": [ + [ + "highschooler.level", + "highschooler.class_grade" + ], + [ + "highschooler.grade", + "highschooler.class_grade" + ], + [ + "highschooler.level", + "highschooler.grade" + ] + ] + }, + { + "question": "what #grade is kyle# in?", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "level", + "class_grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "grade is Kyle", + "highschooler.grade" + ], + [ + "grade is Kyle", + "highschooler.level" + ], + [ + "grade is Kyle", + "highschooler.class_grade" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.grade" + ], + [ + 0, + "highschooler.level" + ], + [ + 0, + "highschooler.class_grade" + ] + ], + "linking_list_col": [ + [ + "highschooler.level", + "highschooler.class_grade" + ], + [ + "highschooler.grade", + "highschooler.class_grade" + ], + [ + "highschooler.level", + "highschooler.grade" + ] + ] + }, + { + "question": "return the #grade for the high schooler# named kyle.", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "level", + "class_grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "grade for the high schooler", + "highschooler.grade" + ], + [ + "grade for the high schooler", + "highschooler.level" + ], + [ + "grade for the high schooler", + "highschooler.class_grade" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.grade" + ], + [ + 0, + "highschooler.level" + ], + [ + 0, + "highschooler.class_grade" + ] + ], + "linking_list_col": [ + [ + "highschooler.level", + "highschooler.class_grade" + ], + [ + "highschooler.grade", + "highschooler.class_grade" + ], + [ + "highschooler.level", + "highschooler.grade" + ] + ] + }, + { + "question": "show the #names of all high schoolers in grade# 10.", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "full_name", + "given_name" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "names of all high schoolers in grade", + "highschooler.name" + ], + [ + "names of all high schoolers in grade", + "highschooler.full_name" + ], + [ + "names of all high schoolers in grade", + "highschooler.given_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.name" + ], + [ + 0, + "highschooler.full_name" + ], + [ + 0, + "highschooler.given_name" + ] + ], + "linking_list_col": [ + [ + "highschooler.full_name", + "highschooler.given_name" + ], + [ + "highschooler.name", + "highschooler.given_name" + ], + [ + "highschooler.full_name", + "highschooler.name" + ] + ] + }, + { + "question": "what are the #names of all high schoolers in grade# 10?", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "full_name", + "given_name" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "names of all high schoolers in grade", + "highschooler.name" + ], + [ + "names of all high schoolers in grade", + "highschooler.full_name" + ], + [ + "names of all high schoolers in grade", + "highschooler.given_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.name" + ], + [ + 0, + "highschooler.full_name" + ], + [ + 0, + "highschooler.given_name" + ] + ], + "linking_list_col": [ + [ + "highschooler.full_name", + "highschooler.given_name" + ], + [ + "highschooler.name", + "highschooler.given_name" + ], + [ + "highschooler.full_name", + "highschooler.name" + ] + ] + }, + { + "question": "show the #id of the high schooler# named kyle.", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "student_id", + "enrollment_id" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "ID of the high schooler", + "highschooler.id" + ], + [ + "ID of the high schooler", + "highschooler.student_id" + ], + [ + "ID of the high schooler", + "highschooler.enrollment_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.id" + ], + [ + 0, + "highschooler.student_id" + ], + [ + 0, + "highschooler.enrollment_id" + ] + ], + "linking_list_col": [ + [ + "highschooler.student_id", + "highschooler.enrollment_id" + ], + [ + "highschooler.id", + "highschooler.enrollment_id" + ], + [ + "highschooler.student_id", + "highschooler.id" + ] + ] + }, + { + "question": "show the number of #high schoolers for each grade# .", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "level", + "class_grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "high schoolers for each grade", + "highschooler.grade" + ], + [ + "high schoolers for each grade", + "highschooler.level" + ], + [ + "high schoolers for each grade", + "highschooler.class_grade" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.grade" + ], + [ + 0, + "highschooler.level" + ], + [ + 0, + "highschooler.class_grade" + ] + ], + "linking_list_col": [ + [ + "highschooler.level", + "highschooler.class_grade" + ], + [ + "highschooler.grade", + "highschooler.class_grade" + ], + [ + "highschooler.level", + "highschooler.grade" + ] + ] + }, + { + "question": "which #grade# has the most high schoolers?", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "level", + "class_grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "grade", + "highschooler.grade" + ], + [ + "grade", + "highschooler.level" + ], + [ + "grade", + "highschooler.class_grade" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.grade" + ], + [ + 0, + "highschooler.level" + ], + [ + 0, + "highschooler.class_grade" + ] + ], + "linking_list_col": [ + [ + "highschooler.level", + "highschooler.class_grade" + ], + [ + "highschooler.grade", + "highschooler.class_grade" + ], + [ + "highschooler.level", + "highschooler.grade" + ] + ] + }, + { + "question": "return the #grade# that has the greatest number of high schoolers.", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "level", + "class_grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "grade", + "highschooler.grade" + ], + [ + "grade", + "highschooler.level" + ], + [ + "grade", + "highschooler.class_grade" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.grade" + ], + [ + 0, + "highschooler.level" + ], + [ + 0, + "highschooler.class_grade" + ] + ], + "linking_list_col": [ + [ + "highschooler.level", + "highschooler.class_grade" + ], + [ + "highschooler.grade", + "highschooler.class_grade" + ], + [ + "highschooler.level", + "highschooler.grade" + ] + ] + }, + { + "question": "show me all #grades# that have at least 4 students.", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "level", + "class_grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "grades", + "highschooler.grade" + ], + [ + "grades", + "highschooler.level" + ], + [ + "grades", + "highschooler.class_grade" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.grade" + ], + [ + 0, + "highschooler.level" + ], + [ + 0, + "highschooler.class_grade" + ] + ], + "linking_list_col": [ + [ + "highschooler.level", + "highschooler.class_grade" + ], + [ + "highschooler.grade", + "highschooler.class_grade" + ], + [ + "highschooler.level", + "highschooler.grade" + ] + ] + }, + { + "question": "which #grades# have 4 or more high schoolers?", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "level", + "class_grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "grades", + "highschooler.grade" + ], + [ + "grades", + "highschooler.level" + ], + [ + "grades", + "highschooler.class_grade" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.grade" + ], + [ + 0, + "highschooler.level" + ], + [ + 0, + "highschooler.class_grade" + ] + ], + "linking_list_col": [ + [ + "highschooler.level", + "highschooler.class_grade" + ], + [ + "highschooler.grade", + "highschooler.class_grade" + ], + [ + "highschooler.level", + "highschooler.grade" + ] + ] + }, + { + "question": "show the #student ids# and numbers of friends corresponding to each.", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id", + "user_id", + "person_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "student IDs", + "friend.student_id" + ], + [ + "student IDs", + "friend.user_id" + ], + [ + "student IDs", + "friend.person_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "friend.student_id" + ], + [ + 0, + "friend.user_id" + ], + [ + 0, + "friend.person_id" + ] + ], + "linking_list_col": [ + [ + "friend.user_id", + "friend.person_id" + ], + [ + "friend.student_id", + "friend.person_id" + ], + [ + "friend.user_id", + "friend.student_id" + ] + ] + }, + { + "question": "how many friends does each #student# have?", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id", + "user_id", + "person_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "student", + "friend.student_id" + ], + [ + "student", + "friend.user_id" + ], + [ + "student", + "friend.person_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "friend.student_id" + ], + [ + 0, + "friend.user_id" + ], + [ + 0, + "friend.person_id" + ] + ], + "linking_list_col": [ + [ + "friend.user_id", + "friend.person_id" + ], + [ + "friend.student_id", + "friend.person_id" + ], + [ + "friend.user_id", + "friend.student_id" + ] + ] + }, + { + "question": "show the #names of high school students# and their corresponding number of friends.", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "full_name", + "given_name" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "names of high school students", + "highschooler.name" + ], + [ + "names of high school students", + "highschooler.full_name" + ], + [ + "names of high school students", + "highschooler.given_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.name" + ], + [ + 0, + "highschooler.full_name" + ], + [ + 0, + "highschooler.given_name" + ] + ], + "linking_list_col": [ + [ + "highschooler.full_name", + "highschooler.given_name" + ], + [ + "highschooler.name", + "highschooler.given_name" + ], + [ + "highschooler.full_name", + "highschooler.name" + ] + ] + }, + { + "question": "what are the #names of the high schoolers# and how many friends does each have?", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "full_name", + "given_name" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "names of the high schoolers", + "highschooler.name" + ], + [ + "names of the high schoolers", + "highschooler.full_name" + ], + [ + "names of the high schoolers", + "highschooler.given_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.name" + ], + [ + 0, + "highschooler.full_name" + ], + [ + 0, + "highschooler.given_name" + ] + ], + "linking_list_col": [ + [ + "highschooler.full_name", + "highschooler.given_name" + ], + [ + "highschooler.name", + "highschooler.given_name" + ], + [ + "highschooler.full_name", + "highschooler.name" + ] + ] + }, + { + "question": "what is the #name of the high schooler# who has the greatest number of friends?", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "full_name", + "given_name" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "name of the high schooler", + "highschooler.name" + ], + [ + "name of the high schooler", + "highschooler.full_name" + ], + [ + "name of the high schooler", + "highschooler.given_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.name" + ], + [ + 0, + "highschooler.full_name" + ], + [ + 0, + "highschooler.given_name" + ] + ], + "linking_list_col": [ + [ + "highschooler.full_name", + "highschooler.given_name" + ], + [ + "highschooler.name", + "highschooler.given_name" + ], + [ + "highschooler.full_name", + "highschooler.name" + ] + ] + }, + { + "question": "return the #name of the high school student# with the most friends.", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "full_name", + "given_name" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "name of the high school student", + "highschooler.name" + ], + [ + "name of the high school student", + "highschooler.full_name" + ], + [ + "name of the high school student", + "highschooler.given_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.name" + ], + [ + 0, + "highschooler.full_name" + ], + [ + 0, + "highschooler.given_name" + ] + ], + "linking_list_col": [ + [ + "highschooler.full_name", + "highschooler.given_name" + ], + [ + "highschooler.name", + "highschooler.given_name" + ], + [ + "highschooler.full_name", + "highschooler.name" + ] + ] + }, + { + "question": "show the #names of high schoolers# who have at least 3 friends.", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "full_name", + "given_name" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "names of high schoolers", + "highschooler.name" + ], + [ + "names of high schoolers", + "highschooler.full_name" + ], + [ + "names of high schoolers", + "highschooler.given_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.name" + ], + [ + 0, + "highschooler.full_name" + ], + [ + 0, + "highschooler.given_name" + ] + ], + "linking_list_col": [ + [ + "highschooler.full_name", + "highschooler.given_name" + ], + [ + "highschooler.name", + "highschooler.given_name" + ], + [ + "highschooler.full_name", + "highschooler.name" + ] + ] + }, + { + "question": "what are the #names of high schoolers# who have 3 or more friends?", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "full_name", + "given_name" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "names of high schoolers", + "highschooler.name" + ], + [ + "names of high schoolers", + "highschooler.full_name" + ], + [ + "names of high schoolers", + "highschooler.given_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.name" + ], + [ + 0, + "highschooler.full_name" + ], + [ + 0, + "highschooler.given_name" + ] + ], + "linking_list_col": [ + [ + "highschooler.full_name", + "highschooler.given_name" + ], + [ + "highschooler.name", + "highschooler.given_name" + ], + [ + "highschooler.full_name", + "highschooler.name" + ] + ] + }, + { + "question": "show the #names of all of the high schooler# kyle's friends.", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "full_name", + "given_name" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "names of all of the high schooler", + "highschooler.name" + ], + [ + "names of all of the high schooler", + "highschooler.full_name" + ], + [ + "names of all of the high schooler", + "highschooler.given_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.name" + ], + [ + 0, + "highschooler.full_name" + ], + [ + 0, + "highschooler.given_name" + ] + ], + "linking_list_col": [ + [ + "highschooler.full_name", + "highschooler.given_name" + ], + [ + "highschooler.name", + "highschooler.given_name" + ], + [ + "highschooler.full_name", + "highschooler.name" + ] + ] + }, + { + "question": "show #ids of all students# who do not have any friends.", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "student_id", + "enrollment_id" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "ids of all students", + "highschooler.id" + ], + [ + "ids of all students", + "highschooler.student_id" + ], + [ + "ids of all students", + "highschooler.enrollment_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.id" + ], + [ + 0, + "highschooler.student_id" + ], + [ + 0, + "highschooler.enrollment_id" + ] + ], + "linking_list_col": [ + [ + "highschooler.student_id", + "highschooler.enrollment_id" + ], + [ + "highschooler.id", + "highschooler.enrollment_id" + ], + [ + "highschooler.student_id", + "highschooler.id" + ] + ] + }, + { + "question": "what are the #ids of high school students# who do not have friends?", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "student_id", + "enrollment_id" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "ids of high school students", + "highschooler.id" + ], + [ + "ids of high school students", + "highschooler.student_id" + ], + [ + "ids of high school students", + "highschooler.enrollment_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.id" + ], + [ + 0, + "highschooler.student_id" + ], + [ + 0, + "highschooler.enrollment_id" + ] + ], + "linking_list_col": [ + [ + "highschooler.student_id", + "highschooler.enrollment_id" + ], + [ + "highschooler.id", + "highschooler.enrollment_id" + ], + [ + "highschooler.student_id", + "highschooler.id" + ] + ] + }, + { + "question": "show #names of all high school students# who do not have any friends.", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "full_name", + "given_name" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "names of all high school students", + "highschooler.name" + ], + [ + "names of all high school students", + "highschooler.full_name" + ], + [ + "names of all high school students", + "highschooler.given_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.name" + ], + [ + 0, + "highschooler.full_name" + ], + [ + 0, + "highschooler.given_name" + ] + ], + "linking_list_col": [ + [ + "highschooler.full_name", + "highschooler.given_name" + ], + [ + "highschooler.name", + "highschooler.given_name" + ], + [ + "highschooler.full_name", + "highschooler.name" + ] + ] + }, + { + "question": "what are the #names of students# who have no friends?", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "full_name", + "given_name" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "names of students", + "highschooler.name" + ], + [ + "names of students", + "highschooler.full_name" + ], + [ + "names of students", + "highschooler.given_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.name" + ], + [ + 0, + "highschooler.full_name" + ], + [ + 0, + "highschooler.given_name" + ] + ], + "linking_list_col": [ + [ + "highschooler.full_name", + "highschooler.given_name" + ], + [ + "highschooler.name", + "highschooler.given_name" + ], + [ + "highschooler.full_name", + "highschooler.name" + ] + ] + }, + { + "question": "show #name of all students# who have some friends and also are liked by someone else.", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "full_name", + "given_name" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "name of all students", + "highschooler.name" + ], + [ + "name of all students", + "highschooler.full_name" + ], + [ + "name of all students", + "highschooler.given_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.name" + ], + [ + 0, + "highschooler.full_name" + ], + [ + 0, + "highschooler.given_name" + ] + ], + "linking_list_col": [ + [ + "highschooler.full_name", + "highschooler.given_name" + ], + [ + "highschooler.name", + "highschooler.given_name" + ], + [ + "highschooler.full_name", + "highschooler.name" + ] + ] + }, + { + "question": "what are the #names of high schoolers# who both have friends and are liked?", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "full_name", + "given_name" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "names of high schoolers", + "highschooler.name" + ], + [ + "names of high schoolers", + "highschooler.full_name" + ], + [ + "names of high schoolers", + "highschooler.given_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.name" + ], + [ + 0, + "highschooler.full_name" + ], + [ + 0, + "highschooler.given_name" + ] + ], + "linking_list_col": [ + [ + "highschooler.full_name", + "highschooler.given_name" + ], + [ + "highschooler.name", + "highschooler.given_name" + ], + [ + "highschooler.full_name", + "highschooler.name" + ] + ] + }, + { + "question": "count the #number of likes for each student id# .", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id", + "liker_id", + "admirer_id" + ] + }, + "linking_list": [ + [ + "number of likes for each student id", + "likes.student_id" + ], + [ + "number of likes for each student id", + "likes.liker_id" + ], + [ + "number of likes for each student id", + "likes.admirer_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "likes.student_id" + ], + [ + 0, + "likes.liker_id" + ], + [ + 0, + "likes.admirer_id" + ] + ], + "linking_list_col": [ + [ + "likes.liker_id", + "likes.admirer_id" + ], + [ + "likes.student_id", + "likes.admirer_id" + ], + [ + "likes.liker_id", + "likes.student_id" + ] + ] + }, + { + "question": "show the #names of high schoolers# who have likes, and numbers of likes for each.", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "full_name", + "given_name" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "names of high schoolers", + "highschooler.name" + ], + [ + "names of high schoolers", + "highschooler.full_name" + ], + [ + "names of high schoolers", + "highschooler.given_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.name" + ], + [ + 0, + "highschooler.full_name" + ], + [ + 0, + "highschooler.given_name" + ] + ], + "linking_list_col": [ + [ + "highschooler.full_name", + "highschooler.given_name" + ], + [ + "highschooler.name", + "highschooler.given_name" + ], + [ + "highschooler.full_name", + "highschooler.name" + ] + ] + }, + { + "question": "what are the #names of high schoolers# who have likes, and how many likes does each have?", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "full_name", + "given_name" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "names of high schoolers", + "highschooler.name" + ], + [ + "names of high schoolers", + "highschooler.full_name" + ], + [ + "names of high schoolers", + "highschooler.given_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.name" + ], + [ + 0, + "highschooler.full_name" + ], + [ + 0, + "highschooler.given_name" + ] + ], + "linking_list_col": [ + [ + "highschooler.full_name", + "highschooler.given_name" + ], + [ + "highschooler.name", + "highschooler.given_name" + ], + [ + "highschooler.full_name", + "highschooler.name" + ] + ] + }, + { + "question": "what is the #name of the high schooler# who has the greatest number of likes?", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "full_name", + "given_name" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "name of the high schooler", + "highschooler.name" + ], + [ + "name of the high schooler", + "highschooler.full_name" + ], + [ + "name of the high schooler", + "highschooler.given_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.name" + ], + [ + 0, + "highschooler.full_name" + ], + [ + 0, + "highschooler.given_name" + ] + ], + "linking_list_col": [ + [ + "highschooler.full_name", + "highschooler.given_name" + ], + [ + "highschooler.name", + "highschooler.given_name" + ], + [ + "highschooler.full_name", + "highschooler.name" + ] + ] + }, + { + "question": "give the #name of the student# with the most likes.", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "full_name", + "given_name" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "name of the student", + "highschooler.name" + ], + [ + "name of the student", + "highschooler.full_name" + ], + [ + "name of the student", + "highschooler.given_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.name" + ], + [ + 0, + "highschooler.full_name" + ], + [ + 0, + "highschooler.given_name" + ] + ], + "linking_list_col": [ + [ + "highschooler.full_name", + "highschooler.given_name" + ], + [ + "highschooler.name", + "highschooler.given_name" + ], + [ + "highschooler.full_name", + "highschooler.name" + ] + ] + }, + { + "question": "show the #names of students# who have at least 2 likes.", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "full_name", + "given_name" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "names of students", + "highschooler.name" + ], + [ + "names of students", + "highschooler.full_name" + ], + [ + "names of students", + "highschooler.given_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.name" + ], + [ + 0, + "highschooler.full_name" + ], + [ + 0, + "highschooler.given_name" + ] + ], + "linking_list_col": [ + [ + "highschooler.full_name", + "highschooler.given_name" + ], + [ + "highschooler.name", + "highschooler.given_name" + ], + [ + "highschooler.full_name", + "highschooler.name" + ] + ] + }, + { + "question": "what are the #names of students# who have 2 or more likes?", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "full_name", + "given_name" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "names of students", + "highschooler.name" + ], + [ + "names of students", + "highschooler.full_name" + ], + [ + "names of students", + "highschooler.given_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.name" + ], + [ + 0, + "highschooler.full_name" + ], + [ + 0, + "highschooler.given_name" + ] + ], + "linking_list_col": [ + [ + "highschooler.full_name", + "highschooler.given_name" + ], + [ + "highschooler.name", + "highschooler.given_name" + ], + [ + "highschooler.full_name", + "highschooler.name" + ] + ] + }, + { + "question": "show the #names# of students who have a #grade# higher than 5 and have at least 2 friends.", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "full_name", + "given_name" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "names", + "highschooler.name" + ], + [ + "names", + "highschooler.full_name" + ], + [ + "names", + "highschooler.given_name" + ], + [ + "grade", + "highschooler.grade" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.name" + ], + [ + 0, + "highschooler.full_name" + ], + [ + 0, + "highschooler.given_name" + ], + [ + 1, + "highschooler.grade" + ] + ], + "linking_list_col": [ + [ + "highschooler.full_name", + "highschooler.given_name" + ], + [ + "highschooler.name", + "highschooler.given_name" + ], + [ + "highschooler.full_name", + "highschooler.name" + ] + ] + }, + { + "question": "what are the #names# of high schoolers who have a #grade# of over 5 and have 2 or more friends?", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "full_name", + "given_name" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "names", + "highschooler.name" + ], + [ + "names", + "highschooler.full_name" + ], + [ + "names", + "highschooler.given_name" + ], + [ + "grade", + "highschooler.grade" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.name" + ], + [ + 0, + "highschooler.full_name" + ], + [ + 0, + "highschooler.given_name" + ], + [ + 1, + "highschooler.grade" + ] + ], + "linking_list_col": [ + [ + "highschooler.full_name", + "highschooler.given_name" + ], + [ + "highschooler.name", + "highschooler.given_name" + ], + [ + "highschooler.full_name", + "highschooler.name" + ] + ] + }, + { + "question": "find the #average grade of all students# who have some friends.", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "level", + "class_grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "average grade of all students", + "highschooler.grade" + ], + [ + "average grade of all students", + "highschooler.level" + ], + [ + "average grade of all students", + "highschooler.class_grade" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.grade" + ], + [ + 0, + "highschooler.level" + ], + [ + 0, + "highschooler.class_grade" + ] + ], + "linking_list_col": [ + [ + "highschooler.level", + "highschooler.class_grade" + ], + [ + "highschooler.grade", + "highschooler.class_grade" + ], + [ + "highschooler.level", + "highschooler.grade" + ] + ] + }, + { + "question": "what is the #average grade of students# who have friends?", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "level", + "class_grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "average grade of students", + "highschooler.grade" + ], + [ + "average grade of students", + "highschooler.level" + ], + [ + "average grade of students", + "highschooler.class_grade" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.grade" + ], + [ + 0, + "highschooler.level" + ], + [ + 0, + "highschooler.class_grade" + ] + ], + "linking_list_col": [ + [ + "highschooler.level", + "highschooler.class_grade" + ], + [ + "highschooler.grade", + "highschooler.class_grade" + ], + [ + "highschooler.level", + "highschooler.grade" + ] + ] + }, + { + "question": "find the #minimum grade of students# who have no friends.", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "level", + "class_grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "minimum grade of students", + "highschooler.grade" + ], + [ + "minimum grade of students", + "highschooler.level" + ], + [ + "minimum grade of students", + "highschooler.class_grade" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.grade" + ], + [ + 0, + "highschooler.level" + ], + [ + 0, + "highschooler.class_grade" + ] + ], + "linking_list_col": [ + [ + "highschooler.level", + "highschooler.class_grade" + ], + [ + "highschooler.grade", + "highschooler.class_grade" + ], + [ + "highschooler.level", + "highschooler.grade" + ] + ] + }, + { + "question": "what is the #lowest grade of students# who do not have any friends?", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "level", + "class_grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "lowest grade of students", + "highschooler.grade" + ], + [ + "lowest grade of students", + "highschooler.level" + ], + [ + "lowest grade of students", + "highschooler.class_grade" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.grade" + ], + [ + 0, + "highschooler.level" + ], + [ + 0, + "highschooler.class_grade" + ] + ], + "linking_list_col": [ + [ + "highschooler.level", + "highschooler.class_grade" + ], + [ + "highschooler.grade", + "highschooler.class_grade" + ], + [ + "highschooler.level", + "highschooler.grade" + ] + ] + }, + { + "question": "which #states# have both owners and professionals living there?", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number", + "province", + "region" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "states", + "owners.state" + ], + [ + "states", + "owners.province" + ], + [ + "states", + "owners.region" + ] + ], + "linking_list_idx": [ + [ + 0, + "owners.state" + ], + [ + 0, + "owners.province" + ], + [ + 0, + "owners.region" + ] + ], + "linking_list_col": [ + [ + "owners.province", + "owners.region" + ], + [ + "owners.state", + "owners.region" + ], + [ + "owners.province", + "owners.state" + ] + ] + }, + { + "question": "find the #states# where both owners and professionals live.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number", + "province", + "region" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "states", + "owners.state" + ], + [ + "states", + "owners.province" + ], + [ + "states", + "owners.region" + ] + ], + "linking_list_idx": [ + [ + 0, + "owners.state" + ], + [ + 0, + "owners.province" + ], + [ + 0, + "owners.region" + ] + ], + "linking_list_col": [ + [ + "owners.province", + "owners.region" + ], + [ + "owners.state", + "owners.region" + ], + [ + "owners.province", + "owners.state" + ] + ] + }, + { + "question": "what is the #average age of the dogs# who have gone through any treatments?", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed", + "years_old", + "lifespan" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "average age of the dogs", + "dogs.age" + ], + [ + "average age of the dogs", + "dogs.years_old" + ], + [ + "average age of the dogs", + "dogs.lifespan" + ] + ], + "linking_list_idx": [ + [ + 0, + "dogs.age" + ], + [ + 0, + "dogs.years_old" + ], + [ + 0, + "dogs.lifespan" + ] + ], + "linking_list_col": [ + [ + "dogs.years_old", + "dogs.lifespan" + ], + [ + "dogs.age", + "dogs.lifespan" + ], + [ + "dogs.years_old", + "dogs.age" + ] + ] + }, + { + "question": "find the #average age of the dogs# who went through treatments.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed", + "years_old", + "lifespan" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "average age of the dogs", + "dogs.age" + ], + [ + "average age of the dogs", + "dogs.years_old" + ], + [ + "average age of the dogs", + "dogs.lifespan" + ] + ], + "linking_list_idx": [ + [ + 0, + "dogs.age" + ], + [ + 0, + "dogs.years_old" + ], + [ + 0, + "dogs.lifespan" + ] + ], + "linking_list_col": [ + [ + "dogs.years_old", + "dogs.lifespan" + ], + [ + "dogs.age", + "dogs.lifespan" + ], + [ + "dogs.years_old", + "dogs.age" + ] + ] + }, + { + "question": "which professionals live in the #state# of indiana or have done treatment on more than 2 treatments? list his or her #id# , #last name# and #cell phone# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number", + "mobile_number", + "phone_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "state", + "professionals.state" + ], + [ + "id", + "professionals.professional_id" + ], + [ + "last name", + "professionals.last_name" + ], + [ + "cell phone", + "professionals.cell_number" + ], + [ + "cell phone", + "professionals.mobile_number" + ], + [ + "cell phone", + "professionals.phone_number" + ] + ], + "linking_list_idx": [ + [ + 0, + "professionals.state" + ], + [ + 1, + "professionals.professional_id" + ], + [ + 2, + "professionals.last_name" + ], + [ + 3, + "professionals.cell_number" + ], + [ + 3, + "professionals.mobile_number" + ], + [ + 3, + "professionals.phone_number" + ] + ], + "linking_list_col": [ + [ + "professionals.mobile_number", + "professionals.phone_number" + ], + [ + "professionals.cell_number", + "professionals.phone_number" + ], + [ + "professionals.mobile_number", + "professionals.cell_number" + ] + ] + }, + { + "question": "find the #id# , #last name# and #cell phone# of the professionals who live in the #state# of indiana or have performed more than two treatments.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number", + "mobile_number", + "phone_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "id", + "professionals.professional_id" + ], + [ + "last name", + "professionals.last_name" + ], + [ + "cell phone", + "professionals.cell_number" + ], + [ + "cell phone", + "professionals.mobile_number" + ], + [ + "cell phone", + "professionals.phone_number" + ], + [ + "state", + "professionals.state" + ] + ], + "linking_list_idx": [ + [ + 0, + "professionals.professional_id" + ], + [ + 1, + "professionals.last_name" + ], + [ + 2, + "professionals.cell_number" + ], + [ + 2, + "professionals.mobile_number" + ], + [ + 2, + "professionals.phone_number" + ], + [ + 3, + "professionals.state" + ] + ], + "linking_list_col": [ + [ + "professionals.mobile_number", + "professionals.phone_number" + ], + [ + "professionals.cell_number", + "professionals.phone_number" + ], + [ + "professionals.mobile_number", + "professionals.cell_number" + ] + ] + }, + { + "question": "which professional did not operate any treatment on dogs? list the #professional's id# , #role# and #email# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number", + "e-mail", + "electronic_address" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "role", + "professionals.role_code" + ], + [ + "email", + "professionals.email_address" + ], + [ + "email", + "professionals.e-mail" + ], + [ + "email", + "professionals.electronic_address" + ], + [ + "professional's id", + "professionals.professional_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "professionals.role_code" + ], + [ + 1, + "professionals.email_address" + ], + [ + 1, + "professionals.e-mail" + ], + [ + 1, + "professionals.electronic_address" + ], + [ + 2, + "professionals.professional_id" + ] + ], + "linking_list_col": [ + [ + "professionals.e-mail", + "professionals.electronic_address" + ], + [ + "professionals.email_address", + "professionals.electronic_address" + ], + [ + "professionals.e-mail", + "professionals.email_address" + ] + ] + }, + { + "question": "give me the #id# , #role# and #email of the professionals# who did not perform any treatment on dogs.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number", + "e-mail", + "electronic_address" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "id", + "professionals.professional_id" + ], + [ + "role", + "professionals.role_code" + ], + [ + "email of the professionals", + "professionals.email_address" + ], + [ + "email of the professionals", + "professionals.e-mail" + ], + [ + "email of the professionals", + "professionals.electronic_address" + ] + ], + "linking_list_idx": [ + [ + 0, + "professionals.professional_id" + ], + [ + 1, + "professionals.role_code" + ], + [ + 2, + "professionals.email_address" + ], + [ + 2, + "professionals.e-mail" + ], + [ + 2, + "professionals.electronic_address" + ] + ], + "linking_list_col": [ + [ + "professionals.e-mail", + "professionals.electronic_address" + ], + [ + "professionals.email_address", + "professionals.electronic_address" + ], + [ + "professionals.e-mail", + "professionals.email_address" + ] + ] + }, + { + "question": "which professionals have done at least two treatments? list the #professional's id# , #role# , and #first name# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number", + "forename", + "given_name" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "role", + "professionals.role_code" + ], + [ + "first name", + "professionals.first_name" + ], + [ + "first name", + "professionals.forename" + ], + [ + "first name", + "professionals.given_name" + ], + [ + "professional's id", + "professionals.professional_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "professionals.role_code" + ], + [ + 1, + "professionals.first_name" + ], + [ + 1, + "professionals.forename" + ], + [ + 1, + "professionals.given_name" + ], + [ + 2, + "professionals.professional_id" + ] + ], + "linking_list_col": [ + [ + "professionals.forename", + "professionals.given_name" + ], + [ + "professionals.first_name", + "professionals.given_name" + ], + [ + "professionals.forename", + "professionals.first_name" + ] + ] + }, + { + "question": "what are the #id# , #role# , and #first name of the professionals# who have performed two or more treatments?", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number", + "forename", + "given_name" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "id", + "professionals.professional_id" + ], + [ + "role", + "professionals.role_code" + ], + [ + "first name of the professionals", + "professionals.first_name" + ], + [ + "first name of the professionals", + "professionals.forename" + ], + [ + "first name of the professionals", + "professionals.given_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "professionals.professional_id" + ], + [ + 1, + "professionals.role_code" + ], + [ + 2, + "professionals.first_name" + ], + [ + 2, + "professionals.forename" + ], + [ + 2, + "professionals.given_name" + ] + ], + "linking_list_col": [ + [ + "professionals.forename", + "professionals.given_name" + ], + [ + "professionals.first_name", + "professionals.given_name" + ], + [ + "professionals.forename", + "professionals.first_name" + ] + ] + }, + { + "question": "what is the #name of the breed# with the most dogs?", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name", + "name", + "title" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "name of the breed", + "breeds.breed_name" + ], + [ + "name of the breed", + "breeds.name" + ], + [ + "name of the breed", + "breeds.title" + ] + ], + "linking_list_idx": [ + [ + 0, + "breeds.breed_name" + ], + [ + 0, + "breeds.name" + ], + [ + 0, + "breeds.title" + ] + ], + "linking_list_col": [ + [ + "breeds.name", + "breeds.title" + ], + [ + "breeds.breed_name", + "breeds.title" + ], + [ + "breeds.name", + "breeds.breed_name" + ] + ] + }, + { + "question": "which owner has paid for the most treatments on his or her dogs? list the #owner id# and #last name# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number", + "person_id", + "client_id" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "owner id", + "owners.owner_id" + ], + [ + "owner id", + "owners.person_id" + ], + [ + "owner id", + "owners.client_id" + ], + [ + "last name", + "owners.last_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "owners.owner_id" + ], + [ + 0, + "owners.person_id" + ], + [ + 0, + "owners.client_id" + ], + [ + 1, + "owners.last_name" + ] + ], + "linking_list_col": [ + [ + "owners.person_id", + "owners.client_id" + ], + [ + "owners.owner_id", + "owners.client_id" + ], + [ + "owners.person_id", + "owners.owner_id" + ] + ] + }, + { + "question": "what is the #description of the treatment type that costs# the least money in total?", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description", + "treatment_description", + "type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "description of the treatment type that costs", + "treatment_types.treatment_type_description" + ], + [ + "description of the treatment type that costs", + "treatment_types.treatment_description" + ], + [ + "description of the treatment type that costs", + "treatment_types.type_description" + ] + ], + "linking_list_idx": [ + [ + 0, + "treatment_types.treatment_type_description" + ], + [ + 0, + "treatment_types.treatment_description" + ], + [ + 0, + "treatment_types.type_description" + ] + ], + "linking_list_col": [ + [ + "treatment_types.treatment_description", + "treatment_types.type_description" + ], + [ + "treatment_types.treatment_type_description", + "treatment_types.type_description" + ], + [ + "treatment_types.treatment_description", + "treatment_types.treatment_type_description" + ] + ] + }, + { + "question": "give me the #description of the treatment type# whose #total cost# is the lowest.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description", + "treatment_description", + "type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "description of the treatment type", + "treatment_types.treatment_type_description" + ], + [ + "description of the treatment type", + "treatment_types.treatment_description" + ], + [ + "description of the treatment type", + "treatment_types.type_description" + ], + [ + "total cost", + "treatments.cost_of_treatment" + ] + ], + "linking_list_idx": [ + [ + 0, + "treatment_types.treatment_type_description" + ], + [ + 0, + "treatment_types.treatment_description" + ], + [ + 0, + "treatment_types.type_description" + ], + [ + 1, + "treatments.cost_of_treatment" + ] + ], + "linking_list_col": [ + [ + "treatment_types.treatment_description", + "treatment_types.type_description" + ], + [ + "treatment_types.treatment_type_description", + "treatment_types.type_description" + ], + [ + "treatment_types.treatment_description", + "treatment_types.treatment_type_description" + ] + ] + }, + { + "question": "which owner has paid the largest #amount of money# in total for their dogs? show the #owner id# and #zip code# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number", + "person_id", + "client_id" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "amount of money", + "treatments.cost_of_treatment" + ], + [ + "owner id", + "owners.owner_id" + ], + [ + "owner id", + "owners.person_id" + ], + [ + "owner id", + "owners.client_id" + ], + [ + "zip code", + "owners.zip_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "treatments.cost_of_treatment" + ], + [ + 1, + "owners.owner_id" + ], + [ + 1, + "owners.person_id" + ], + [ + 1, + "owners.client_id" + ], + [ + 2, + "owners.zip_code" + ] + ], + "linking_list_col": [ + [ + "owners.person_id", + "owners.client_id" + ], + [ + "owners.owner_id", + "owners.client_id" + ], + [ + "owners.person_id", + "owners.owner_id" + ] + ] + }, + { + "question": "find the #owner id# and #zip code# of the owner who spent the most #money# in total for his or her dogs.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number", + "person_id", + "client_id" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "owner id", + "owners.owner_id" + ], + [ + "owner id", + "owners.person_id" + ], + [ + "owner id", + "owners.client_id" + ], + [ + "zip code", + "owners.zip_code" + ], + [ + "money", + "treatments.cost_of_treatment" + ] + ], + "linking_list_idx": [ + [ + 0, + "owners.owner_id" + ], + [ + 0, + "owners.person_id" + ], + [ + 0, + "owners.client_id" + ], + [ + 1, + "owners.zip_code" + ], + [ + 2, + "treatments.cost_of_treatment" + ] + ], + "linking_list_col": [ + [ + "owners.person_id", + "owners.client_id" + ], + [ + "owners.owner_id", + "owners.client_id" + ], + [ + "owners.person_id", + "owners.owner_id" + ] + ] + }, + { + "question": "which professionals have done at least two types of treatments? list the #professional id# and #cell phone# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number", + "mobile_number", + "phone_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "professional id", + "professionals.professional_id" + ], + [ + "cell phone", + "professionals.cell_number" + ], + [ + "cell phone", + "professionals.mobile_number" + ], + [ + "cell phone", + "professionals.phone_number" + ] + ], + "linking_list_idx": [ + [ + 0, + "professionals.professional_id" + ], + [ + 1, + "professionals.cell_number" + ], + [ + 1, + "professionals.mobile_number" + ], + [ + 1, + "professionals.phone_number" + ] + ], + "linking_list_col": [ + [ + "professionals.mobile_number", + "professionals.phone_number" + ], + [ + "professionals.cell_number", + "professionals.phone_number" + ], + [ + "professionals.mobile_number", + "professionals.cell_number" + ] + ] + }, + { + "question": "find the #id# and #cell phone of the professionals# who operate two or more #types of treatments# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number", + "mobile_number", + "phone_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "id", + "professionals.professional_id" + ], + [ + "cell phone of the professionals", + "professionals.cell_number" + ], + [ + "cell phone of the professionals", + "professionals.mobile_number" + ], + [ + "cell phone of the professionals", + "professionals.phone_number" + ], + [ + "types of treatments", + "treatments.treatment_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "professionals.professional_id" + ], + [ + 1, + "professionals.cell_number" + ], + [ + 1, + "professionals.mobile_number" + ], + [ + 1, + "professionals.phone_number" + ], + [ + 2, + "treatments.treatment_type_code" + ] + ], + "linking_list_col": [ + [ + "professionals.mobile_number", + "professionals.phone_number" + ], + [ + "professionals.cell_number", + "professionals.phone_number" + ], + [ + "professionals.mobile_number", + "professionals.cell_number" + ] + ] + }, + { + "question": "what are the #first name# and #last name# of the professionals who have done #treatment with cost# below average?", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number", + "forename", + "given_name" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "first name", + "professionals.first_name" + ], + [ + "first name", + "professionals.forename" + ], + [ + "first name", + "professionals.given_name" + ], + [ + "last name", + "professionals.last_name" + ], + [ + "treatment with cost", + "treatments.cost_of_treatment" + ] + ], + "linking_list_idx": [ + [ + 0, + "professionals.first_name" + ], + [ + 0, + "professionals.forename" + ], + [ + 0, + "professionals.given_name" + ], + [ + 1, + "professionals.last_name" + ], + [ + 2, + "treatments.cost_of_treatment" + ] + ], + "linking_list_col": [ + [ + "professionals.forename", + "professionals.given_name" + ], + [ + "professionals.first_name", + "professionals.given_name" + ], + [ + "professionals.forename", + "professionals.first_name" + ] + ] + }, + { + "question": "which professionals have operated a treatment that #costs# less than the average? give me theor #first names# and #last names# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number", + "forename", + "given_name" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "costs", + "treatments.cost_of_treatment" + ], + [ + "first names", + "professionals.first_name" + ], + [ + "first names", + "professionals.forename" + ], + [ + "first names", + "professionals.given_name" + ], + [ + "last names", + "professionals.last_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "treatments.cost_of_treatment" + ], + [ + 1, + "professionals.first_name" + ], + [ + 1, + "professionals.forename" + ], + [ + 1, + "professionals.given_name" + ], + [ + 2, + "professionals.last_name" + ] + ], + "linking_list_col": [ + [ + "professionals.forename", + "professionals.given_name" + ], + [ + "professionals.first_name", + "professionals.given_name" + ], + [ + "professionals.forename", + "professionals.first_name" + ] + ] + }, + { + "question": "list the #date of each treatment# , together with the #first name of the professional# who operated it.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number", + "forename", + "given_name" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "date of each treatment", + "treatments.date_of_treatment" + ], + [ + "first name of the professional", + "professionals.first_name" + ], + [ + "first name of the professional", + "professionals.forename" + ], + [ + "first name of the professional", + "professionals.given_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "treatments.date_of_treatment" + ], + [ + 1, + "professionals.first_name" + ], + [ + 1, + "professionals.forename" + ], + [ + 1, + "professionals.given_name" + ] + ], + "linking_list_col": [ + [ + "professionals.forename", + "professionals.given_name" + ], + [ + "professionals.first_name", + "professionals.given_name" + ], + [ + "professionals.forename", + "professionals.first_name" + ] + ] + }, + { + "question": "what are the #date# and the #operating professional's first name# of each treatment?", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number", + "forename", + "given_name" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "date", + "treatments.date_of_treatment" + ], + [ + "operating professional's first name", + "professionals.first_name" + ], + [ + "operating professional's first name", + "professionals.forename" + ], + [ + "operating professional's first name", + "professionals.given_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "treatments.date_of_treatment" + ], + [ + 1, + "professionals.first_name" + ], + [ + 1, + "professionals.forename" + ], + [ + 1, + "professionals.given_name" + ] + ], + "linking_list_col": [ + [ + "professionals.forename", + "professionals.given_name" + ], + [ + "professionals.first_name", + "professionals.given_name" + ], + [ + "professionals.forename", + "professionals.first_name" + ] + ] + }, + { + "question": "list the #cost of each treatment# and the corresponding #treatment type description# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description", + "treatment_description", + "type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "cost of each treatment", + "treatments.cost_of_treatment" + ], + [ + "treatment type description", + "treatment_types.treatment_type_description" + ], + [ + "treatment type description", + "treatment_types.treatment_description" + ], + [ + "treatment type description", + "treatment_types.type_description" + ] + ], + "linking_list_idx": [ + [ + 0, + "treatments.cost_of_treatment" + ], + [ + 1, + "treatment_types.treatment_type_description" + ], + [ + 1, + "treatment_types.treatment_description" + ], + [ + 1, + "treatment_types.type_description" + ] + ], + "linking_list_col": [ + [ + "treatment_types.treatment_description", + "treatment_types.type_description" + ], + [ + "treatment_types.treatment_type_description", + "treatment_types.type_description" + ], + [ + "treatment_types.treatment_description", + "treatment_types.treatment_type_description" + ] + ] + }, + { + "question": "list each #owner's first name# , last name, and the #size# of his for her dog.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number", + "given_name", + "forename" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "size", + "dogs.size_code" + ], + [ + "owner's first name", + "owners.first_name" + ], + [ + "owner's first name", + "owners.given_name" + ], + [ + "owner's first name", + "owners.forename" + ] + ], + "linking_list_idx": [ + [ + 0, + "dogs.size_code" + ], + [ + 1, + "owners.first_name" + ], + [ + 1, + "owners.given_name" + ], + [ + 1, + "owners.forename" + ] + ], + "linking_list_col": [ + [ + "owners.given_name", + "owners.forename" + ], + [ + "owners.first_name", + "owners.forename" + ], + [ + "owners.given_name", + "owners.first_name" + ] + ] + }, + { + "question": "what are each #owner's first name# , last name, and the size of their dog?", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number", + "given_name", + "forename" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "owner's first name", + "owners.first_name" + ], + [ + "owner's first name", + "owners.given_name" + ], + [ + "owner's first name", + "owners.forename" + ] + ], + "linking_list_idx": [ + [ + 0, + "owners.first_name" + ], + [ + 0, + "owners.given_name" + ], + [ + 0, + "owners.forename" + ] + ], + "linking_list_col": [ + [ + "owners.given_name", + "owners.forename" + ], + [ + "owners.first_name", + "owners.forename" + ], + [ + "owners.given_name", + "owners.first_name" + ] + ] + }, + { + "question": "list pairs of the #owner's first name# and the #dogs's name# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number", + "given_name", + "forename" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "owner's first name", + "owners.first_name" + ], + [ + "owner's first name", + "owners.given_name" + ], + [ + "owner's first name", + "owners.forename" + ], + [ + "dogs's name", + "dogs.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "owners.first_name" + ], + [ + 0, + "owners.given_name" + ], + [ + 0, + "owners.forename" + ], + [ + 1, + "dogs.name" + ] + ], + "linking_list_col": [ + [ + "owners.given_name", + "owners.forename" + ], + [ + "owners.first_name", + "owners.forename" + ], + [ + "owners.given_name", + "owners.first_name" + ] + ] + }, + { + "question": "what are each #owner's first name# and their dogs's name?", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number", + "given_name", + "forename" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "owner's first name", + "owners.first_name" + ], + [ + "owner's first name", + "owners.given_name" + ], + [ + "owner's first name", + "owners.forename" + ] + ], + "linking_list_idx": [ + [ + 0, + "owners.first_name" + ], + [ + 0, + "owners.given_name" + ], + [ + 0, + "owners.forename" + ] + ], + "linking_list_col": [ + [ + "owners.given_name", + "owners.forename" + ], + [ + "owners.first_name", + "owners.forename" + ], + [ + "owners.given_name", + "owners.first_name" + ] + ] + }, + { + "question": "list the #names of the dogs# of the rarest #breed# and the #treatment dates# of them.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment", + "treatment_date", + "healing_date" + ] + }, + "linking_list": [ + [ + "names of the dogs", + "dogs.name" + ], + [ + "breed", + "dogs.breed_code" + ], + [ + "treatment dates", + "treatments.date_of_treatment" + ], + [ + "treatment dates", + "treatments.treatment_date" + ], + [ + "treatment dates", + "treatments.healing_date" + ] + ], + "linking_list_idx": [ + [ + 0, + "dogs.name" + ], + [ + 1, + "dogs.breed_code" + ], + [ + 2, + "treatments.date_of_treatment" + ], + [ + 2, + "treatments.treatment_date" + ], + [ + 2, + "treatments.healing_date" + ] + ], + "linking_list_col": [ + [ + "treatments.treatment_date", + "treatments.healing_date" + ], + [ + "treatments.date_of_treatment", + "treatments.healing_date" + ], + [ + "treatments.treatment_date", + "treatments.date_of_treatment" + ] + ] + }, + { + "question": "which dogs are of the rarest breed? show their #names# and #treatment dates# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment", + "treatment_date", + "healing_date" + ] + }, + "linking_list": [ + [ + "names", + "dogs.name" + ], + [ + "treatment dates", + "treatments.date_of_treatment" + ], + [ + "treatment dates", + "treatments.treatment_date" + ], + [ + "treatment dates", + "treatments.healing_date" + ] + ], + "linking_list_idx": [ + [ + 0, + "dogs.name" + ], + [ + 1, + "treatments.date_of_treatment" + ], + [ + 1, + "treatments.treatment_date" + ], + [ + 1, + "treatments.healing_date" + ] + ], + "linking_list_col": [ + [ + "treatments.treatment_date", + "treatments.healing_date" + ], + [ + "treatments.date_of_treatment", + "treatments.healing_date" + ], + [ + "treatments.treatment_date", + "treatments.date_of_treatment" + ] + ] + }, + { + "question": "which dogs are owned by someone who lives in virginia? list the #owner's first name# and the #dog's name# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number", + "given_name", + "forename" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "owner's first name", + "owners.first_name" + ], + [ + "owner's first name", + "owners.given_name" + ], + [ + "owner's first name", + "owners.forename" + ], + [ + "dog's name", + "dogs.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "owners.first_name" + ], + [ + 0, + "owners.given_name" + ], + [ + 0, + "owners.forename" + ], + [ + 1, + "dogs.name" + ] + ], + "linking_list_col": [ + [ + "owners.given_name", + "owners.forename" + ], + [ + "owners.first_name", + "owners.forename" + ], + [ + "owners.given_name", + "owners.first_name" + ] + ] + }, + { + "question": "find the #first names of owners# living in #virginia# and the #names of dogs# they own.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number", + "given_name", + "forename" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "first names of owners", + "owners.first_name" + ], + [ + "first names of owners", + "owners.given_name" + ], + [ + "first names of owners", + "owners.forename" + ], + [ + "Virginia", + "owners.state" + ], + [ + "names of dogs", + "dogs.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "owners.first_name" + ], + [ + 0, + "owners.given_name" + ], + [ + 0, + "owners.forename" + ], + [ + 1, + "owners.state" + ], + [ + 2, + "dogs.name" + ] + ], + "linking_list_col": [ + [ + "owners.given_name", + "owners.forename" + ], + [ + "owners.first_name", + "owners.forename" + ], + [ + "owners.given_name", + "owners.first_name" + ] + ] + }, + { + "question": "what are the #arriving date# and the #departing date of the dogs# who have gone through a treatment?", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed", + "exit_date", + "departure_date" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "arriving date", + "dogs.date_arrived" + ], + [ + "departing date of the dogs", + "dogs.date_departed" + ], + [ + "departing date of the dogs", + "dogs.exit_date" + ], + [ + "departing date of the dogs", + "dogs.departure_date" + ] + ], + "linking_list_idx": [ + [ + 0, + "dogs.date_arrived" + ], + [ + 1, + "dogs.date_departed" + ], + [ + 1, + "dogs.exit_date" + ], + [ + 1, + "dogs.departure_date" + ] + ], + "linking_list_col": [ + [ + "dogs.exit_date", + "dogs.departure_date" + ], + [ + "dogs.date_departed", + "dogs.departure_date" + ], + [ + "dogs.exit_date", + "dogs.date_departed" + ] + ] + }, + { + "question": "find the #arriving date# and the #departing date of the dogs that received a treatment# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed", + "exit_date", + "departure_date" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "arriving date", + "dogs.date_arrived" + ], + [ + "departing date of the dogs that received a treatment", + "dogs.date_departed" + ], + [ + "departing date of the dogs that received a treatment", + "dogs.exit_date" + ], + [ + "departing date of the dogs that received a treatment", + "dogs.departure_date" + ] + ], + "linking_list_idx": [ + [ + 0, + "dogs.date_arrived" + ], + [ + 1, + "dogs.date_departed" + ], + [ + 1, + "dogs.exit_date" + ], + [ + 1, + "dogs.departure_date" + ] + ], + "linking_list_col": [ + [ + "dogs.exit_date", + "dogs.departure_date" + ], + [ + "dogs.date_departed", + "dogs.departure_date" + ], + [ + "dogs.exit_date", + "dogs.date_departed" + ] + ] + }, + { + "question": "list the #last name of the owner# owning the #youngest dog# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number", + "surname", + "family_name" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "last name of the owner", + "owners.last_name" + ], + [ + "last name of the owner", + "owners.surname" + ], + [ + "last name of the owner", + "owners.family_name" + ], + [ + "youngest dog", + "dogs.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "owners.last_name" + ], + [ + 0, + "owners.surname" + ], + [ + 0, + "owners.family_name" + ], + [ + 1, + "dogs.age" + ] + ], + "linking_list_col": [ + [ + "owners.surname", + "owners.family_name" + ], + [ + "owners.last_name", + "owners.family_name" + ], + [ + "owners.surname", + "owners.last_name" + ] + ] + }, + { + "question": "who owns the youngest dog? give me his or her #last name# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number", + "surname", + "family_name" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "last name", + "owners.last_name" + ], + [ + "last name", + "owners.surname" + ], + [ + "last name", + "owners.family_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "owners.last_name" + ], + [ + 0, + "owners.surname" + ], + [ + 0, + "owners.family_name" + ] + ], + "linking_list_col": [ + [ + "owners.surname", + "owners.family_name" + ], + [ + "owners.last_name", + "owners.family_name" + ], + [ + "owners.surname", + "owners.last_name" + ] + ] + }, + { + "question": "list the #emails of the professionals# who live in the #state# of hawaii or the state of wisconsin.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number", + "e-mail", + "electronic_address" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "emails of the professionals", + "professionals.email_address" + ], + [ + "emails of the professionals", + "professionals.e-mail" + ], + [ + "emails of the professionals", + "professionals.electronic_address" + ], + [ + "state", + "professionals.state" + ] + ], + "linking_list_idx": [ + [ + 0, + "professionals.email_address" + ], + [ + 0, + "professionals.e-mail" + ], + [ + 0, + "professionals.electronic_address" + ], + [ + 1, + "professionals.state" + ] + ], + "linking_list_col": [ + [ + "professionals.e-mail", + "professionals.electronic_address" + ], + [ + "professionals.email_address", + "professionals.electronic_address" + ], + [ + "professionals.e-mail", + "professionals.email_address" + ] + ] + }, + { + "question": "what are the #emails of the professionals# living in either the #state# of hawaii or the state of wisconsin?", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number", + "e-mail", + "electronic_address" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "emails of the professionals", + "professionals.email_address" + ], + [ + "emails of the professionals", + "professionals.e-mail" + ], + [ + "emails of the professionals", + "professionals.electronic_address" + ], + [ + "state", + "professionals.state" + ] + ], + "linking_list_idx": [ + [ + 0, + "professionals.email_address" + ], + [ + 0, + "professionals.e-mail" + ], + [ + 0, + "professionals.electronic_address" + ], + [ + 1, + "professionals.state" + ] + ], + "linking_list_col": [ + [ + "professionals.e-mail", + "professionals.electronic_address" + ], + [ + "professionals.email_address", + "professionals.electronic_address" + ], + [ + "professionals.e-mail", + "professionals.email_address" + ] + ] + }, + { + "question": "list the #arrival date# and the #departure date for all the dogs# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed", + "exit_date", + "departure_date" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "arrival date", + "dogs.date_arrived" + ], + [ + "departure date for all the dogs", + "dogs.date_departed" + ], + [ + "departure date for all the dogs", + "dogs.exit_date" + ], + [ + "departure date for all the dogs", + "dogs.departure_date" + ] + ], + "linking_list_idx": [ + [ + 0, + "dogs.date_arrived" + ], + [ + 1, + "dogs.date_departed" + ], + [ + 1, + "dogs.exit_date" + ], + [ + 1, + "dogs.departure_date" + ] + ], + "linking_list_col": [ + [ + "dogs.exit_date", + "dogs.departure_date" + ], + [ + "dogs.date_departed", + "dogs.departure_date" + ], + [ + "dogs.exit_date", + "dogs.date_departed" + ] + ] + }, + { + "question": "count the #number of dogs# that went through a treatment.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment", + "canine_id", + "puppy_id" + ] + }, + "linking_list": [ + [ + "number of dogs", + "treatments.dog_id" + ], + [ + "number of dogs", + "treatments.canine_id" + ], + [ + "number of dogs", + "treatments.puppy_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "treatments.dog_id" + ], + [ + 0, + "treatments.canine_id" + ], + [ + 0, + "treatments.puppy_id" + ] + ], + "linking_list_col": [ + [ + "treatments.canine_id", + "treatments.puppy_id" + ], + [ + "treatments.dog_id", + "treatments.puppy_id" + ], + [ + "treatments.canine_id", + "treatments.dog_id" + ] + ] + }, + { + "question": "which professionals live in a #city# containing the substring 'west'? list his or her #role# , #street# , city and #state# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number", + "province", + "territory" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "city", + "professionals.city" + ], + [ + "role", + "professionals.role_code" + ], + [ + "street", + "professionals.street" + ], + [ + "state", + "professionals.state" + ], + [ + "state", + "professionals.province" + ], + [ + "state", + "professionals.territory" + ] + ], + "linking_list_idx": [ + [ + 0, + "professionals.city" + ], + [ + 1, + "professionals.role_code" + ], + [ + 2, + "professionals.street" + ], + [ + 3, + "professionals.state" + ], + [ + 3, + "professionals.province" + ], + [ + 3, + "professionals.territory" + ] + ], + "linking_list_col": [ + [ + "professionals.province", + "professionals.territory" + ], + [ + "professionals.state", + "professionals.territory" + ], + [ + "professionals.province", + "professionals.state" + ] + ] + }, + { + "question": "find the #role# , #street# , #city# and #state of the professionals# living in a city that contains the substring 'west'.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number", + "province", + "territory" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "role", + "professionals.role_code" + ], + [ + "street", + "professionals.street" + ], + [ + "city", + "professionals.city" + ], + [ + "state of the professionals", + "professionals.state" + ], + [ + "state of the professionals", + "professionals.province" + ], + [ + "state of the professionals", + "professionals.territory" + ] + ], + "linking_list_idx": [ + [ + 0, + "professionals.role_code" + ], + [ + 1, + "professionals.street" + ], + [ + 2, + "professionals.city" + ], + [ + 3, + "professionals.state" + ], + [ + 3, + "professionals.province" + ], + [ + 3, + "professionals.territory" + ] + ], + "linking_list_col": [ + [ + "professionals.province", + "professionals.territory" + ], + [ + "professionals.state", + "professionals.territory" + ], + [ + "professionals.province", + "professionals.state" + ] + ] + }, + { + "question": "which owners live in the #state# whose name contains the substring 'north'? list his #first name# , #last name# and #email# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number", + "email", + "electronic_mail" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "state", + "owners.state" + ], + [ + "first name", + "owners.first_name" + ], + [ + "last name", + "owners.last_name" + ], + [ + "email", + "owners.email_address" + ], + [ + "email", + "owners.email" + ], + [ + "email", + "owners.electronic_mail" + ] + ], + "linking_list_idx": [ + [ + 0, + "owners.state" + ], + [ + 1, + "owners.first_name" + ], + [ + 2, + "owners.last_name" + ], + [ + 3, + "owners.email_address" + ], + [ + 3, + "owners.email" + ], + [ + 3, + "owners.electronic_mail" + ] + ], + "linking_list_col": [ + [ + "owners.email", + "owners.electronic_mail" + ], + [ + "owners.email_address", + "owners.electronic_mail" + ], + [ + "owners.email", + "owners.email_address" + ] + ] + }, + { + "question": "return the #first name# , #last name# and #email# of the owners living in a #state# whose name contains the substring 'north'.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number", + "email", + "electronic_mail" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "first name", + "owners.first_name" + ], + [ + "last name", + "owners.last_name" + ], + [ + "email", + "owners.email_address" + ], + [ + "email", + "owners.email" + ], + [ + "email", + "owners.electronic_mail" + ], + [ + "state", + "owners.state" + ] + ], + "linking_list_idx": [ + [ + 0, + "owners.first_name" + ], + [ + 1, + "owners.last_name" + ], + [ + 2, + "owners.email_address" + ], + [ + 2, + "owners.email" + ], + [ + 2, + "owners.electronic_mail" + ], + [ + 3, + "owners.state" + ] + ], + "linking_list_col": [ + [ + "owners.email", + "owners.electronic_mail" + ], + [ + "owners.email_address", + "owners.electronic_mail" + ], + [ + "owners.email", + "owners.email_address" + ] + ] + }, + { + "question": "show me the #cost of the most recently performed treatment# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment", + "price_of_treatment", + "fee_of_treatment" + ] + }, + "linking_list": [ + [ + "cost of the most recently performed treatment", + "treatments.cost_of_treatment" + ], + [ + "cost of the most recently performed treatment", + "treatments.price_of_treatment" + ], + [ + "cost of the most recently performed treatment", + "treatments.fee_of_treatment" + ] + ], + "linking_list_idx": [ + [ + 0, + "treatments.cost_of_treatment" + ], + [ + 0, + "treatments.price_of_treatment" + ], + [ + 0, + "treatments.fee_of_treatment" + ] + ], + "linking_list_col": [ + [ + "treatments.price_of_treatment", + "treatments.fee_of_treatment" + ], + [ + "treatments.cost_of_treatment", + "treatments.fee_of_treatment" + ], + [ + "treatments.price_of_treatment", + "treatments.cost_of_treatment" + ] + ] + }, + { + "question": "list the #dog name# , #age# and #weight of the dogs# who have been abandoned? 1 stands for yes, and 0 stands for no.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed", + "mass", + "heaviness" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "dog name", + "dogs.name" + ], + [ + "age", + "dogs.age" + ], + [ + "weight of the dogs", + "dogs.weight" + ], + [ + "weight of the dogs", + "dogs.mass" + ], + [ + "weight of the dogs", + "dogs.heaviness" + ] + ], + "linking_list_idx": [ + [ + 0, + "dogs.name" + ], + [ + 1, + "dogs.age" + ], + [ + 2, + "dogs.weight" + ], + [ + 2, + "dogs.mass" + ], + [ + 2, + "dogs.heaviness" + ] + ], + "linking_list_col": [ + [ + "dogs.mass", + "dogs.heaviness" + ], + [ + "dogs.weight", + "dogs.heaviness" + ], + [ + "dogs.mass", + "dogs.weight" + ] + ] + }, + { + "question": "what are the #dog name# , #age# and #weight of the dogs# that were abandoned? note that 1 stands for yes, and 0 stands for no in the tables.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed", + "mass", + "heaviness" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "dog name", + "dogs.name" + ], + [ + "age", + "dogs.age" + ], + [ + "weight of the dogs", + "dogs.weight" + ], + [ + "weight of the dogs", + "dogs.mass" + ], + [ + "weight of the dogs", + "dogs.heaviness" + ] + ], + "linking_list_idx": [ + [ + 0, + "dogs.name" + ], + [ + 1, + "dogs.age" + ], + [ + 2, + "dogs.weight" + ], + [ + 2, + "dogs.mass" + ], + [ + 2, + "dogs.heaviness" + ] + ], + "linking_list_col": [ + [ + "dogs.mass", + "dogs.heaviness" + ], + [ + "dogs.weight", + "dogs.heaviness" + ], + [ + "dogs.mass", + "dogs.weight" + ] + ] + }, + { + "question": "compute the #average age of all the dogs# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed", + "years_old", + "lifespan" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "average age of all the dogs", + "dogs.age" + ], + [ + "average age of all the dogs", + "dogs.years_old" + ], + [ + "average age of all the dogs", + "dogs.lifespan" + ] + ], + "linking_list_idx": [ + [ + 0, + "dogs.age" + ], + [ + 0, + "dogs.years_old" + ], + [ + 0, + "dogs.lifespan" + ] + ], + "linking_list_col": [ + [ + "dogs.years_old", + "dogs.lifespan" + ], + [ + "dogs.age", + "dogs.lifespan" + ], + [ + "dogs.years_old", + "dogs.age" + ] + ] + }, + { + "question": "tell me the #age of the oldest dog# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed", + "years_old", + "lifespan" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "age of the oldest dog", + "dogs.age" + ], + [ + "age of the oldest dog", + "dogs.years_old" + ], + [ + "age of the oldest dog", + "dogs.lifespan" + ] + ], + "linking_list_idx": [ + [ + 0, + "dogs.age" + ], + [ + 0, + "dogs.years_old" + ], + [ + 0, + "dogs.lifespan" + ] + ], + "linking_list_col": [ + [ + "dogs.years_old", + "dogs.lifespan" + ], + [ + "dogs.age", + "dogs.lifespan" + ], + [ + "dogs.years_old", + "dogs.age" + ] + ] + }, + { + "question": "how much does each #charge type# costs? list both charge type and #amount# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount", + "fee_type", + "charge_category" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "charge type", + "charges.charge_type" + ], + [ + "charge type", + "charges.fee_type" + ], + [ + "charge type", + "charges.charge_category" + ], + [ + "amount", + "charges.charge_amount" + ] + ], + "linking_list_idx": [ + [ + 0, + "charges.charge_type" + ], + [ + 0, + "charges.fee_type" + ], + [ + 0, + "charges.charge_category" + ], + [ + 1, + "charges.charge_amount" + ] + ], + "linking_list_col": [ + [ + "charges.fee_type", + "charges.charge_category" + ], + [ + "charges.charge_type", + "charges.charge_category" + ], + [ + "charges.fee_type", + "charges.charge_type" + ] + ] + }, + { + "question": "list each #charge type# and its #amount# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount", + "fee_type", + "charge_category" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "charge type", + "charges.charge_type" + ], + [ + "charge type", + "charges.fee_type" + ], + [ + "charge type", + "charges.charge_category" + ], + [ + "amount", + "charges.charge_amount" + ] + ], + "linking_list_idx": [ + [ + 0, + "charges.charge_type" + ], + [ + 0, + "charges.fee_type" + ], + [ + 0, + "charges.charge_category" + ], + [ + 1, + "charges.charge_amount" + ] + ], + "linking_list_col": [ + [ + "charges.fee_type", + "charges.charge_category" + ], + [ + "charges.charge_type", + "charges.charge_category" + ], + [ + "charges.fee_type", + "charges.charge_type" + ] + ] + }, + { + "question": "what is the #charge amount# of the most expensive charge type?", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount", + "amount", + "fee" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "charge amount", + "charges.charge_amount" + ], + [ + "charge amount", + "charges.amount" + ], + [ + "charge amount", + "charges.fee" + ] + ], + "linking_list_idx": [ + [ + 0, + "charges.charge_amount" + ], + [ + 0, + "charges.amount" + ], + [ + 0, + "charges.fee" + ] + ], + "linking_list_col": [ + [ + "charges.amount", + "charges.fee" + ], + [ + "charges.charge_amount", + "charges.fee" + ], + [ + "charges.amount", + "charges.charge_amount" + ] + ] + }, + { + "question": "list the #email# , #cell phone# and #home phone of all the professionals# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number", + "mobile_number", + "phone_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "email", + "professionals.email_address" + ], + [ + "cell phone", + "professionals.cell_number" + ], + [ + "cell phone", + "professionals.mobile_number" + ], + [ + "cell phone", + "professionals.phone_number" + ], + [ + "home phone of all the professionals", + "professionals.home_phone" + ] + ], + "linking_list_idx": [ + [ + 0, + "professionals.email_address" + ], + [ + 1, + "professionals.cell_number" + ], + [ + 1, + "professionals.mobile_number" + ], + [ + 1, + "professionals.phone_number" + ], + [ + 2, + "professionals.home_phone" + ] + ], + "linking_list_col": [ + [ + "professionals.mobile_number", + "professionals.phone_number" + ], + [ + "professionals.cell_number", + "professionals.phone_number" + ], + [ + "professionals.mobile_number", + "professionals.cell_number" + ] + ] + }, + { + "question": "what are the #email# , #cell phone# and home phone of each professional?", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number", + "mobile_number", + "phone_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "email", + "professionals.email_address" + ], + [ + "cell phone", + "professionals.cell_number" + ], + [ + "cell phone", + "professionals.mobile_number" + ], + [ + "cell phone", + "professionals.phone_number" + ] + ], + "linking_list_idx": [ + [ + 0, + "professionals.email_address" + ], + [ + 1, + "professionals.cell_number" + ], + [ + 1, + "professionals.mobile_number" + ], + [ + 1, + "professionals.phone_number" + ] + ], + "linking_list_col": [ + [ + "professionals.mobile_number", + "professionals.phone_number" + ], + [ + "professionals.cell_number", + "professionals.phone_number" + ], + [ + "professionals.mobile_number", + "professionals.cell_number" + ] + ] + }, + { + "question": "what are all the possible #breed type# and #size type# combinations?", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed", + "race_code", + "pedigree_code" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "breed type", + "dogs.breed_code" + ], + [ + "breed type", + "dogs.race_code" + ], + [ + "breed type", + "dogs.pedigree_code" + ], + [ + "size type", + "dogs.size_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "dogs.breed_code" + ], + [ + 0, + "dogs.race_code" + ], + [ + 0, + "dogs.pedigree_code" + ], + [ + 1, + "dogs.size_code" + ] + ], + "linking_list_col": [ + [ + "dogs.race_code", + "dogs.pedigree_code" + ], + [ + "dogs.breed_code", + "dogs.pedigree_code" + ], + [ + "dogs.race_code", + "dogs.breed_code" + ] + ] + }, + { + "question": "find the distinct #breed type# and #size type# combinations for dogs.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed", + "race_code", + "pedigree_code" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "breed type", + "dogs.breed_code" + ], + [ + "breed type", + "dogs.race_code" + ], + [ + "breed type", + "dogs.pedigree_code" + ], + [ + "size type", + "dogs.size_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "dogs.breed_code" + ], + [ + 0, + "dogs.race_code" + ], + [ + 0, + "dogs.pedigree_code" + ], + [ + 1, + "dogs.size_code" + ] + ], + "linking_list_col": [ + [ + "dogs.race_code", + "dogs.pedigree_code" + ], + [ + "dogs.breed_code", + "dogs.pedigree_code" + ], + [ + "dogs.race_code", + "dogs.breed_code" + ] + ] + }, + { + "question": "list the #first name of all the professionals# along with the #description of the treatment# they have done.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number", + "forename", + "given_name" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "first name of all the professionals", + "professionals.first_name" + ], + [ + "first name of all the professionals", + "professionals.forename" + ], + [ + "first name of all the professionals", + "professionals.given_name" + ], + [ + "description of the treatment", + "treatment_types.treatment_type_description" + ] + ], + "linking_list_idx": [ + [ + 0, + "professionals.first_name" + ], + [ + 0, + "professionals.forename" + ], + [ + 0, + "professionals.given_name" + ], + [ + 1, + "treatment_types.treatment_type_description" + ] + ], + "linking_list_col": [ + [ + "professionals.forename", + "professionals.given_name" + ], + [ + "professionals.first_name", + "professionals.given_name" + ], + [ + "professionals.forename", + "professionals.first_name" + ] + ] + }, + { + "question": "what are each #professional's first name# and #description of the treatment# they have performed?", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number", + "forename", + "given_name" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "description of the treatment", + "treatment_types.treatment_type_description" + ], + [ + "professional's first name", + "professionals.first_name" + ], + [ + "professional's first name", + "professionals.forename" + ], + [ + "professional's first name", + "professionals.given_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "treatment_types.treatment_type_description" + ], + [ + 1, + "professionals.first_name" + ], + [ + 1, + "professionals.forename" + ], + [ + 1, + "professionals.given_name" + ] + ], + "linking_list_col": [ + [ + "professionals.forename", + "professionals.given_name" + ], + [ + "professionals.first_name", + "professionals.given_name" + ], + [ + "professionals.forename", + "professionals.first_name" + ] + ] + }, + { + "question": "list the #name of singers# in ascending order of #net worth# .", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship", + "stage_name", + "artist_name" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "linking_list": [ + [ + "name of singers", + "singer.name" + ], + [ + "name of singers", + "singer.stage_name" + ], + [ + "name of singers", + "singer.artist_name" + ], + [ + "net worth", + "singer.net_worth_millions" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 0, + "singer.stage_name" + ], + [ + 0, + "singer.artist_name" + ], + [ + 1, + "singer.net_worth_millions" + ] + ], + "linking_list_col": [ + [ + "singer.stage_name", + "singer.artist_name" + ], + [ + "singer.name", + "singer.artist_name" + ], + [ + "singer.stage_name", + "singer.name" + ] + ] + }, + { + "question": "what are the #names of singers# ordered by ascending net worth?", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship", + "stage_name", + "artist_name" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "linking_list": [ + [ + "names of singers", + "singer.name" + ], + [ + "names of singers", + "singer.stage_name" + ], + [ + "names of singers", + "singer.artist_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 0, + "singer.stage_name" + ], + [ + 0, + "singer.artist_name" + ] + ], + "linking_list_col": [ + [ + "singer.stage_name", + "singer.artist_name" + ], + [ + "singer.name", + "singer.artist_name" + ], + [ + "singer.stage_name", + "singer.name" + ] + ] + }, + { + "question": "what are the #birth year# and citizenship of singers?", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship", + "date_of_birth", + "year_of_birth" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "linking_list": [ + [ + "birth year", + "singer.birth_year" + ], + [ + "birth year", + "singer.date_of_birth" + ], + [ + "birth year", + "singer.year_of_birth" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.birth_year" + ], + [ + 0, + "singer.date_of_birth" + ], + [ + 0, + "singer.year_of_birth" + ] + ], + "linking_list_col": [ + [ + "singer.date_of_birth", + "singer.year_of_birth" + ], + [ + "singer.birth_year", + "singer.year_of_birth" + ], + [ + "singer.date_of_birth", + "singer.birth_year" + ] + ] + }, + { + "question": "what are the #birth years# and citizenships of the singers?", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship", + "date_of_birth", + "year_of_birth" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "linking_list": [ + [ + "birth years", + "singer.birth_year" + ], + [ + "birth years", + "singer.date_of_birth" + ], + [ + "birth years", + "singer.year_of_birth" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.birth_year" + ], + [ + 0, + "singer.date_of_birth" + ], + [ + 0, + "singer.year_of_birth" + ] + ], + "linking_list_col": [ + [ + "singer.date_of_birth", + "singer.year_of_birth" + ], + [ + "singer.birth_year", + "singer.year_of_birth" + ], + [ + "singer.date_of_birth", + "singer.birth_year" + ] + ] + }, + { + "question": "list the #name of singers# whose #citizenship# is not \"france\".", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship", + "stage_name", + "artist_name" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "linking_list": [ + [ + "name of singers", + "singer.name" + ], + [ + "name of singers", + "singer.stage_name" + ], + [ + "name of singers", + "singer.artist_name" + ], + [ + "citizenship", + "singer.citizenship" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 0, + "singer.stage_name" + ], + [ + 0, + "singer.artist_name" + ], + [ + 1, + "singer.citizenship" + ] + ], + "linking_list_col": [ + [ + "singer.stage_name", + "singer.artist_name" + ], + [ + "singer.name", + "singer.artist_name" + ], + [ + "singer.stage_name", + "singer.name" + ] + ] + }, + { + "question": "what are the #names of the singers# who are not french citizens?", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship", + "stage_name", + "artist_name" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "linking_list": [ + [ + "names of the singers", + "singer.name" + ], + [ + "names of the singers", + "singer.stage_name" + ], + [ + "names of the singers", + "singer.artist_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 0, + "singer.stage_name" + ], + [ + 0, + "singer.artist_name" + ] + ], + "linking_list_col": [ + [ + "singer.stage_name", + "singer.artist_name" + ], + [ + "singer.name", + "singer.artist_name" + ], + [ + "singer.stage_name", + "singer.name" + ] + ] + }, + { + "question": "show the #name of singers# whose #birth year# is either 1948 or 1949?", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship", + "stage_name", + "artist_name" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "linking_list": [ + [ + "name of singers", + "singer.name" + ], + [ + "name of singers", + "singer.stage_name" + ], + [ + "name of singers", + "singer.artist_name" + ], + [ + "birth year", + "singer.birth_year" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 0, + "singer.stage_name" + ], + [ + 0, + "singer.artist_name" + ], + [ + 1, + "singer.birth_year" + ] + ], + "linking_list_col": [ + [ + "singer.stage_name", + "singer.artist_name" + ], + [ + "singer.name", + "singer.artist_name" + ], + [ + "singer.stage_name", + "singer.name" + ] + ] + }, + { + "question": "what are the #names of the singers# whose #birth years# are either 1948 or 1949?", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship", + "stage_name", + "artist_name" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "linking_list": [ + [ + "names of the singers", + "singer.name" + ], + [ + "names of the singers", + "singer.stage_name" + ], + [ + "names of the singers", + "singer.artist_name" + ], + [ + "birth years", + "singer.birth_year" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 0, + "singer.stage_name" + ], + [ + 0, + "singer.artist_name" + ], + [ + 1, + "singer.birth_year" + ] + ], + "linking_list_col": [ + [ + "singer.stage_name", + "singer.artist_name" + ], + [ + "singer.name", + "singer.artist_name" + ], + [ + "singer.stage_name", + "singer.name" + ] + ] + }, + { + "question": "what is the #name of the singer# with the largest net worth?", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship", + "stage_name", + "artist_name" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "linking_list": [ + [ + "name of the singer", + "singer.name" + ], + [ + "name of the singer", + "singer.stage_name" + ], + [ + "name of the singer", + "singer.artist_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 0, + "singer.stage_name" + ], + [ + 0, + "singer.artist_name" + ] + ], + "linking_list_col": [ + [ + "singer.stage_name", + "singer.artist_name" + ], + [ + "singer.name", + "singer.artist_name" + ], + [ + "singer.stage_name", + "singer.name" + ] + ] + }, + { + "question": "what is the #name of the singer# who is #worth# the most?", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship", + "stage_name", + "artist_name" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "linking_list": [ + [ + "name of the singer", + "singer.name" + ], + [ + "name of the singer", + "singer.stage_name" + ], + [ + "name of the singer", + "singer.artist_name" + ], + [ + "worth", + "singer.net_worth_millions" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 0, + "singer.stage_name" + ], + [ + 0, + "singer.artist_name" + ], + [ + 1, + "singer.net_worth_millions" + ] + ], + "linking_list_col": [ + [ + "singer.stage_name", + "singer.artist_name" + ], + [ + "singer.name", + "singer.artist_name" + ], + [ + "singer.stage_name", + "singer.name" + ] + ] + }, + { + "question": "show different #citizenship of singers# and the number of #singers of each citizenship# .", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship", + "nationality", + "country_of_origin" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "linking_list": [ + [ + "citizenship of singers", + "singer.citizenship" + ], + [ + "citizenship of singers", + "singer.nationality" + ], + [ + "citizenship of singers", + "singer.country_of_origin" + ], + [ + "singers of each citizenship", + "singer.citizenship" + ], + [ + "singers of each citizenship", + "singer.nationality" + ], + [ + "singers of each citizenship", + "singer.country_of_origin" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.citizenship" + ], + [ + 0, + "singer.nationality" + ], + [ + 0, + "singer.country_of_origin" + ], + [ + 1, + "singer.citizenship" + ], + [ + 1, + "singer.nationality" + ], + [ + 1, + "singer.country_of_origin" + ] + ], + "linking_list_col": [ + [ + "singer.nationality", + "singer.country_of_origin" + ], + [ + "singer.citizenship", + "singer.country_of_origin" + ], + [ + "singer.nationality", + "singer.citizenship" + ] + ] + }, + { + "question": "for each #citizenship# , how many singers are from that country?", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship", + "nationality", + "country_of_origin" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "linking_list": [ + [ + "citizenship", + "singer.citizenship" + ], + [ + "citizenship", + "singer.nationality" + ], + [ + "citizenship", + "singer.country_of_origin" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.citizenship" + ], + [ + 0, + "singer.nationality" + ], + [ + 0, + "singer.country_of_origin" + ] + ], + "linking_list_col": [ + [ + "singer.nationality", + "singer.country_of_origin" + ], + [ + "singer.citizenship", + "singer.country_of_origin" + ], + [ + "singer.nationality", + "singer.citizenship" + ] + ] + }, + { + "question": "please show the most common #citizenship of singers# .", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship", + "nationality", + "country_of_origin" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "linking_list": [ + [ + "citizenship of singers", + "singer.citizenship" + ], + [ + "citizenship of singers", + "singer.nationality" + ], + [ + "citizenship of singers", + "singer.country_of_origin" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.citizenship" + ], + [ + 0, + "singer.nationality" + ], + [ + 0, + "singer.country_of_origin" + ] + ], + "linking_list_col": [ + [ + "singer.nationality", + "singer.country_of_origin" + ], + [ + "singer.citizenship", + "singer.country_of_origin" + ], + [ + "singer.nationality", + "singer.citizenship" + ] + ] + }, + { + "question": "show different #citizenships# and the #maximum net worth of singers# of each citizenship.", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship", + "earnings_millions", + "income_millions" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "linking_list": [ + [ + "citizenships", + "singer.citizenship" + ], + [ + "maximum net worth of singers", + "singer.net_worth_millions" + ], + [ + "maximum net worth of singers", + "singer.earnings_millions" + ], + [ + "maximum net worth of singers", + "singer.income_millions" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.citizenship" + ], + [ + 1, + "singer.net_worth_millions" + ], + [ + 1, + "singer.earnings_millions" + ], + [ + 1, + "singer.income_millions" + ] + ], + "linking_list_col": [ + [ + "singer.earnings_millions", + "singer.income_millions" + ], + [ + "singer.net_worth_millions", + "singer.income_millions" + ], + [ + "singer.earnings_millions", + "singer.net_worth_millions" + ] + ] + }, + { + "question": "show #titles of songs# and #names of singers# .", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position", + "name", + "composition_title" + ] + }, + "linking_list": [ + [ + "titles of songs", + "song.title" + ], + [ + "titles of songs", + "song.name" + ], + [ + "titles of songs", + "song.composition_title" + ], + [ + "names of singers", + "singer.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "song.title" + ], + [ + 0, + "song.name" + ], + [ + 0, + "song.composition_title" + ], + [ + 1, + "singer.name" + ] + ], + "linking_list_col": [ + [ + "song.name", + "song.composition_title" + ], + [ + "song.title", + "song.composition_title" + ], + [ + "song.name", + "song.title" + ] + ] + }, + { + "question": "what are the #song titles# and singer names?", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position", + "name", + "composition_title" + ] + }, + "linking_list": [ + [ + "song titles", + "song.title" + ], + [ + "song titles", + "song.name" + ], + [ + "song titles", + "song.composition_title" + ] + ], + "linking_list_idx": [ + [ + 0, + "song.title" + ], + [ + 0, + "song.name" + ], + [ + 0, + "song.composition_title" + ] + ], + "linking_list_col": [ + [ + "song.name", + "song.composition_title" + ], + [ + "song.title", + "song.composition_title" + ], + [ + "song.name", + "song.title" + ] + ] + }, + { + "question": "show distinct #names of singers# that have #songs with sales# more than 300000.", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship", + "stage_name", + "artist_name" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "linking_list": [ + [ + "names of singers", + "singer.name" + ], + [ + "names of singers", + "singer.stage_name" + ], + [ + "names of singers", + "singer.artist_name" + ], + [ + "songs with sales", + "song.sales" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 0, + "singer.stage_name" + ], + [ + 0, + "singer.artist_name" + ], + [ + 1, + "song.sales" + ] + ], + "linking_list_col": [ + [ + "singer.stage_name", + "singer.artist_name" + ], + [ + "singer.name", + "singer.artist_name" + ], + [ + "singer.stage_name", + "singer.name" + ] + ] + }, + { + "question": "what are the different #names of the singers# that have #sales# more than 300000?", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship", + "stage_name", + "artist_name" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "linking_list": [ + [ + "names of the singers", + "singer.name" + ], + [ + "names of the singers", + "singer.stage_name" + ], + [ + "names of the singers", + "singer.artist_name" + ], + [ + "sales", + "song.sales" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 0, + "singer.stage_name" + ], + [ + 0, + "singer.artist_name" + ], + [ + 1, + "song.sales" + ] + ], + "linking_list_col": [ + [ + "singer.stage_name", + "singer.artist_name" + ], + [ + "singer.name", + "singer.artist_name" + ], + [ + "singer.stage_name", + "singer.name" + ] + ] + }, + { + "question": "show the #names of singers# that have more than one song.", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship", + "stage_name", + "artist_name" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "linking_list": [ + [ + "names of singers", + "singer.name" + ], + [ + "names of singers", + "singer.stage_name" + ], + [ + "names of singers", + "singer.artist_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 0, + "singer.stage_name" + ], + [ + 0, + "singer.artist_name" + ] + ], + "linking_list_col": [ + [ + "singer.stage_name", + "singer.artist_name" + ], + [ + "singer.name", + "singer.artist_name" + ], + [ + "singer.stage_name", + "singer.name" + ] + ] + }, + { + "question": "what are the #names of the singers# that have more than one songs?", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship", + "stage_name", + "artist_name" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "linking_list": [ + [ + "names of the singers", + "singer.name" + ], + [ + "names of the singers", + "singer.stage_name" + ], + [ + "names of the singers", + "singer.artist_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 0, + "singer.stage_name" + ], + [ + 0, + "singer.artist_name" + ] + ], + "linking_list_col": [ + [ + "singer.stage_name", + "singer.artist_name" + ], + [ + "singer.name", + "singer.artist_name" + ], + [ + "singer.stage_name", + "singer.name" + ] + ] + }, + { + "question": "show the #names of singers# and the #total sales of their songs# .", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position", + "revenue", + "income" + ] + }, + "linking_list": [ + [ + "names of singers", + "singer.name" + ], + [ + "total sales of their songs", + "song.sales" + ], + [ + "total sales of their songs", + "song.revenue" + ], + [ + "total sales of their songs", + "song.income" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 1, + "song.sales" + ], + [ + 1, + "song.revenue" + ], + [ + 1, + "song.income" + ] + ], + "linking_list_col": [ + [ + "song.revenue", + "song.income" + ], + [ + "song.sales", + "song.income" + ], + [ + "song.revenue", + "song.sales" + ] + ] + }, + { + "question": "for each #singer name# , what is the #total sales# for their songs?", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position", + "revenue", + "income" + ] + }, + "linking_list": [ + [ + "singer name", + "singer.name" + ], + [ + "total sales", + "song.sales" + ], + [ + "total sales", + "song.revenue" + ], + [ + "total sales", + "song.income" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 1, + "song.sales" + ], + [ + 1, + "song.revenue" + ], + [ + 1, + "song.income" + ] + ], + "linking_list_col": [ + [ + "song.revenue", + "song.income" + ], + [ + "song.sales", + "song.income" + ], + [ + "song.revenue", + "song.sales" + ] + ] + }, + { + "question": "list the #name of singers# that do not have any song.", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship", + "stage_name", + "artist_name" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "linking_list": [ + [ + "name of singers", + "singer.name" + ], + [ + "name of singers", + "singer.stage_name" + ], + [ + "name of singers", + "singer.artist_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 0, + "singer.stage_name" + ], + [ + 0, + "singer.artist_name" + ] + ], + "linking_list_col": [ + [ + "singer.stage_name", + "singer.artist_name" + ], + [ + "singer.name", + "singer.artist_name" + ], + [ + "singer.stage_name", + "singer.name" + ] + ] + }, + { + "question": "what is the #sname# of every sing that does not have any song?", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship", + "stage_name", + "artist_name" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "linking_list": [ + [ + "sname", + "singer.name" + ], + [ + "sname", + "singer.stage_name" + ], + [ + "sname", + "singer.artist_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 0, + "singer.stage_name" + ], + [ + 0, + "singer.artist_name" + ] + ], + "linking_list_col": [ + [ + "singer.stage_name", + "singer.artist_name" + ], + [ + "singer.name", + "singer.artist_name" + ], + [ + "singer.stage_name", + "singer.name" + ] + ] + }, + { + "question": "show the #citizenship# shared by #singers with birth year# before 1945 and after 1955.", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship", + "nationality", + "country_of_origin" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "linking_list": [ + [ + "citizenship", + "singer.citizenship" + ], + [ + "citizenship", + "singer.nationality" + ], + [ + "citizenship", + "singer.country_of_origin" + ], + [ + "singers with birth year", + "singer.birth_year" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.citizenship" + ], + [ + 0, + "singer.nationality" + ], + [ + 0, + "singer.country_of_origin" + ], + [ + 1, + "singer.birth_year" + ] + ], + "linking_list_col": [ + [ + "singer.nationality", + "singer.country_of_origin" + ], + [ + "singer.citizenship", + "singer.country_of_origin" + ], + [ + "singer.nationality", + "singer.citizenship" + ] + ] + }, + { + "question": "what are the #citizenships# that are shared by #singers with a birth year# before 1945 and after 1955?", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship", + "nationality", + "country_of_origin" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "linking_list": [ + [ + "citizenships", + "singer.citizenship" + ], + [ + "citizenships", + "singer.nationality" + ], + [ + "citizenships", + "singer.country_of_origin" + ], + [ + "singers with a birth year", + "singer.birth_year" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.citizenship" + ], + [ + 0, + "singer.nationality" + ], + [ + 0, + "singer.country_of_origin" + ], + [ + 1, + "singer.birth_year" + ] + ], + "linking_list_col": [ + [ + "singer.nationality", + "singer.country_of_origin" + ], + [ + "singer.citizenship", + "singer.country_of_origin" + ], + [ + "singer.nationality", + "singer.citizenship" + ] + ] + }, + { + "question": "show the #property type descriptions of properties# belonging to that #code# .", + "db_schema": { + "ref_feature_types": [ + "feature_type_code", + "feature_type_name" + ], + "ref_property_types": [ + "property_type_code", + "property_type_description", + "type_description", + "category_description" + ], + "other_available_features": [ + "feature_id", + "feature_type_code", + "feature_name", + "feature_description" + ], + "properties": [ + "property_id", + "property_type_code", + "date_on_market", + "date_sold", + "property_name", + "property_address", + "room_count", + "vendor_requested_price", + "buyer_offered_price", + "agreed_selling_price", + "apt_feature_1", + "apt_feature_2", + "apt_feature_3", + "fld_feature_1", + "fld_feature_2", + "fld_feature_3", + "hse_feature_1", + "hse_feature_2", + "hse_feature_3", + "oth_feature_1", + "oth_feature_2", + "oth_feature_3", + "shp_feature_1", + "shp_feature_2", + "shp_feature_3", + "other_property_details" + ], + "other_property_features": [ + "property_id", + "feature_id", + "property_feature_description" + ] + }, + "linking_list": [ + [ + "property type descriptions of properties", + "ref_property_types.property_type_description" + ], + [ + "property type descriptions of properties", + "ref_property_types.type_description" + ], + [ + "property type descriptions of properties", + "ref_property_types.category_description" + ], + [ + "code", + "properties.property_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "ref_property_types.property_type_description" + ], + [ + 0, + "ref_property_types.type_description" + ], + [ + 0, + "ref_property_types.category_description" + ], + [ + 1, + "properties.property_type_code" + ] + ], + "linking_list_col": [ + [ + "ref_property_types.type_description", + "ref_property_types.category_description" + ], + [ + "ref_property_types.property_type_description", + "ref_property_types.category_description" + ], + [ + "ref_property_types.type_description", + "ref_property_types.property_type_description" + ] + ] + }, + { + "question": "what are the #names of properties# that are either #houses# or apartments with more than 1 room?", + "db_schema": { + "ref_feature_types": [ + "feature_type_code", + "feature_type_name" + ], + "ref_property_types": [ + "property_type_code", + "property_type_description" + ], + "other_available_features": [ + "feature_id", + "feature_type_code", + "feature_name", + "feature_description" + ], + "properties": [ + "property_id", + "property_type_code", + "date_on_market", + "date_sold", + "property_name", + "property_address", + "room_count", + "vendor_requested_price", + "buyer_offered_price", + "agreed_selling_price", + "apt_feature_1", + "apt_feature_2", + "apt_feature_3", + "fld_feature_1", + "fld_feature_2", + "fld_feature_3", + "hse_feature_1", + "hse_feature_2", + "hse_feature_3", + "oth_feature_1", + "oth_feature_2", + "oth_feature_3", + "shp_feature_1", + "shp_feature_2", + "shp_feature_3", + "other_property_details", + "name", + "title" + ], + "other_property_features": [ + "property_id", + "feature_id", + "property_feature_description" + ] + }, + "linking_list": [ + [ + "names of properties", + "properties.property_name" + ], + [ + "names of properties", + "properties.name" + ], + [ + "names of properties", + "properties.title" + ], + [ + "houses", + "properties.property_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "properties.property_name" + ], + [ + 0, + "properties.name" + ], + [ + 0, + "properties.title" + ], + [ + 1, + "properties.property_type_code" + ] + ], + "linking_list_col": [ + [ + "properties.name", + "properties.title" + ], + [ + "properties.property_name", + "properties.title" + ], + [ + "properties.name", + "properties.property_name" + ] + ] + }, + { + "question": "show #name# , #country# , #age# for all singers ordered by age from the oldest to the youngest.", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male", + "nationality", + "citizenship" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "name", + "singer.name" + ], + [ + "country", + "singer.country" + ], + [ + "country", + "singer.nationality" + ], + [ + "country", + "singer.citizenship" + ], + [ + "age", + "singer.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 1, + "singer.country" + ], + [ + 1, + "singer.nationality" + ], + [ + 1, + "singer.citizenship" + ], + [ + 2, + "singer.age" + ] + ], + "linking_list_col": [ + [ + "singer.nationality", + "singer.citizenship" + ], + [ + "singer.country", + "singer.citizenship" + ], + [ + "singer.nationality", + "singer.country" + ] + ] + }, + { + "question": "what is the #average# , #minimum# , and #maximum# age of all singers from france?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male", + "years_old", + "birthdate" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "average", + "singer.age" + ], + [ + "average", + "singer.years_old" + ], + [ + "average", + "singer.birthdate" + ], + [ + "minimum", + "singer.age" + ], + [ + "minimum", + "singer.years_old" + ], + [ + "minimum", + "singer.birthdate" + ], + [ + "maximum", + "singer.age" + ], + [ + "maximum", + "singer.years_old" + ], + [ + "maximum", + "singer.birthdate" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.age" + ], + [ + 0, + "singer.years_old" + ], + [ + 0, + "singer.birthdate" + ], + [ + 1, + "singer.age" + ], + [ + 1, + "singer.years_old" + ], + [ + 1, + "singer.birthdate" + ], + [ + 2, + "singer.age" + ], + [ + 2, + "singer.years_old" + ], + [ + 2, + "singer.birthdate" + ] + ], + "linking_list_col": [ + [ + "singer.years_old", + "singer.birthdate" + ], + [ + "singer.age", + "singer.birthdate" + ], + [ + "singer.years_old", + "singer.age" + ] + ] + }, + { + "question": "what is the average, minimum, and #maximum age# for all french singers?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male", + "years_old", + "birthdate" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "maximum age", + "singer.age" + ], + [ + "maximum age", + "singer.years_old" + ], + [ + "maximum age", + "singer.birthdate" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.age" + ], + [ + 0, + "singer.years_old" + ], + [ + 0, + "singer.birthdate" + ] + ], + "linking_list_col": [ + [ + "singer.years_old", + "singer.birthdate" + ], + [ + "singer.age", + "singer.birthdate" + ], + [ + "singer.years_old", + "singer.age" + ] + ] + }, + { + "question": "show all countries and the #number of singers in each country# .", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male", + "nationality", + "citizenship" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "number of singers in each country", + "singer.country" + ], + [ + "number of singers in each country", + "singer.nationality" + ], + [ + "number of singers in each country", + "singer.citizenship" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.country" + ], + [ + 0, + "singer.nationality" + ], + [ + 0, + "singer.citizenship" + ] + ], + "linking_list_col": [ + [ + "singer.nationality", + "singer.citizenship" + ], + [ + "singer.country", + "singer.citizenship" + ], + [ + "singer.nationality", + "singer.country" + ] + ] + }, + { + "question": "show #name# , #country# , #age# for all singers ordered by age from the oldest to the youngest.", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male", + "nationality", + "citizenship" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "name", + "singer.name" + ], + [ + "country", + "singer.country" + ], + [ + "country", + "singer.nationality" + ], + [ + "country", + "singer.citizenship" + ], + [ + "age", + "singer.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 1, + "singer.country" + ], + [ + 1, + "singer.nationality" + ], + [ + 1, + "singer.citizenship" + ], + [ + 2, + "singer.age" + ] + ], + "linking_list_col": [ + [ + "singer.nationality", + "singer.citizenship" + ], + [ + "singer.country", + "singer.citizenship" + ], + [ + "singer.nationality", + "singer.country" + ] + ] + }, + { + "question": "what is the #average# , #minimum# , and #maximum# age of all singers from france?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male", + "years_old", + "birthdate" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "average", + "singer.age" + ], + [ + "average", + "singer.years_old" + ], + [ + "average", + "singer.birthdate" + ], + [ + "minimum", + "singer.age" + ], + [ + "minimum", + "singer.years_old" + ], + [ + "minimum", + "singer.birthdate" + ], + [ + "maximum", + "singer.age" + ], + [ + "maximum", + "singer.years_old" + ], + [ + "maximum", + "singer.birthdate" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.age" + ], + [ + 0, + "singer.years_old" + ], + [ + 0, + "singer.birthdate" + ], + [ + 1, + "singer.age" + ], + [ + 1, + "singer.years_old" + ], + [ + 1, + "singer.birthdate" + ], + [ + 2, + "singer.age" + ], + [ + 2, + "singer.years_old" + ], + [ + 2, + "singer.birthdate" + ] + ], + "linking_list_col": [ + [ + "singer.years_old", + "singer.birthdate" + ], + [ + "singer.age", + "singer.birthdate" + ], + [ + "singer.years_old", + "singer.age" + ] + ] + }, + { + "question": "what is the #average# , #minimum# , and #maximum# age for all french singers?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male", + "years_old", + "birthdate" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "average", + "singer.age" + ], + [ + "average", + "singer.years_old" + ], + [ + "average", + "singer.birthdate" + ], + [ + "minimum", + "singer.age" + ], + [ + "minimum", + "singer.years_old" + ], + [ + "minimum", + "singer.birthdate" + ], + [ + "maximum", + "singer.age" + ], + [ + "maximum", + "singer.years_old" + ], + [ + "maximum", + "singer.birthdate" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.age" + ], + [ + 0, + "singer.years_old" + ], + [ + 0, + "singer.birthdate" + ], + [ + 1, + "singer.age" + ], + [ + 1, + "singer.years_old" + ], + [ + 1, + "singer.birthdate" + ], + [ + 2, + "singer.age" + ], + [ + 2, + "singer.years_old" + ], + [ + 2, + "singer.birthdate" + ] + ], + "linking_list_col": [ + [ + "singer.years_old", + "singer.birthdate" + ], + [ + "singer.age", + "singer.birthdate" + ], + [ + "singer.years_old", + "singer.age" + ] + ] + }, + { + "question": "show #name# , #country# , #age# for all singers ordered by age from the oldest to the youngest.", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male", + "nationality", + "citizenship" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "name", + "singer.name" + ], + [ + "country", + "singer.country" + ], + [ + "country", + "singer.nationality" + ], + [ + "country", + "singer.citizenship" + ], + [ + "age", + "singer.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 1, + "singer.country" + ], + [ + 1, + "singer.nationality" + ], + [ + 1, + "singer.citizenship" + ], + [ + 2, + "singer.age" + ] + ], + "linking_list_col": [ + [ + "singer.nationality", + "singer.citizenship" + ], + [ + "singer.country", + "singer.citizenship" + ], + [ + "singer.nationality", + "singer.country" + ] + ] + }, + { + "question": "what is the #average# , #minimum# , and #maximum# age of all singers from france?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male", + "years_old", + "birthdate" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "average", + "singer.age" + ], + [ + "average", + "singer.years_old" + ], + [ + "average", + "singer.birthdate" + ], + [ + "minimum", + "singer.age" + ], + [ + "minimum", + "singer.years_old" + ], + [ + "minimum", + "singer.birthdate" + ], + [ + "maximum", + "singer.age" + ], + [ + "maximum", + "singer.years_old" + ], + [ + "maximum", + "singer.birthdate" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.age" + ], + [ + 0, + "singer.years_old" + ], + [ + 0, + "singer.birthdate" + ], + [ + 1, + "singer.age" + ], + [ + 1, + "singer.years_old" + ], + [ + 1, + "singer.birthdate" + ], + [ + 2, + "singer.age" + ], + [ + 2, + "singer.years_old" + ], + [ + 2, + "singer.birthdate" + ] + ], + "linking_list_col": [ + [ + "singer.years_old", + "singer.birthdate" + ], + [ + "singer.age", + "singer.birthdate" + ], + [ + "singer.years_old", + "singer.age" + ] + ] + }, + { + "question": "what is the #average# , #minimum# , and #maximum# age for all french singers?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male", + "years_old", + "birthdate" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "average", + "singer.age" + ], + [ + "average", + "singer.years_old" + ], + [ + "average", + "singer.birthdate" + ], + [ + "minimum", + "singer.age" + ], + [ + "minimum", + "singer.years_old" + ], + [ + "minimum", + "singer.birthdate" + ], + [ + "maximum", + "singer.age" + ], + [ + "maximum", + "singer.years_old" + ], + [ + "maximum", + "singer.birthdate" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.age" + ], + [ + 0, + "singer.years_old" + ], + [ + 0, + "singer.birthdate" + ], + [ + 1, + "singer.age" + ], + [ + 1, + "singer.years_old" + ], + [ + 1, + "singer.birthdate" + ], + [ + 2, + "singer.age" + ], + [ + 2, + "singer.years_old" + ], + [ + 2, + "singer.birthdate" + ] + ], + "linking_list_col": [ + [ + "singer.years_old", + "singer.birthdate" + ], + [ + "singer.age", + "singer.birthdate" + ], + [ + "singer.years_old", + "singer.age" + ] + ] + }, + { + "question": "show #name# , #country# , #age# for all singers ordered by age from the oldest to the youngest.", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male", + "nationality", + "citizenship" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "name", + "singer.name" + ], + [ + "country", + "singer.country" + ], + [ + "country", + "singer.nationality" + ], + [ + "country", + "singer.citizenship" + ], + [ + "age", + "singer.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 1, + "singer.country" + ], + [ + 1, + "singer.nationality" + ], + [ + 1, + "singer.citizenship" + ], + [ + 2, + "singer.age" + ] + ], + "linking_list_col": [ + [ + "singer.nationality", + "singer.citizenship" + ], + [ + "singer.country", + "singer.citizenship" + ], + [ + "singer.nationality", + "singer.country" + ] + ] + }, + { + "question": "what is #the average, minimum, and maximum age# of all singers from france?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male", + "years_old", + "birthdate" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "the average, minimum, and maximum age", + "singer.age" + ], + [ + "the average, minimum, and maximum age", + "singer.years_old" + ], + [ + "the average, minimum, and maximum age", + "singer.birthdate" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.age" + ], + [ + 0, + "singer.years_old" + ], + [ + 0, + "singer.birthdate" + ] + ], + "linking_list_col": [ + [ + "singer.years_old", + "singer.birthdate" + ], + [ + "singer.age", + "singer.birthdate" + ], + [ + "singer.years_old", + "singer.age" + ] + ] + }, + { + "question": "what is #the average, minimum, and maximum age# for all french singers?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male", + "years_old", + "birthdate" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "the average, minimum, and maximum age", + "singer.age" + ], + [ + "the average, minimum, and maximum age", + "singer.years_old" + ], + [ + "the average, minimum, and maximum age", + "singer.birthdate" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.age" + ], + [ + 0, + "singer.years_old" + ], + [ + 0, + "singer.birthdate" + ] + ], + "linking_list_col": [ + [ + "singer.years_old", + "singer.birthdate" + ], + [ + "singer.age", + "singer.birthdate" + ], + [ + "singer.years_old", + "singer.age" + ] + ] + }, + { + "question": "show #name# , #country# , #age# for all singers ordered by age from the oldest to the youngest.", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male", + "nationality", + "citizenship" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "name", + "singer.name" + ], + [ + "country", + "singer.country" + ], + [ + "country", + "singer.nationality" + ], + [ + "country", + "singer.citizenship" + ], + [ + "age", + "singer.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 1, + "singer.country" + ], + [ + 1, + "singer.nationality" + ], + [ + 1, + "singer.citizenship" + ], + [ + 2, + "singer.age" + ] + ], + "linking_list_col": [ + [ + "singer.nationality", + "singer.citizenship" + ], + [ + "singer.country", + "singer.citizenship" + ], + [ + "singer.nationality", + "singer.country" + ] + ] + }, + { + "question": "what is #the average, minimum, and maximum age# of all singers from france?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male", + "years_old", + "birthdate" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "the average, minimum, and maximum age", + "singer.age" + ], + [ + "the average, minimum, and maximum age", + "singer.years_old" + ], + [ + "the average, minimum, and maximum age", + "singer.birthdate" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.age" + ], + [ + 0, + "singer.years_old" + ], + [ + 0, + "singer.birthdate" + ] + ], + "linking_list_col": [ + [ + "singer.years_old", + "singer.birthdate" + ], + [ + "singer.age", + "singer.birthdate" + ], + [ + "singer.years_old", + "singer.age" + ] + ] + }, + { + "question": "what is #the average, minimum, and maximum age# for all french singers?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male", + "years_old", + "birthdate" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "the average, minimum, and maximum age", + "singer.age" + ], + [ + "the average, minimum, and maximum age", + "singer.years_old" + ], + [ + "the average, minimum, and maximum age", + "singer.birthdate" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.age" + ], + [ + 0, + "singer.years_old" + ], + [ + 0, + "singer.birthdate" + ] + ], + "linking_list_col": [ + [ + "singer.years_old", + "singer.birthdate" + ], + [ + "singer.age", + "singer.birthdate" + ], + [ + "singer.years_old", + "singer.age" + ] + ] + }, + { + "question": "what are all #distinct countries# where #singers above age 20# are from?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male", + "nationality", + "citizenship" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "distinct countries", + "singer.country" + ], + [ + "distinct countries", + "singer.nationality" + ], + [ + "distinct countries", + "singer.citizenship" + ], + [ + "singers above age 20", + "singer.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.country" + ], + [ + 0, + "singer.nationality" + ], + [ + 0, + "singer.citizenship" + ], + [ + 1, + "singer.age" + ] + ], + "linking_list_col": [ + [ + "singer.nationality", + "singer.citizenship" + ], + [ + "singer.country", + "singer.citizenship" + ], + [ + "singer.nationality", + "singer.country" + ] + ] + }, + { + "question": "show all countries and the #number of singers in each country# .", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male", + "nationality", + "citizenship" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "number of singers in each country", + "singer.country" + ], + [ + "number of singers in each country", + "singer.nationality" + ], + [ + "number of singers in each country", + "singer.citizenship" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.country" + ], + [ + 0, + "singer.nationality" + ], + [ + 0, + "singer.citizenship" + ] + ], + "linking_list_col": [ + [ + "singer.nationality", + "singer.citizenship" + ], + [ + "singer.country", + "singer.citizenship" + ], + [ + "singer.nationality", + "singer.country" + ] + ] + }, + { + "question": "show #location# and #name# for all stadiums with a capacity between 5000 and 10000.", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average", + "title", + "appellation" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "location", + "stadium.location" + ], + [ + "name", + "stadium.name" + ], + [ + "name", + "stadium.title" + ], + [ + "name", + "stadium.appellation" + ] + ], + "linking_list_idx": [ + [ + 0, + "stadium.location" + ], + [ + 1, + "stadium.name" + ], + [ + 1, + "stadium.title" + ], + [ + 1, + "stadium.appellation" + ] + ], + "linking_list_col": [ + [ + "stadium.title", + "stadium.appellation" + ], + [ + "stadium.name", + "stadium.appellation" + ], + [ + "stadium.title", + "stadium.name" + ] + ] + }, + { + "question": "what is the #name# and #capacity# for the stadium with highest average attendance?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average", + "seating_capacity", + "maximum_capacity" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "name", + "stadium.name" + ], + [ + "capacity", + "stadium.capacity" + ], + [ + "capacity", + "stadium.seating_capacity" + ], + [ + "capacity", + "stadium.maximum_capacity" + ] + ], + "linking_list_idx": [ + [ + 0, + "stadium.name" + ], + [ + 1, + "stadium.capacity" + ], + [ + 1, + "stadium.seating_capacity" + ], + [ + 1, + "stadium.maximum_capacity" + ] + ], + "linking_list_col": [ + [ + "stadium.seating_capacity", + "stadium.maximum_capacity" + ], + [ + "stadium.capacity", + "stadium.maximum_capacity" + ], + [ + "stadium.seating_capacity", + "stadium.capacity" + ] + ] + }, + { + "question": "what is the #name# and #capacity# for the stadium with the highest average attendance?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average", + "seating_capacity", + "maximum_capacity" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "name", + "stadium.name" + ], + [ + "capacity", + "stadium.capacity" + ], + [ + "capacity", + "stadium.seating_capacity" + ], + [ + "capacity", + "stadium.maximum_capacity" + ] + ], + "linking_list_idx": [ + [ + 0, + "stadium.name" + ], + [ + 1, + "stadium.capacity" + ], + [ + 1, + "stadium.seating_capacity" + ], + [ + 1, + "stadium.maximum_capacity" + ] + ], + "linking_list_col": [ + [ + "stadium.seating_capacity", + "stadium.maximum_capacity" + ], + [ + "stadium.capacity", + "stadium.maximum_capacity" + ], + [ + "stadium.seating_capacity", + "stadium.capacity" + ] + ] + }, + { + "question": "show the #stadium name# and the #number of concerts# in each stadium.", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average", + "title", + "appellation" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "stadium name", + "stadium.name" + ], + [ + "stadium name", + "stadium.title" + ], + [ + "stadium name", + "stadium.appellation" + ], + [ + "number of concerts", + "concert.concert_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "stadium.name" + ], + [ + 0, + "stadium.title" + ], + [ + 0, + "stadium.appellation" + ], + [ + 1, + "concert.concert_id" + ] + ], + "linking_list_col": [ + [ + "stadium.title", + "stadium.appellation" + ], + [ + "stadium.name", + "stadium.appellation" + ], + [ + "stadium.title", + "stadium.name" + ] + ] + }, + { + "question": "show the #stadium name# and #capacity# with most number of concerts in year 2014 or after.", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average", + "seating_capacity", + "maximum_capacity" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "stadium name", + "stadium.name" + ], + [ + "capacity", + "stadium.capacity" + ], + [ + "capacity", + "stadium.seating_capacity" + ], + [ + "capacity", + "stadium.maximum_capacity" + ] + ], + "linking_list_idx": [ + [ + 0, + "stadium.name" + ], + [ + 1, + "stadium.capacity" + ], + [ + 1, + "stadium.seating_capacity" + ], + [ + 1, + "stadium.maximum_capacity" + ] + ], + "linking_list_col": [ + [ + "stadium.seating_capacity", + "stadium.maximum_capacity" + ], + [ + "stadium.capacity", + "stadium.maximum_capacity" + ], + [ + "stadium.seating_capacity", + "stadium.capacity" + ] + ] + }, + { + "question": "which #year# has most number of concerts?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year", + "performance_year", + "event_year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "year", + "concert.year" + ], + [ + "year", + "concert.performance_year" + ], + [ + "year", + "concert.event_year" + ] + ], + "linking_list_idx": [ + [ + 0, + "concert.year" + ], + [ + 0, + "concert.performance_year" + ], + [ + 0, + "concert.event_year" + ] + ], + "linking_list_col": [ + [ + "concert.performance_year", + "concert.event_year" + ], + [ + "concert.year", + "concert.event_year" + ], + [ + "concert.performance_year", + "concert.year" + ] + ] + }, + { + "question": "what is the #year# that had the most concerts?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year", + "performance_year", + "event_year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "year", + "concert.year" + ], + [ + "year", + "concert.performance_year" + ], + [ + "year", + "concert.event_year" + ] + ], + "linking_list_idx": [ + [ + 0, + "concert.year" + ], + [ + 0, + "concert.performance_year" + ], + [ + 0, + "concert.event_year" + ] + ], + "linking_list_col": [ + [ + "concert.performance_year", + "concert.event_year" + ], + [ + "concert.year", + "concert.event_year" + ], + [ + "concert.performance_year", + "concert.year" + ] + ] + }, + { + "question": "show the #stadium names# without any concert.", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average", + "title", + "appellation" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "stadium names", + "stadium.name" + ], + [ + "stadium names", + "stadium.title" + ], + [ + "stadium names", + "stadium.appellation" + ] + ], + "linking_list_idx": [ + [ + 0, + "stadium.name" + ], + [ + 0, + "stadium.title" + ], + [ + 0, + "stadium.appellation" + ] + ], + "linking_list_col": [ + [ + "stadium.title", + "stadium.appellation" + ], + [ + "stadium.name", + "stadium.appellation" + ], + [ + "stadium.title", + "stadium.name" + ] + ] + }, + { + "question": "show #countries# where a #singer above age 40# and a singer below 30 are from.", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male", + "nationality", + "citizenship" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "countries", + "singer.country" + ], + [ + "countries", + "singer.nationality" + ], + [ + "countries", + "singer.citizenship" + ], + [ + "singer above age 40", + "singer.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.country" + ], + [ + 0, + "singer.nationality" + ], + [ + 0, + "singer.citizenship" + ], + [ + 1, + "singer.age" + ] + ], + "linking_list_col": [ + [ + "singer.nationality", + "singer.citizenship" + ], + [ + "singer.country", + "singer.citizenship" + ], + [ + "singer.nationality", + "singer.country" + ] + ] + }, + { + "question": "show the name and #theme# for all concerts and the #number of singers# in each concert.", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year", + "subject", + "topic" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "theme", + "concert.theme" + ], + [ + "theme", + "concert.subject" + ], + [ + "theme", + "concert.topic" + ], + [ + "number of singers", + "singer_in_concert.singer_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "concert.theme" + ], + [ + 0, + "concert.subject" + ], + [ + 0, + "concert.topic" + ], + [ + 1, + "singer_in_concert.singer_id" + ] + ], + "linking_list_col": [ + [ + "concert.subject", + "concert.topic" + ], + [ + "concert.theme", + "concert.topic" + ], + [ + "concert.subject", + "concert.theme" + ] + ] + }, + { + "question": "list #singer names# and #number of concerts# for each singer.", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male", + "artist_name", + "performer_name" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "singer names", + "singer.name" + ], + [ + "singer names", + "singer.artist_name" + ], + [ + "singer names", + "singer.performer_name" + ], + [ + "number of concerts", + "singer_in_concert.concert_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 0, + "singer.artist_name" + ], + [ + 0, + "singer.performer_name" + ], + [ + 1, + "singer_in_concert.concert_id" + ] + ], + "linking_list_col": [ + [ + "singer.artist_name", + "singer.performer_name" + ], + [ + "singer.name", + "singer.performer_name" + ], + [ + "singer.artist_name", + "singer.name" + ] + ] + }, + { + "question": "list all #singer names# in concerts in year 2014.", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male", + "artist_name", + "performer_name" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "singer names", + "singer.name" + ], + [ + "singer names", + "singer.artist_name" + ], + [ + "singer names", + "singer.performer_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 0, + "singer.artist_name" + ], + [ + 0, + "singer.performer_name" + ] + ], + "linking_list_col": [ + [ + "singer.artist_name", + "singer.performer_name" + ], + [ + "singer.name", + "singer.performer_name" + ], + [ + "singer.artist_name", + "singer.name" + ] + ] + }, + { + "question": "what is the #name# and #nation# of the singer who have a song having 'hey' in its name?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male", + "nationality", + "citizenship" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "name", + "singer.name" + ], + [ + "nation", + "singer.country" + ], + [ + "nation", + "singer.nationality" + ], + [ + "nation", + "singer.citizenship" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 1, + "singer.country" + ], + [ + 1, + "singer.nationality" + ], + [ + 1, + "singer.citizenship" + ] + ], + "linking_list_col": [ + [ + "singer.nationality", + "singer.citizenship" + ], + [ + "singer.country", + "singer.citizenship" + ], + [ + "singer.nationality", + "singer.country" + ] + ] + }, + { + "question": "what is the #name# and #country# of origin of every singer who has a song with the word 'hey' in its title?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male", + "nationality", + "citizenship" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "name", + "singer.name" + ], + [ + "country", + "singer.country" + ], + [ + "country", + "singer.nationality" + ], + [ + "country", + "singer.citizenship" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 1, + "singer.country" + ], + [ + 1, + "singer.nationality" + ], + [ + 1, + "singer.citizenship" + ] + ], + "linking_list_col": [ + [ + "singer.nationality", + "singer.citizenship" + ], + [ + "singer.country", + "singer.citizenship" + ], + [ + "singer.nationality", + "singer.country" + ] + ] + }, + { + "question": "find the #weight of the youngest dog# .", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight", + "mass", + "body_weight" + ] + }, + "linking_list": [ + [ + "weight of the youngest dog", + "pets.weight" + ], + [ + "weight of the youngest dog", + "pets.mass" + ], + [ + "weight of the youngest dog", + "pets.body_weight" + ] + ], + "linking_list_idx": [ + [ + 0, + "pets.weight" + ], + [ + 0, + "pets.mass" + ], + [ + 0, + "pets.body_weight" + ] + ], + "linking_list_col": [ + [ + "pets.mass", + "pets.body_weight" + ], + [ + "pets.weight", + "pets.body_weight" + ], + [ + "pets.mass", + "pets.weight" + ] + ] + }, + { + "question": "find the #maximum weight# for each type of pet. list the maximum weight and #pet type# .", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight", + "mass", + "body_weight" + ] + }, + "linking_list": [ + [ + "maximum weight", + "pets.weight" + ], + [ + "maximum weight", + "pets.mass" + ], + [ + "maximum weight", + "pets.body_weight" + ], + [ + "pet type", + "pets.pettype" + ] + ], + "linking_list_idx": [ + [ + 0, + "pets.weight" + ], + [ + 0, + "pets.mass" + ], + [ + 0, + "pets.body_weight" + ], + [ + 1, + "pets.pettype" + ] + ], + "linking_list_col": [ + [ + "pets.mass", + "pets.body_weight" + ], + [ + "pets.weight", + "pets.body_weight" + ], + [ + "pets.mass", + "pets.weight" + ] + ] + }, + { + "question": "list the #maximum weight# and type for each type of pet.", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight", + "mass", + "body_weight" + ] + }, + "linking_list": [ + [ + "maximum weight", + "pets.weight" + ], + [ + "maximum weight", + "pets.mass" + ], + [ + "maximum weight", + "pets.body_weight" + ] + ], + "linking_list_idx": [ + [ + 0, + "pets.weight" + ], + [ + 0, + "pets.mass" + ], + [ + 0, + "pets.body_weight" + ] + ], + "linking_list_col": [ + [ + "pets.mass", + "pets.body_weight" + ], + [ + "pets.weight", + "pets.body_weight" + ], + [ + "pets.mass", + "pets.weight" + ] + ] + }, + { + "question": "find the #number of distinct type of pets# .", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight", + "type", + "kind" + ] + }, + "linking_list": [ + [ + "number of distinct type of pets", + "pets.pettype" + ], + [ + "number of distinct type of pets", + "pets.type" + ], + [ + "number of distinct type of pets", + "pets.kind" + ] + ], + "linking_list_idx": [ + [ + 0, + "pets.pettype" + ], + [ + 0, + "pets.type" + ], + [ + 0, + "pets.kind" + ] + ], + "linking_list_col": [ + [ + "pets.type", + "pets.kind" + ], + [ + "pets.pettype", + "pets.kind" + ], + [ + "pets.type", + "pets.pettype" + ] + ] + }, + { + "question": "how many #different types of pet# are there?", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight", + "type", + "kind" + ] + }, + "linking_list": [ + [ + "different types of pet", + "pets.pettype" + ], + [ + "different types of pet", + "pets.type" + ], + [ + "different types of pet", + "pets.kind" + ] + ], + "linking_list_idx": [ + [ + 0, + "pets.pettype" + ], + [ + 0, + "pets.type" + ], + [ + 0, + "pets.kind" + ] + ], + "linking_list_col": [ + [ + "pets.type", + "pets.kind" + ], + [ + "pets.pettype", + "pets.kind" + ], + [ + "pets.type", + "pets.pettype" + ] + ] + }, + { + "question": "find the #first name# of students who have #cat# or #dog# pet.", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code", + "given_name", + "first_name" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "first name", + "student.fname" + ], + [ + "first name", + "student.given_name" + ], + [ + "first name", + "student.first_name" + ], + [ + "cat", + "pets.pettype" + ], + [ + "dog", + "pets.pettype" + ] + ], + "linking_list_idx": [ + [ + 0, + "student.fname" + ], + [ + 0, + "student.given_name" + ], + [ + 0, + "student.first_name" + ], + [ + 1, + "pets.pettype" + ], + [ + 2, + "pets.pettype" + ] + ], + "linking_list_col": [ + [ + "student.given_name", + "student.first_name" + ], + [ + "student.fname", + "student.first_name" + ], + [ + "student.given_name", + "student.fname" + ] + ] + }, + { + "question": "what are the #first names# of every student who has a #cat# or #dog# as a pet?", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code", + "given_name", + "first_name" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "first names", + "student.fname" + ], + [ + "first names", + "student.given_name" + ], + [ + "first names", + "student.first_name" + ], + [ + "cat", + "pets.pettype" + ], + [ + "dog", + "pets.pettype" + ] + ], + "linking_list_idx": [ + [ + 0, + "student.fname" + ], + [ + 0, + "student.given_name" + ], + [ + 0, + "student.first_name" + ], + [ + 1, + "pets.pettype" + ], + [ + 2, + "pets.pettype" + ] + ], + "linking_list_col": [ + [ + "student.given_name", + "student.first_name" + ], + [ + "student.fname", + "student.first_name" + ], + [ + "student.given_name", + "student.fname" + ] + ] + }, + { + "question": "what are the #students' first names# who have both #cats# and #dogs# as pets?", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code", + "given_name", + "first_name" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "cats", + "pets.pettype" + ], + [ + "dogs", + "pets.pettype" + ], + [ + "students' first names", + "student.fname" + ], + [ + "students' first names", + "student.given_name" + ], + [ + "students' first names", + "student.first_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "pets.pettype" + ], + [ + 1, + "pets.pettype" + ], + [ + 2, + "student.fname" + ], + [ + 2, + "student.given_name" + ], + [ + 2, + "student.first_name" + ] + ], + "linking_list_col": [ + [ + "student.given_name", + "student.first_name" + ], + [ + "student.fname", + "student.first_name" + ], + [ + "student.given_name", + "student.fname" + ] + ] + }, + { + "question": "find the #major# and #age# of students who do not have a cat pet.", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code", + "field_of_study", + "academic_discipline" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "major", + "student.major" + ], + [ + "major", + "student.field_of_study" + ], + [ + "major", + "student.academic_discipline" + ], + [ + "age", + "student.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "student.major" + ], + [ + 0, + "student.field_of_study" + ], + [ + 0, + "student.academic_discipline" + ], + [ + 1, + "student.age" + ] + ], + "linking_list_col": [ + [ + "student.field_of_study", + "student.academic_discipline" + ], + [ + "student.major", + "student.academic_discipline" + ], + [ + "student.field_of_study", + "student.major" + ] + ] + }, + { + "question": "what #major# is every student who does not own a cat as a pet, and also how old are they?", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code", + "field_of_study", + "academic_discipline" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "major", + "student.major" + ], + [ + "major", + "student.field_of_study" + ], + [ + "major", + "student.academic_discipline" + ] + ], + "linking_list_idx": [ + [ + 0, + "student.major" + ], + [ + 0, + "student.field_of_study" + ], + [ + 0, + "student.academic_discipline" + ] + ], + "linking_list_col": [ + [ + "student.field_of_study", + "student.academic_discipline" + ], + [ + "student.major", + "student.academic_discipline" + ], + [ + "student.field_of_study", + "student.major" + ] + ] + }, + { + "question": "find the #first name# and #age# of students who have a dog but do not have a cat as a pet.", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code", + "given_name", + "first_name" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "first name", + "student.fname" + ], + [ + "first name", + "student.given_name" + ], + [ + "first name", + "student.first_name" + ], + [ + "age", + "student.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "student.fname" + ], + [ + 0, + "student.given_name" + ], + [ + 0, + "student.first_name" + ], + [ + 1, + "student.age" + ] + ], + "linking_list_col": [ + [ + "student.given_name", + "student.first_name" + ], + [ + "student.fname", + "student.first_name" + ], + [ + "student.given_name", + "student.fname" + ] + ] + }, + { + "question": "what is the #first name# of every student who has a #dog# but does not have a cat?", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code", + "given_name", + "first_name" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "first name", + "student.fname" + ], + [ + "first name", + "student.given_name" + ], + [ + "first name", + "student.first_name" + ], + [ + "dog", + "pets.pettype" + ] + ], + "linking_list_idx": [ + [ + 0, + "student.fname" + ], + [ + 0, + "student.given_name" + ], + [ + 0, + "student.first_name" + ], + [ + 1, + "pets.pettype" + ] + ], + "linking_list_col": [ + [ + "student.given_name", + "student.first_name" + ], + [ + "student.fname", + "student.first_name" + ], + [ + "student.given_name", + "student.fname" + ] + ] + }, + { + "question": "find the type and #weight# of the youngest pet.", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight", + "mass", + "body_weight" + ] + }, + "linking_list": [ + [ + "weight", + "pets.weight" + ], + [ + "weight", + "pets.mass" + ], + [ + "weight", + "pets.body_weight" + ] + ], + "linking_list_idx": [ + [ + 0, + "pets.weight" + ], + [ + 0, + "pets.mass" + ], + [ + 0, + "pets.body_weight" + ] + ], + "linking_list_col": [ + [ + "pets.mass", + "pets.body_weight" + ], + [ + "pets.weight", + "pets.body_weight" + ], + [ + "pets.mass", + "pets.weight" + ] + ] + }, + { + "question": "find the average and #maximum age for each type of pet# .", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight", + "age", + "years_old" + ] + }, + "linking_list": [ + [ + "maximum age for each type of pet", + "pets.pet_age" + ], + [ + "maximum age for each type of pet", + "pets.age" + ], + [ + "maximum age for each type of pet", + "pets.years_old" + ] + ], + "linking_list_idx": [ + [ + 0, + "pets.pet_age" + ], + [ + 0, + "pets.age" + ], + [ + 0, + "pets.years_old" + ] + ], + "linking_list_col": [ + [ + "pets.age", + "pets.years_old" + ], + [ + "pets.pet_age", + "pets.years_old" + ], + [ + "pets.age", + "pets.pet_age" + ] + ] + }, + { + "question": "find the #average weight for each pet type# .", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight", + "mass", + "body_weight" + ] + }, + "linking_list": [ + [ + "average weight for each pet type", + "pets.weight" + ], + [ + "average weight for each pet type", + "pets.mass" + ], + [ + "average weight for each pet type", + "pets.body_weight" + ] + ], + "linking_list_idx": [ + [ + 0, + "pets.weight" + ], + [ + 0, + "pets.mass" + ], + [ + 0, + "pets.body_weight" + ] + ], + "linking_list_col": [ + [ + "pets.mass", + "pets.body_weight" + ], + [ + "pets.weight", + "pets.body_weight" + ], + [ + "pets.mass", + "pets.weight" + ] + ] + }, + { + "question": "find the #first name# and #age# of students who have a pet.", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code", + "given_name", + "first_name" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "first name", + "student.fname" + ], + [ + "first name", + "student.given_name" + ], + [ + "first name", + "student.first_name" + ], + [ + "age", + "student.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "student.fname" + ], + [ + 0, + "student.given_name" + ], + [ + 0, + "student.first_name" + ], + [ + 1, + "student.age" + ] + ], + "linking_list_col": [ + [ + "student.given_name", + "student.first_name" + ], + [ + "student.fname", + "student.first_name" + ], + [ + "student.given_name", + "student.fname" + ] + ] + }, + { + "question": "what are the different #first names# and #ages# of the students who do have pets?", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code", + "given_name", + "first_name" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "first names", + "student.fname" + ], + [ + "first names", + "student.given_name" + ], + [ + "first names", + "student.first_name" + ], + [ + "ages", + "student.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "student.fname" + ], + [ + 0, + "student.given_name" + ], + [ + 0, + "student.first_name" + ], + [ + 1, + "student.age" + ] + ], + "linking_list_col": [ + [ + "student.given_name", + "student.first_name" + ], + [ + "student.fname", + "student.first_name" + ], + [ + "student.given_name", + "student.fname" + ] + ] + }, + { + "question": "find the #number of pets# for each student who has any pet and #student id# .", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code", + "id", + "student_id" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "number of pets", + "has_pet.stuid" + ], + [ + "student id", + "student.stuid" + ], + [ + "student id", + "student.id" + ], + [ + "student id", + "student.student_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "has_pet.stuid" + ], + [ + 1, + "student.stuid" + ], + [ + 1, + "student.id" + ], + [ + 1, + "student.student_id" + ] + ], + "linking_list_col": [ + [ + "student.id", + "student.student_id" + ], + [ + "student.stuid", + "student.student_id" + ], + [ + "student.id", + "student.stuid" + ] + ] + }, + { + "question": "find the #first name# and #gender# of student who have more than one pet.", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code", + "given_name", + "first_name" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "first name", + "student.fname" + ], + [ + "first name", + "student.given_name" + ], + [ + "first name", + "student.first_name" + ], + [ + "gender", + "student.sex" + ] + ], + "linking_list_idx": [ + [ + 0, + "student.fname" + ], + [ + 0, + "student.given_name" + ], + [ + 0, + "student.first_name" + ], + [ + 1, + "student.sex" + ] + ], + "linking_list_col": [ + [ + "student.given_name", + "student.first_name" + ], + [ + "student.fname", + "student.first_name" + ], + [ + "student.given_name", + "student.fname" + ] + ] + }, + { + "question": "what is the #first name# and #gender# of the all the students who have more than one pet?", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code", + "given_name", + "first_name" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "first name", + "student.fname" + ], + [ + "first name", + "student.given_name" + ], + [ + "first name", + "student.first_name" + ], + [ + "gender", + "student.sex" + ] + ], + "linking_list_idx": [ + [ + 0, + "student.fname" + ], + [ + 0, + "student.given_name" + ], + [ + 0, + "student.first_name" + ], + [ + 1, + "student.sex" + ] + ], + "linking_list_col": [ + [ + "student.given_name", + "student.first_name" + ], + [ + "student.fname", + "student.first_name" + ], + [ + "student.given_name", + "student.fname" + ] + ] + }, + { + "question": "find the #last name# of the student who has a #cat that is age# 3.", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code", + "family_name", + "surname" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "last name", + "student.lname" + ], + [ + "last name", + "student.family_name" + ], + [ + "last name", + "student.surname" + ], + [ + "cat that is age", + "pets.pettype" + ] + ], + "linking_list_idx": [ + [ + 0, + "student.lname" + ], + [ + 0, + "student.family_name" + ], + [ + 0, + "student.surname" + ], + [ + 1, + "pets.pettype" + ] + ], + "linking_list_col": [ + [ + "student.family_name", + "student.surname" + ], + [ + "student.lname", + "student.surname" + ], + [ + "student.family_name", + "student.lname" + ] + ] + }, + { + "question": "what is the #last name# of the student who has a #cat# that is 3 years old?", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code", + "family_name", + "surname" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "last name", + "student.lname" + ], + [ + "last name", + "student.family_name" + ], + [ + "last name", + "student.surname" + ], + [ + "cat", + "pets.pettype" + ] + ], + "linking_list_idx": [ + [ + 0, + "student.lname" + ], + [ + 0, + "student.family_name" + ], + [ + 0, + "student.surname" + ], + [ + 1, + "pets.pettype" + ] + ], + "linking_list_col": [ + [ + "student.family_name", + "student.surname" + ], + [ + "student.lname", + "student.surname" + ], + [ + "student.family_name", + "student.lname" + ] + ] + }, + { + "question": "how many countries does each continent have? list the #continent id# , #continent name# and the #number of countries# .", + "db_schema": { + "continents": [ + "contid", + "continent", + "continentname", + "area" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "continent id", + "continents.contid" + ], + [ + "continent name", + "continents.continent" + ], + [ + "continent name", + "continents.continentname" + ], + [ + "continent name", + "continents.area" + ], + [ + "number of countries", + "countries.countryid" + ] + ], + "linking_list_idx": [ + [ + 0, + "continents.contid" + ], + [ + 1, + "continents.continent" + ], + [ + 1, + "continents.continentname" + ], + [ + 1, + "continents.area" + ], + [ + 2, + "countries.countryid" + ] + ], + "linking_list_col": [ + [ + "continents.continentname", + "continents.area" + ], + [ + "continents.continent", + "continents.area" + ], + [ + "continents.continentname", + "continents.continent" + ] + ] + }, + { + "question": "how many models does each car maker produce? list #maker full name# , #id# and the #number# .", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country", + "maker_id", + "serial_id" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "maker full name", + "car_makers.fullname" + ], + [ + "id", + "car_makers.id" + ], + [ + "id", + "car_makers.maker_id" + ], + [ + "id", + "car_makers.serial_id" + ], + [ + "number", + "model_list.modelid" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_makers.fullname" + ], + [ + 1, + "car_makers.id" + ], + [ + 1, + "car_makers.maker_id" + ], + [ + 1, + "car_makers.serial_id" + ], + [ + 2, + "model_list.modelid" + ] + ], + "linking_list_col": [ + [ + "car_makers.maker_id", + "car_makers.serial_id" + ], + [ + "car_makers.id", + "car_makers.serial_id" + ], + [ + "car_makers.maker_id", + "car_makers.id" + ] + ] + }, + { + "question": "what is the #full name# of each car maker, along with its #id# and how many models it produces?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country", + "maker_id", + "serial_id" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "full name", + "car_makers.fullname" + ], + [ + "id", + "car_makers.id" + ], + [ + "id", + "car_makers.maker_id" + ], + [ + "id", + "car_makers.serial_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_makers.fullname" + ], + [ + 1, + "car_makers.id" + ], + [ + 1, + "car_makers.maker_id" + ], + [ + 1, + "car_makers.serial_id" + ] + ], + "linking_list_col": [ + [ + "car_makers.maker_id", + "car_makers.serial_id" + ], + [ + "car_makers.id", + "car_makers.serial_id" + ], + [ + "car_makers.maker_id", + "car_makers.id" + ] + ] + }, + { + "question": "which #model# of the car has the minimum horsepower?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make", + "vehicle_model", + "designation" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "model", + "car_names.model" + ], + [ + "model", + "car_names.vehicle_model" + ], + [ + "model", + "car_names.designation" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_names.model" + ], + [ + 0, + "car_names.vehicle_model" + ], + [ + 0, + "car_names.designation" + ] + ], + "linking_list_col": [ + [ + "car_names.vehicle_model", + "car_names.designation" + ], + [ + "car_names.model", + "car_names.designation" + ], + [ + "car_names.vehicle_model", + "car_names.model" + ] + ] + }, + { + "question": "what is the #model# of the car with the smallest amount of horsepower?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make", + "vehicle_model", + "designation" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "model", + "car_names.model" + ], + [ + "model", + "car_names.vehicle_model" + ], + [ + "model", + "car_names.designation" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_names.model" + ], + [ + 0, + "car_names.vehicle_model" + ], + [ + 0, + "car_names.designation" + ] + ], + "linking_list_col": [ + [ + "car_names.vehicle_model", + "car_names.designation" + ], + [ + "car_names.model", + "car_names.designation" + ], + [ + "car_names.vehicle_model", + "car_names.model" + ] + ] + }, + { + "question": "find the #model# of the car whose #weight# is below the average weight.", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make", + "vehicle_model", + "designation" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "model", + "car_names.model" + ], + [ + "model", + "car_names.vehicle_model" + ], + [ + "model", + "car_names.designation" + ], + [ + "weight", + "cars_data.weight" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_names.model" + ], + [ + 0, + "car_names.vehicle_model" + ], + [ + 0, + "car_names.designation" + ], + [ + 1, + "cars_data.weight" + ] + ], + "linking_list_col": [ + [ + "car_names.vehicle_model", + "car_names.designation" + ], + [ + "car_names.model", + "car_names.designation" + ], + [ + "car_names.vehicle_model", + "car_names.model" + ] + ] + }, + { + "question": "what is the #model# for the car with a #weight# smaller than the average?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make", + "vehicle_model", + "designation" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "model", + "car_names.model" + ], + [ + "model", + "car_names.vehicle_model" + ], + [ + "model", + "car_names.designation" + ], + [ + "weight", + "cars_data.weight" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_names.model" + ], + [ + 0, + "car_names.vehicle_model" + ], + [ + 0, + "car_names.designation" + ], + [ + 1, + "cars_data.weight" + ] + ], + "linking_list_col": [ + [ + "car_names.vehicle_model", + "car_names.designation" + ], + [ + "car_names.model", + "car_names.designation" + ], + [ + "car_names.vehicle_model", + "car_names.model" + ] + ] + }, + { + "question": "what is the name of the different #car makers# who #produced# a car in 1970?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country", + "brand", + "manufacturer" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "car makers", + "car_makers.maker" + ], + [ + "car makers", + "car_makers.brand" + ], + [ + "car makers", + "car_makers.manufacturer" + ], + [ + "produced", + "cars_data.year" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_makers.maker" + ], + [ + 0, + "car_makers.brand" + ], + [ + 0, + "car_makers.manufacturer" + ], + [ + 1, + "cars_data.year" + ] + ], + "linking_list_col": [ + [ + "car_makers.brand", + "car_makers.manufacturer" + ], + [ + "car_makers.maker", + "car_makers.manufacturer" + ], + [ + "car_makers.brand", + "car_makers.maker" + ] + ] + }, + { + "question": "find the #make# and #production time# of the cars that were produced in the earliest year?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year", + "manufacturing_year", + "production_year" + ] + }, + "linking_list": [ + [ + "make", + "car_names.make" + ], + [ + "production time", + "cars_data.year" + ], + [ + "production time", + "cars_data.manufacturing_year" + ], + [ + "production time", + "cars_data.production_year" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_names.make" + ], + [ + 1, + "cars_data.year" + ], + [ + 1, + "cars_data.manufacturing_year" + ], + [ + 1, + "cars_data.production_year" + ] + ], + "linking_list_col": [ + [ + "cars_data.manufacturing_year", + "cars_data.production_year" + ], + [ + "cars_data.year", + "cars_data.production_year" + ], + [ + "cars_data.manufacturing_year", + "cars_data.year" + ] + ] + }, + { + "question": "what is the #maker# of the carr produced in the earliest #year# and what year was it?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year", + "manufacturing_year", + "production_year" + ] + }, + "linking_list": [ + [ + "maker", + "car_names.make" + ], + [ + "year", + "cars_data.year" + ], + [ + "year", + "cars_data.manufacturing_year" + ], + [ + "year", + "cars_data.production_year" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_names.make" + ], + [ + 1, + "cars_data.year" + ], + [ + 1, + "cars_data.manufacturing_year" + ], + [ + 1, + "cars_data.production_year" + ] + ], + "linking_list_col": [ + [ + "cars_data.manufacturing_year", + "cars_data.production_year" + ], + [ + "cars_data.year", + "cars_data.production_year" + ], + [ + "cars_data.manufacturing_year", + "cars_data.year" + ] + ] + }, + { + "question": "which #distinct car models# are the produced after 1980?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model", + "model_name", + "vehicle_name" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "distinct car models", + "model_list.model" + ], + [ + "distinct car models", + "model_list.model_name" + ], + [ + "distinct car models", + "model_list.vehicle_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "model_list.model" + ], + [ + 0, + "model_list.model_name" + ], + [ + 0, + "model_list.vehicle_name" + ] + ], + "linking_list_col": [ + [ + "model_list.model_name", + "model_list.vehicle_name" + ], + [ + "model_list.model", + "model_list.vehicle_name" + ], + [ + "model_list.model_name", + "model_list.model" + ] + ] + }, + { + "question": "how many car makers are there in each continents? list the #continent name# and the #count# .", + "db_schema": { + "continents": [ + "contid", + "continent", + "continentname", + "area" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "continent name", + "continents.continent" + ], + [ + "continent name", + "continents.continentname" + ], + [ + "continent name", + "continents.area" + ], + [ + "count", + "car_makers.id" + ] + ], + "linking_list_idx": [ + [ + 0, + "continents.continent" + ], + [ + 0, + "continents.continentname" + ], + [ + 0, + "continents.area" + ], + [ + 1, + "car_makers.id" + ] + ], + "linking_list_col": [ + [ + "continents.continentname", + "continents.area" + ], + [ + "continents.continent", + "continents.area" + ], + [ + "continents.continentname", + "continents.continent" + ] + ] + }, + { + "question": "what is the name of each #continent# and how many car makers are there in each one?", + "db_schema": { + "continents": [ + "contid", + "continent", + "continentname", + "area" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "continent", + "continents.continent" + ], + [ + "continent", + "continents.continentname" + ], + [ + "continent", + "continents.area" + ] + ], + "linking_list_idx": [ + [ + 0, + "continents.continent" + ], + [ + 0, + "continents.continentname" + ], + [ + 0, + "continents.area" + ] + ], + "linking_list_col": [ + [ + "continents.continentname", + "continents.area" + ], + [ + "continents.continent", + "continents.area" + ], + [ + "continents.continentname", + "continents.continent" + ] + ] + }, + { + "question": "which of the countries has the most car makers? list the #country name# .", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent", + "name", + "nationname" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "country name", + "countries.countryname" + ], + [ + "country name", + "countries.name" + ], + [ + "country name", + "countries.nationname" + ] + ], + "linking_list_idx": [ + [ + 0, + "countries.countryname" + ], + [ + 0, + "countries.name" + ], + [ + 0, + "countries.nationname" + ] + ], + "linking_list_col": [ + [ + "countries.name", + "countries.nationname" + ], + [ + "countries.countryname", + "countries.nationname" + ], + [ + "countries.name", + "countries.countryname" + ] + ] + }, + { + "question": "what is the #accelerate of the car make# amc hornet sportabout (sw)?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year", + "acceleration", + "velocity" + ] + }, + "linking_list": [ + [ + "accelerate of the car make", + "cars_data.accelerate" + ], + [ + "accelerate of the car make", + "cars_data.acceleration" + ], + [ + "accelerate of the car make", + "cars_data.velocity" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.accelerate" + ], + [ + 0, + "cars_data.acceleration" + ], + [ + 0, + "cars_data.velocity" + ] + ], + "linking_list_col": [ + [ + "cars_data.acceleration", + "cars_data.velocity" + ], + [ + "cars_data.accelerate", + "cars_data.velocity" + ], + [ + "cars_data.acceleration", + "cars_data.accelerate" + ] + ] + }, + { + "question": "what is the #average miles per gallon# of all the cards with 4 cylinders?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year", + "fuel_efficiency", + "mileage_per_gallon" + ] + }, + "linking_list": [ + [ + "average miles per gallon", + "cars_data.mpg" + ], + [ + "average miles per gallon", + "cars_data.fuel_efficiency" + ], + [ + "average miles per gallon", + "cars_data.mileage_per_gallon" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.mpg" + ], + [ + 0, + "cars_data.fuel_efficiency" + ], + [ + 0, + "cars_data.mileage_per_gallon" + ] + ], + "linking_list_col": [ + [ + "cars_data.fuel_efficiency", + "cars_data.mileage_per_gallon" + ], + [ + "cars_data.mpg", + "cars_data.mileage_per_gallon" + ], + [ + "cars_data.fuel_efficiency", + "cars_data.mpg" + ] + ] + }, + { + "question": "what are all the #makers# and models?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model", + "manufacturer", + "brand" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "makers", + "model_list.maker" + ], + [ + "makers", + "model_list.manufacturer" + ], + [ + "makers", + "model_list.brand" + ] + ], + "linking_list_idx": [ + [ + 0, + "model_list.maker" + ], + [ + 0, + "model_list.manufacturer" + ], + [ + 0, + "model_list.brand" + ] + ], + "linking_list_col": [ + [ + "model_list.manufacturer", + "model_list.brand" + ], + [ + "model_list.maker", + "model_list.brand" + ], + [ + "model_list.manufacturer", + "model_list.maker" + ] + ] + }, + { + "question": "what are the #makers# and models?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model", + "manufacturer", + "brand" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "makers", + "model_list.maker" + ], + [ + "makers", + "model_list.manufacturer" + ], + [ + "makers", + "model_list.brand" + ] + ], + "linking_list_idx": [ + [ + 0, + "model_list.maker" + ], + [ + 0, + "model_list.manufacturer" + ], + [ + 0, + "model_list.brand" + ] + ], + "linking_list_col": [ + [ + "model_list.manufacturer", + "model_list.brand" + ], + [ + "model_list.maker", + "model_list.brand" + ], + [ + "model_list.manufacturer", + "model_list.maker" + ] + ] + }, + { + "question": "which #countries in europe# have at least 3 car manufacturers?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent", + "name", + "nationname" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "countries in europe", + "countries.countryname" + ], + [ + "countries in europe", + "countries.name" + ], + [ + "countries in europe", + "countries.nationname" + ] + ], + "linking_list_idx": [ + [ + 0, + "countries.countryname" + ], + [ + 0, + "countries.name" + ], + [ + 0, + "countries.nationname" + ] + ], + "linking_list_col": [ + [ + "countries.name", + "countries.nationname" + ], + [ + "countries.countryname", + "countries.nationname" + ], + [ + "countries.name", + "countries.countryname" + ] + ] + }, + { + "question": "what is the #maximum horsepower# and the #make# of the car models with 3 cylinders?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year", + "power", + "torque" + ] + }, + "linking_list": [ + [ + "maximum horsepower", + "cars_data.horsepower" + ], + [ + "maximum horsepower", + "cars_data.power" + ], + [ + "maximum horsepower", + "cars_data.torque" + ], + [ + "make", + "car_names.make" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.horsepower" + ], + [ + 0, + "cars_data.power" + ], + [ + 0, + "cars_data.torque" + ], + [ + 1, + "car_names.make" + ] + ], + "linking_list_col": [ + [ + "cars_data.power", + "cars_data.torque" + ], + [ + "cars_data.horsepower", + "cars_data.torque" + ], + [ + "cars_data.power", + "cars_data.horsepower" + ] + ] + }, + { + "question": "what is the largest amount of #horsepower# for the models with 3 cylinders and what #make# is it?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year", + "power", + "torque" + ] + }, + "linking_list": [ + [ + "horsepower", + "cars_data.horsepower" + ], + [ + "horsepower", + "cars_data.power" + ], + [ + "horsepower", + "cars_data.torque" + ], + [ + "make", + "car_names.make" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.horsepower" + ], + [ + 0, + "cars_data.power" + ], + [ + 0, + "cars_data.torque" + ], + [ + 1, + "car_names.make" + ] + ], + "linking_list_col": [ + [ + "cars_data.power", + "cars_data.torque" + ], + [ + "cars_data.horsepower", + "cars_data.torque" + ], + [ + "cars_data.power", + "cars_data.horsepower" + ] + ] + }, + { + "question": "which #model# saves the most gasoline? that is to say, have the maximum #miles per gallon# .", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make", + "vehicle_model", + "designation" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "model", + "car_names.model" + ], + [ + "model", + "car_names.vehicle_model" + ], + [ + "model", + "car_names.designation" + ], + [ + "miles per gallon", + "cars_data.mpg" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_names.model" + ], + [ + 0, + "car_names.vehicle_model" + ], + [ + 0, + "car_names.designation" + ], + [ + 1, + "cars_data.mpg" + ] + ], + "linking_list_col": [ + [ + "car_names.vehicle_model", + "car_names.designation" + ], + [ + "car_names.model", + "car_names.designation" + ], + [ + "car_names.vehicle_model", + "car_names.model" + ] + ] + }, + { + "question": "what is the #average horsepower# of the cars before 1980?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year", + "power", + "torque" + ] + }, + "linking_list": [ + [ + "average horsepower", + "cars_data.horsepower" + ], + [ + "average horsepower", + "cars_data.power" + ], + [ + "average horsepower", + "cars_data.torque" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.horsepower" + ], + [ + 0, + "cars_data.power" + ], + [ + 0, + "cars_data.torque" + ] + ], + "linking_list_col": [ + [ + "cars_data.power", + "cars_data.torque" + ], + [ + "cars_data.horsepower", + "cars_data.torque" + ], + [ + "cars_data.power", + "cars_data.horsepower" + ] + ] + }, + { + "question": "what is the #average edispl# of the cars of #model# volvo?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year", + "engine_displacement", + "engine_size" + ] + }, + "linking_list": [ + [ + "average edispl", + "cars_data.edispl" + ], + [ + "average edispl", + "cars_data.engine_displacement" + ], + [ + "average edispl", + "cars_data.engine_size" + ], + [ + "model", + "car_names.model" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.edispl" + ], + [ + 0, + "cars_data.engine_displacement" + ], + [ + 0, + "cars_data.engine_size" + ], + [ + 1, + "car_names.model" + ] + ], + "linking_list_col": [ + [ + "cars_data.engine_displacement", + "cars_data.engine_size" + ], + [ + "cars_data.edispl", + "cars_data.engine_size" + ], + [ + "cars_data.engine_displacement", + "cars_data.edispl" + ] + ] + }, + { + "question": "which #model# has the most version(make) of cars?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make", + "vehicle_model", + "designation" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "model", + "car_names.model" + ], + [ + "model", + "car_names.vehicle_model" + ], + [ + "model", + "car_names.designation" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_names.model" + ], + [ + 0, + "car_names.vehicle_model" + ], + [ + 0, + "car_names.designation" + ] + ], + "linking_list_col": [ + [ + "car_names.vehicle_model", + "car_names.designation" + ], + [ + "car_names.model", + "car_names.designation" + ], + [ + "car_names.vehicle_model", + "car_names.model" + ] + ] + }, + { + "question": "what #model# has the most different versions?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make", + "vehicle_model", + "designation" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "model", + "car_names.model" + ], + [ + "model", + "car_names.vehicle_model" + ], + [ + "model", + "car_names.designation" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_names.model" + ], + [ + 0, + "car_names.vehicle_model" + ], + [ + 0, + "car_names.designation" + ] + ], + "linking_list_col": [ + [ + "car_names.vehicle_model", + "car_names.designation" + ], + [ + "car_names.model", + "car_names.designation" + ], + [ + "car_names.vehicle_model", + "car_names.model" + ] + ] + }, + { + "question": "which makers designed more than 3 car models? list #full name# and the #id# .", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country", + "maker_id", + "serial_id" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "full name", + "car_makers.fullname" + ], + [ + "id", + "car_makers.id" + ], + [ + "id", + "car_makers.maker_id" + ], + [ + "id", + "car_makers.serial_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_makers.fullname" + ], + [ + 1, + "car_makers.id" + ], + [ + 1, + "car_makers.maker_id" + ], + [ + 1, + "car_makers.serial_id" + ] + ], + "linking_list_col": [ + [ + "car_makers.maker_id", + "car_makers.serial_id" + ], + [ + "car_makers.id", + "car_makers.serial_id" + ], + [ + "car_makers.maker_id", + "car_makers.id" + ] + ] + }, + { + "question": "which #distinctive models# are produced by #maker# with the full name general motors or weighing more than 3500?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model", + "model_name", + "vehicle_name" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "distinctive models", + "model_list.model" + ], + [ + "distinctive models", + "model_list.model_name" + ], + [ + "distinctive models", + "model_list.vehicle_name" + ], + [ + "maker", + "car_makers.fullname" + ] + ], + "linking_list_idx": [ + [ + 0, + "model_list.model" + ], + [ + 0, + "model_list.model_name" + ], + [ + 0, + "model_list.vehicle_name" + ], + [ + 1, + "car_makers.fullname" + ] + ], + "linking_list_col": [ + [ + "model_list.model_name", + "model_list.vehicle_name" + ], + [ + "model_list.model", + "model_list.vehicle_name" + ], + [ + "model_list.model_name", + "model_list.model" + ] + ] + }, + { + "question": "what are the #different models# created by either the #car maker# general motors or weighed more than 3500?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model", + "model_name", + "vehicle_name" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "different models", + "model_list.model" + ], + [ + "different models", + "model_list.model_name" + ], + [ + "different models", + "model_list.vehicle_name" + ], + [ + "car maker", + "car_makers.fullname" + ] + ], + "linking_list_idx": [ + [ + 0, + "model_list.model" + ], + [ + 0, + "model_list.model_name" + ], + [ + 0, + "model_list.vehicle_name" + ], + [ + 1, + "car_makers.fullname" + ] + ], + "linking_list_col": [ + [ + "model_list.model_name", + "model_list.vehicle_name" + ], + [ + "model_list.model", + "model_list.vehicle_name" + ], + [ + "model_list.model_name", + "model_list.model" + ] + ] + }, + { + "question": "what is the #horsepower# of the car with the largest accelerate?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year", + "power", + "torque" + ] + }, + "linking_list": [ + [ + "horsepower", + "cars_data.horsepower" + ], + [ + "horsepower", + "cars_data.power" + ], + [ + "horsepower", + "cars_data.torque" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.horsepower" + ], + [ + 0, + "cars_data.power" + ], + [ + 0, + "cars_data.torque" + ] + ], + "linking_list_col": [ + [ + "cars_data.power", + "cars_data.torque" + ], + [ + "cars_data.horsepower", + "cars_data.torque" + ], + [ + "cars_data.power", + "cars_data.horsepower" + ] + ] + }, + { + "question": "what is the #horsepower# of the car with the greatest accelerate?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year", + "power", + "torque" + ] + }, + "linking_list": [ + [ + "horsepower", + "cars_data.horsepower" + ], + [ + "horsepower", + "cars_data.power" + ], + [ + "horsepower", + "cars_data.torque" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.horsepower" + ], + [ + 0, + "cars_data.power" + ], + [ + 0, + "cars_data.torque" + ] + ], + "linking_list_col": [ + [ + "cars_data.power", + "cars_data.torque" + ], + [ + "cars_data.horsepower", + "cars_data.torque" + ], + [ + "cars_data.power", + "cars_data.horsepower" + ] + ] + }, + { + "question": "for #model# volvo, how many #cylinders# does the car with the least accelerate have?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year", + "engine_cylinders", + "pistons" + ] + }, + "linking_list": [ + [ + "model", + "car_names.model" + ], + [ + "cylinders", + "cars_data.cylinders" + ], + [ + "cylinders", + "cars_data.engine_cylinders" + ], + [ + "cylinders", + "cars_data.pistons" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_names.model" + ], + [ + 1, + "cars_data.cylinders" + ], + [ + 1, + "cars_data.engine_cylinders" + ], + [ + 1, + "cars_data.pistons" + ] + ], + "linking_list_col": [ + [ + "cars_data.engine_cylinders", + "cars_data.pistons" + ], + [ + "cars_data.cylinders", + "cars_data.pistons" + ], + [ + "cars_data.engine_cylinders", + "cars_data.cylinders" + ] + ] + }, + { + "question": "for a #volvo model# , how many #cylinders# does the version with least accelerate have?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year", + "engine_cylinders", + "pistons" + ] + }, + "linking_list": [ + [ + "volvo model", + "car_names.model" + ], + [ + "cylinders", + "cars_data.cylinders" + ], + [ + "cylinders", + "cars_data.engine_cylinders" + ], + [ + "cylinders", + "cars_data.pistons" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_names.model" + ], + [ + 1, + "cars_data.cylinders" + ], + [ + 1, + "cars_data.engine_cylinders" + ], + [ + 1, + "cars_data.pistons" + ] + ], + "linking_list_col": [ + [ + "cars_data.engine_cylinders", + "cars_data.pistons" + ], + [ + "cars_data.cylinders", + "cars_data.pistons" + ], + [ + "cars_data.engine_cylinders", + "cars_data.cylinders" + ] + ] + }, + { + "question": "for the cars with 4 #cylinders# , which #model# has the largest horsepower?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make", + "vehicle_model", + "designation" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "cylinders", + "cars_data.cylinders" + ], + [ + "model", + "car_names.model" + ], + [ + "model", + "car_names.vehicle_model" + ], + [ + "model", + "car_names.designation" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.cylinders" + ], + [ + 1, + "car_names.model" + ], + [ + 1, + "car_names.vehicle_model" + ], + [ + 1, + "car_names.designation" + ] + ], + "linking_list_col": [ + [ + "car_names.vehicle_model", + "car_names.designation" + ], + [ + "car_names.model", + "car_names.designation" + ], + [ + "car_names.vehicle_model", + "car_names.model" + ] + ] + }, + { + "question": "for all of the 4 cylinder cars, which #model# has the most horsepower?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make", + "vehicle_model", + "designation" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "model", + "car_names.model" + ], + [ + "model", + "car_names.vehicle_model" + ], + [ + "model", + "car_names.designation" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_names.model" + ], + [ + 0, + "car_names.vehicle_model" + ], + [ + 0, + "car_names.designation" + ] + ], + "linking_list_col": [ + [ + "car_names.vehicle_model", + "car_names.designation" + ], + [ + "car_names.model", + "car_names.designation" + ], + [ + "car_names.vehicle_model", + "car_names.model" + ] + ] + }, + { + "question": "among the cars with more than lowest horsepower, which ones do not have more than 3 cylinders? list the #car makeid# and #make name# .", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make", + "manufacturer", + "brand" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "car makeid", + "car_names.makeid" + ], + [ + "make name", + "car_names.make" + ], + [ + "make name", + "car_names.manufacturer" + ], + [ + "make name", + "car_names.brand" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_names.makeid" + ], + [ + 1, + "car_names.make" + ], + [ + 1, + "car_names.manufacturer" + ], + [ + 1, + "car_names.brand" + ] + ], + "linking_list_col": [ + [ + "car_names.manufacturer", + "car_names.brand" + ], + [ + "car_names.make", + "car_names.brand" + ], + [ + "car_names.manufacturer", + "car_names.make" + ] + ] + }, + { + "question": "what are the #ids# and #makers# of all car makers that produce at least 2 models and make more than 3 cars?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country", + "maker_id", + "serial_id" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "ids", + "car_makers.id" + ], + [ + "ids", + "car_makers.maker_id" + ], + [ + "ids", + "car_makers.serial_id" + ], + [ + "makers", + "car_makers.maker" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_makers.id" + ], + [ + 0, + "car_makers.maker_id" + ], + [ + 0, + "car_makers.serial_id" + ], + [ + 1, + "car_makers.maker" + ] + ], + "linking_list_col": [ + [ + "car_makers.maker_id", + "car_makers.serial_id" + ], + [ + "car_makers.id", + "car_makers.serial_id" + ], + [ + "car_makers.maker_id", + "car_makers.id" + ] + ] + }, + { + "question": "which #country# does #airline# \"jetblue airways\" belong to?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country", + "nation", + "territory" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "country", + "airlines.country" + ], + [ + "country", + "airlines.nation" + ], + [ + "country", + "airlines.territory" + ], + [ + "Airline", + "airlines.airline" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.country" + ], + [ + 0, + "airlines.nation" + ], + [ + 0, + "airlines.territory" + ], + [ + 1, + "airlines.airline" + ] + ], + "linking_list_col": [ + [ + "airlines.nation", + "airlines.territory" + ], + [ + "airlines.country", + "airlines.territory" + ], + [ + "airlines.nation", + "airlines.country" + ] + ] + }, + { + "question": "what #country# is jetblue airways affiliated with?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country", + "nation", + "territory" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "country", + "airlines.country" + ], + [ + "country", + "airlines.nation" + ], + [ + "country", + "airlines.territory" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.country" + ], + [ + 0, + "airlines.nation" + ], + [ + 0, + "airlines.territory" + ] + ], + "linking_list_col": [ + [ + "airlines.nation", + "airlines.territory" + ], + [ + "airlines.country", + "airlines.territory" + ], + [ + "airlines.nation", + "airlines.country" + ] + ] + }, + { + "question": "what is the #abbreviation of airline# \"jetblue airways\"?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country", + "short_name", + "code" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "abbreviation of Airline", + "airlines.abbreviation" + ], + [ + "abbreviation of Airline", + "airlines.short_name" + ], + [ + "abbreviation of Airline", + "airlines.code" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.abbreviation" + ], + [ + 0, + "airlines.short_name" + ], + [ + 0, + "airlines.code" + ] + ], + "linking_list_col": [ + [ + "airlines.short_name", + "airlines.code" + ], + [ + "airlines.abbreviation", + "airlines.code" + ], + [ + "airlines.short_name", + "airlines.abbreviation" + ] + ] + }, + { + "question": "which #abbreviation# corresponds to jetblue airways?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country", + "short_name", + "code" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "abbreviation", + "airlines.abbreviation" + ], + [ + "abbreviation", + "airlines.short_name" + ], + [ + "abbreviation", + "airlines.code" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.abbreviation" + ], + [ + 0, + "airlines.short_name" + ], + [ + 0, + "airlines.code" + ] + ], + "linking_list_col": [ + [ + "airlines.short_name", + "airlines.code" + ], + [ + "airlines.abbreviation", + "airlines.code" + ], + [ + "airlines.short_name", + "airlines.abbreviation" + ] + ] + }, + { + "question": "list all #airline names# and their abbreviations in \"usa\".", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country", + "carrier", + "company" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airline names", + "airlines.airline" + ], + [ + "airline names", + "airlines.carrier" + ], + [ + "airline names", + "airlines.company" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 0, + "airlines.carrier" + ], + [ + 0, + "airlines.company" + ] + ], + "linking_list_col": [ + [ + "airlines.carrier", + "airlines.company" + ], + [ + "airlines.airline", + "airlines.company" + ], + [ + "airlines.carrier", + "airlines.airline" + ] + ] + }, + { + "question": "what are the #airline names# and #abbreviations# for airlines in the usa?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country", + "carrier", + "company" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airline names", + "airlines.airline" + ], + [ + "airline names", + "airlines.carrier" + ], + [ + "airline names", + "airlines.company" + ], + [ + "abbreviations", + "airlines.abbreviation" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 0, + "airlines.carrier" + ], + [ + 0, + "airlines.company" + ], + [ + 1, + "airlines.abbreviation" + ] + ], + "linking_list_col": [ + [ + "airlines.carrier", + "airlines.company" + ], + [ + "airlines.airline", + "airlines.company" + ], + [ + "airlines.carrier", + "airlines.airline" + ] + ] + }, + { + "question": "list the #airport code# and name in the #city# of anthony.", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev", + "iata_code", + "code_shortcut" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airport code", + "airports.airportcode" + ], + [ + "airport code", + "airports.iata_code" + ], + [ + "airport code", + "airports.code_shortcut" + ], + [ + "city", + "airports.city" + ] + ], + "linking_list_idx": [ + [ + 0, + "airports.airportcode" + ], + [ + 0, + "airports.iata_code" + ], + [ + 0, + "airports.code_shortcut" + ], + [ + 1, + "airports.city" + ] + ], + "linking_list_col": [ + [ + "airports.iata_code", + "airports.code_shortcut" + ], + [ + "airports.airportcode", + "airports.code_shortcut" + ], + [ + "airports.iata_code", + "airports.airportcode" + ] + ] + }, + { + "question": "give the #airport code# and #airport name# corresonding to the #city# anthony.", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev", + "iata_code", + "code_shortcut" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airport code", + "airports.airportcode" + ], + [ + "airport code", + "airports.iata_code" + ], + [ + "airport code", + "airports.code_shortcut" + ], + [ + "airport name", + "airports.airportname" + ], + [ + "city", + "airports.city" + ] + ], + "linking_list_idx": [ + [ + 0, + "airports.airportcode" + ], + [ + 0, + "airports.iata_code" + ], + [ + 0, + "airports.code_shortcut" + ], + [ + 1, + "airports.airportname" + ], + [ + 2, + "airports.city" + ] + ], + "linking_list_col": [ + [ + "airports.iata_code", + "airports.code_shortcut" + ], + [ + "airports.airportcode", + "airports.code_shortcut" + ], + [ + "airports.iata_code", + "airports.airportcode" + ] + ] + }, + { + "question": "which #airline# has #abbreviation# 'ual'?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country", + "carrier", + "company" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airline", + "airlines.airline" + ], + [ + "airline", + "airlines.carrier" + ], + [ + "airline", + "airlines.company" + ], + [ + "abbreviation", + "airlines.abbreviation" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 0, + "airlines.carrier" + ], + [ + 0, + "airlines.company" + ], + [ + 1, + "airlines.abbreviation" + ] + ], + "linking_list_col": [ + [ + "airlines.carrier", + "airlines.company" + ], + [ + "airlines.airline", + "airlines.company" + ], + [ + "airlines.carrier", + "airlines.airline" + ] + ] + }, + { + "question": "give the #airline with abbreviation# 'ual'.", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country", + "carrier", + "company" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airline with abbreviation", + "airlines.airline" + ], + [ + "airline with abbreviation", + "airlines.carrier" + ], + [ + "airline with abbreviation", + "airlines.company" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 0, + "airlines.carrier" + ], + [ + 0, + "airlines.company" + ] + ], + "linking_list_col": [ + [ + "airlines.carrier", + "airlines.company" + ], + [ + "airlines.airline", + "airlines.company" + ], + [ + "airlines.carrier", + "airlines.airline" + ] + ] + }, + { + "question": "which #city# and #country# is the alton airport at?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev", + "metropolis", + "urbanarea" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "city", + "airports.city" + ], + [ + "city", + "airports.metropolis" + ], + [ + "city", + "airports.urbanarea" + ], + [ + "country", + "airports.country" + ] + ], + "linking_list_idx": [ + [ + 0, + "airports.city" + ], + [ + 0, + "airports.metropolis" + ], + [ + 0, + "airports.urbanarea" + ], + [ + 1, + "airports.country" + ] + ], + "linking_list_col": [ + [ + "airports.metropolis", + "airports.urbanarea" + ], + [ + "airports.city", + "airports.urbanarea" + ], + [ + "airports.metropolis", + "airports.city" + ] + ] + }, + { + "question": "give the #city# and #country# for the alton airport.", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev", + "metropolis", + "urbanarea" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "city", + "airports.city" + ], + [ + "city", + "airports.metropolis" + ], + [ + "city", + "airports.urbanarea" + ], + [ + "country", + "airports.country" + ] + ], + "linking_list_idx": [ + [ + 0, + "airports.city" + ], + [ + 0, + "airports.metropolis" + ], + [ + 0, + "airports.urbanarea" + ], + [ + 1, + "airports.country" + ] + ], + "linking_list_col": [ + [ + "airports.metropolis", + "airports.urbanarea" + ], + [ + "airports.city", + "airports.urbanarea" + ], + [ + "airports.metropolis", + "airports.city" + ] + ] + }, + { + "question": "what is the #airport name# for airport 'ako'?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev", + "aerodrome_name", + "aviation_terminal" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airport name", + "airports.airportname" + ], + [ + "airport name", + "airports.aerodrome_name" + ], + [ + "airport name", + "airports.aviation_terminal" + ] + ], + "linking_list_idx": [ + [ + 0, + "airports.airportname" + ], + [ + 0, + "airports.aerodrome_name" + ], + [ + 0, + "airports.aviation_terminal" + ] + ], + "linking_list_col": [ + [ + "airports.aerodrome_name", + "airports.aviation_terminal" + ], + [ + "airports.airportname", + "airports.aviation_terminal" + ], + [ + "airports.aerodrome_name", + "airports.airportname" + ] + ] + }, + { + "question": "what are #airport names at city# 'aberdeen'?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev", + "aerodrome_name", + "aviation_terminal" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airport names at City", + "airports.airportname" + ], + [ + "airport names at City", + "airports.aerodrome_name" + ], + [ + "airport names at City", + "airports.aviation_terminal" + ] + ], + "linking_list_idx": [ + [ + 0, + "airports.airportname" + ], + [ + 0, + "airports.aerodrome_name" + ], + [ + 0, + "airports.aviation_terminal" + ] + ], + "linking_list_col": [ + [ + "airports.aerodrome_name", + "airports.aviation_terminal" + ], + [ + "airports.airportname", + "airports.aviation_terminal" + ], + [ + "airports.aerodrome_name", + "airports.airportname" + ] + ] + }, + { + "question": "which #city# has most number of arriving flights?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev", + "metropolis", + "urbanarea" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "city", + "airports.city" + ], + [ + "city", + "airports.metropolis" + ], + [ + "city", + "airports.urbanarea" + ] + ], + "linking_list_idx": [ + [ + 0, + "airports.city" + ], + [ + 0, + "airports.metropolis" + ], + [ + 0, + "airports.urbanarea" + ] + ], + "linking_list_col": [ + [ + "airports.metropolis", + "airports.urbanarea" + ], + [ + "airports.city", + "airports.urbanarea" + ], + [ + "airports.metropolis", + "airports.city" + ] + ] + }, + { + "question": "which #city# has the most frequent destination airport?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev", + "metropolis", + "urbanarea" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "city", + "airports.city" + ], + [ + "city", + "airports.metropolis" + ], + [ + "city", + "airports.urbanarea" + ] + ], + "linking_list_idx": [ + [ + 0, + "airports.city" + ], + [ + 0, + "airports.metropolis" + ], + [ + 0, + "airports.urbanarea" + ] + ], + "linking_list_col": [ + [ + "airports.metropolis", + "airports.urbanarea" + ], + [ + "airports.city", + "airports.urbanarea" + ], + [ + "airports.metropolis", + "airports.city" + ] + ] + }, + { + "question": "which #city# has most number of departing flights?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev", + "metropolis", + "urbanarea" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "city", + "airports.city" + ], + [ + "city", + "airports.metropolis" + ], + [ + "city", + "airports.urbanarea" + ] + ], + "linking_list_idx": [ + [ + 0, + "airports.city" + ], + [ + 0, + "airports.metropolis" + ], + [ + 0, + "airports.urbanarea" + ] + ], + "linking_list_col": [ + [ + "airports.metropolis", + "airports.urbanarea" + ], + [ + "airports.city", + "airports.urbanarea" + ], + [ + "airports.metropolis", + "airports.city" + ] + ] + }, + { + "question": "which #city# is the most frequent source airport?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev", + "metropolis", + "urbanarea" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "city", + "airports.city" + ], + [ + "city", + "airports.metropolis" + ], + [ + "city", + "airports.urbanarea" + ] + ], + "linking_list_idx": [ + [ + 0, + "airports.city" + ], + [ + 0, + "airports.metropolis" + ], + [ + 0, + "airports.urbanarea" + ] + ], + "linking_list_col": [ + [ + "airports.metropolis", + "airports.urbanarea" + ], + [ + "airports.city", + "airports.urbanarea" + ], + [ + "airports.metropolis", + "airports.city" + ] + ] + }, + { + "question": "what is the #airport code# of the airport with the most flights?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev", + "iata_code", + "code_shortcut" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airport code", + "airports.airportcode" + ], + [ + "airport code", + "airports.iata_code" + ], + [ + "airport code", + "airports.code_shortcut" + ] + ], + "linking_list_idx": [ + [ + 0, + "airports.airportcode" + ], + [ + 0, + "airports.iata_code" + ], + [ + 0, + "airports.code_shortcut" + ] + ], + "linking_list_col": [ + [ + "airports.iata_code", + "airports.code_shortcut" + ], + [ + "airports.airportcode", + "airports.code_shortcut" + ], + [ + "airports.iata_code", + "airports.airportcode" + ] + ] + }, + { + "question": "which #airline# has most number of flights?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country", + "carrier", + "company" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airline", + "airlines.airline" + ], + [ + "airline", + "airlines.carrier" + ], + [ + "airline", + "airlines.company" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 0, + "airlines.carrier" + ], + [ + 0, + "airlines.company" + ] + ], + "linking_list_col": [ + [ + "airlines.carrier", + "airlines.company" + ], + [ + "airlines.airline", + "airlines.company" + ], + [ + "airlines.carrier", + "airlines.airline" + ] + ] + }, + { + "question": "what #airline# serves the most flights?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country", + "carrier", + "company" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airline", + "airlines.airline" + ], + [ + "airline", + "airlines.carrier" + ], + [ + "airline", + "airlines.company" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 0, + "airlines.carrier" + ], + [ + 0, + "airlines.company" + ] + ], + "linking_list_col": [ + [ + "airlines.carrier", + "airlines.company" + ], + [ + "airlines.airline", + "airlines.company" + ], + [ + "airlines.carrier", + "airlines.airline" + ] + ] + }, + { + "question": "find the #abbreviation# and #country# of the airline that has fewest number of flights?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country", + "short_name", + "code" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "abbreviation", + "airlines.abbreviation" + ], + [ + "abbreviation", + "airlines.short_name" + ], + [ + "abbreviation", + "airlines.code" + ], + [ + "country", + "airlines.country" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.abbreviation" + ], + [ + 0, + "airlines.short_name" + ], + [ + 0, + "airlines.code" + ], + [ + 1, + "airlines.country" + ] + ], + "linking_list_col": [ + [ + "airlines.short_name", + "airlines.code" + ], + [ + "airlines.abbreviation", + "airlines.code" + ], + [ + "airlines.short_name", + "airlines.abbreviation" + ] + ] + }, + { + "question": "what is the #abbreviation# of the airilne has the fewest flights and what #country# is it in?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country", + "short_name", + "code" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "abbreviation", + "airlines.abbreviation" + ], + [ + "abbreviation", + "airlines.short_name" + ], + [ + "abbreviation", + "airlines.code" + ], + [ + "country", + "airlines.country" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.abbreviation" + ], + [ + 0, + "airlines.short_name" + ], + [ + 0, + "airlines.code" + ], + [ + 1, + "airlines.country" + ] + ], + "linking_list_col": [ + [ + "airlines.short_name", + "airlines.code" + ], + [ + "airlines.abbreviation", + "airlines.code" + ], + [ + "airlines.short_name", + "airlines.abbreviation" + ] + ] + }, + { + "question": "what are #airlines# that have some #flight departing from airport# 'ahd'?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country", + "carrier", + "company" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airlines", + "airlines.airline" + ], + [ + "airlines", + "airlines.carrier" + ], + [ + "airlines", + "airlines.company" + ], + [ + "flight departing from airport", + "flights.sourceairport" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 0, + "airlines.carrier" + ], + [ + 0, + "airlines.company" + ], + [ + 1, + "flights.sourceairport" + ] + ], + "linking_list_col": [ + [ + "airlines.carrier", + "airlines.company" + ], + [ + "airlines.airline", + "airlines.company" + ], + [ + "airlines.carrier", + "airlines.airline" + ] + ] + }, + { + "question": "what are #airlines# that have #flights arriving at airport# 'ahd'?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country", + "carrier", + "company" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airlines", + "airlines.airline" + ], + [ + "airlines", + "airlines.carrier" + ], + [ + "airlines", + "airlines.company" + ], + [ + "flights arriving at airport", + "flights.destairport" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 0, + "airlines.carrier" + ], + [ + 0, + "airlines.company" + ], + [ + 1, + "flights.destairport" + ] + ], + "linking_list_col": [ + [ + "airlines.carrier", + "airlines.company" + ], + [ + "airlines.airline", + "airlines.company" + ], + [ + "airlines.carrier", + "airlines.airline" + ] + ] + }, + { + "question": "find all #airlines# that have flights from both airports 'apg' and 'cvo'.", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country", + "carrier", + "company" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airlines", + "airlines.airline" + ], + [ + "airlines", + "airlines.carrier" + ], + [ + "airlines", + "airlines.company" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 0, + "airlines.carrier" + ], + [ + 0, + "airlines.company" + ] + ], + "linking_list_col": [ + [ + "airlines.carrier", + "airlines.company" + ], + [ + "airlines.airline", + "airlines.company" + ], + [ + "airlines.carrier", + "airlines.airline" + ] + ] + }, + { + "question": "which #airlines# have #departing flights# from both apg and cvo airports?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country", + "carrier", + "company" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airlines", + "airlines.airline" + ], + [ + "airlines", + "airlines.carrier" + ], + [ + "airlines", + "airlines.company" + ], + [ + "departing flights", + "flights.sourceairport" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 0, + "airlines.carrier" + ], + [ + 0, + "airlines.company" + ], + [ + 1, + "flights.sourceairport" + ] + ], + "linking_list_col": [ + [ + "airlines.carrier", + "airlines.company" + ], + [ + "airlines.airline", + "airlines.company" + ], + [ + "airlines.carrier", + "airlines.airline" + ] + ] + }, + { + "question": "find all #airlines# that have flights from airport 'cvo' but not from 'apg'.", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country", + "carrier", + "company" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airlines", + "airlines.airline" + ], + [ + "airlines", + "airlines.carrier" + ], + [ + "airlines", + "airlines.company" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 0, + "airlines.carrier" + ], + [ + 0, + "airlines.company" + ] + ], + "linking_list_col": [ + [ + "airlines.carrier", + "airlines.company" + ], + [ + "airlines.airline", + "airlines.company" + ], + [ + "airlines.carrier", + "airlines.airline" + ] + ] + }, + { + "question": "which #airlines# have #departures from cvo# but #not from apg# airports?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country", + "carrier", + "company" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airlines", + "airlines.airline" + ], + [ + "airlines", + "airlines.carrier" + ], + [ + "airlines", + "airlines.company" + ], + [ + "departures from CVO", + "flights.sourceairport" + ], + [ + "not from APG", + "flights.sourceairport" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 0, + "airlines.carrier" + ], + [ + 0, + "airlines.company" + ], + [ + 1, + "flights.sourceairport" + ], + [ + 2, + "flights.sourceairport" + ] + ], + "linking_list_col": [ + [ + "airlines.carrier", + "airlines.company" + ], + [ + "airlines.airline", + "airlines.company" + ], + [ + "airlines.carrier", + "airlines.airline" + ] + ] + }, + { + "question": "find all #airlines# that have at least 10 flights.", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country", + "carrier", + "company" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airlines", + "airlines.airline" + ], + [ + "airlines", + "airlines.carrier" + ], + [ + "airlines", + "airlines.company" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 0, + "airlines.carrier" + ], + [ + 0, + "airlines.company" + ] + ], + "linking_list_col": [ + [ + "airlines.carrier", + "airlines.company" + ], + [ + "airlines.airline", + "airlines.company" + ], + [ + "airlines.carrier", + "airlines.airline" + ] + ] + }, + { + "question": "which #airlines# have at least 10 flights?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country", + "carrier", + "company" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airlines", + "airlines.airline" + ], + [ + "airlines", + "airlines.carrier" + ], + [ + "airlines", + "airlines.company" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 0, + "airlines.carrier" + ], + [ + 0, + "airlines.company" + ] + ], + "linking_list_col": [ + [ + "airlines.carrier", + "airlines.company" + ], + [ + "airlines.airline", + "airlines.company" + ], + [ + "airlines.carrier", + "airlines.airline" + ] + ] + }, + { + "question": "find all #airlines# that have #fewer than 200 flights# .", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country", + "carrier", + "company" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airlines", + "airlines.airline" + ], + [ + "airlines", + "airlines.carrier" + ], + [ + "airlines", + "airlines.company" + ], + [ + "fewer than 200 flights", + "flights.flightno" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 0, + "airlines.carrier" + ], + [ + 0, + "airlines.company" + ], + [ + 1, + "flights.flightno" + ] + ], + "linking_list_col": [ + [ + "airlines.carrier", + "airlines.company" + ], + [ + "airlines.airline", + "airlines.company" + ], + [ + "airlines.carrier", + "airlines.airline" + ] + ] + }, + { + "question": "which #airlines# have less than 200 flights?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country", + "carrier", + "company" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airlines", + "airlines.airline" + ], + [ + "airlines", + "airlines.carrier" + ], + [ + "airlines", + "airlines.company" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 0, + "airlines.carrier" + ], + [ + 0, + "airlines.company" + ] + ], + "linking_list_col": [ + [ + "airlines.carrier", + "airlines.company" + ], + [ + "airlines.airline", + "airlines.company" + ], + [ + "airlines.carrier", + "airlines.airline" + ] + ] + }, + { + "question": "what are #flight numbers# of flights #departing from airport# \"apg\"?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport", + "flight_number", + "route_number" + ] + }, + "linking_list": [ + [ + "flight numbers", + "flights.flightno" + ], + [ + "flight numbers", + "flights.flight_number" + ], + [ + "flight numbers", + "flights.route_number" + ], + [ + "departing from Airport", + "flights.sourceairport" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.flightno" + ], + [ + 0, + "flights.flight_number" + ], + [ + 0, + "flights.route_number" + ], + [ + 1, + "flights.sourceairport" + ] + ], + "linking_list_col": [ + [ + "flights.flight_number", + "flights.route_number" + ], + [ + "flights.flightno", + "flights.route_number" + ], + [ + "flights.flight_number", + "flights.flightno" + ] + ] + }, + { + "question": "give the #flight numbers# of flights #leaving from# apg.", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport", + "flight_number", + "route_number" + ] + }, + "linking_list": [ + [ + "flight numbers", + "flights.flightno" + ], + [ + "flight numbers", + "flights.flight_number" + ], + [ + "flight numbers", + "flights.route_number" + ], + [ + "leaving from", + "flights.sourceairport" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.flightno" + ], + [ + 0, + "flights.flight_number" + ], + [ + 0, + "flights.route_number" + ], + [ + 1, + "flights.sourceairport" + ] + ], + "linking_list_col": [ + [ + "flights.flight_number", + "flights.route_number" + ], + [ + "flights.flightno", + "flights.route_number" + ], + [ + "flights.flight_number", + "flights.flightno" + ] + ] + }, + { + "question": "what are #flight numbers# of flights #arriving at airport# \"apg\"?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport", + "flight_number", + "route_number" + ] + }, + "linking_list": [ + [ + "flight numbers", + "flights.flightno" + ], + [ + "flight numbers", + "flights.flight_number" + ], + [ + "flight numbers", + "flights.route_number" + ], + [ + "arriving at Airport", + "flights.destairport" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.flightno" + ], + [ + 0, + "flights.flight_number" + ], + [ + 0, + "flights.route_number" + ], + [ + 1, + "flights.destairport" + ] + ], + "linking_list_col": [ + [ + "flights.flight_number", + "flights.route_number" + ], + [ + "flights.flightno", + "flights.route_number" + ], + [ + "flights.flight_number", + "flights.flightno" + ] + ] + }, + { + "question": "give the #flight numbers# of flights #landing at# apg.", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport", + "flight_number", + "route_number" + ] + }, + "linking_list": [ + [ + "flight numbers", + "flights.flightno" + ], + [ + "flight numbers", + "flights.flight_number" + ], + [ + "flight numbers", + "flights.route_number" + ], + [ + "landing at", + "flights.destairport" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.flightno" + ], + [ + 0, + "flights.flight_number" + ], + [ + 0, + "flights.route_number" + ], + [ + 1, + "flights.destairport" + ] + ], + "linking_list_col": [ + [ + "flights.flight_number", + "flights.route_number" + ], + [ + "flights.flightno", + "flights.route_number" + ], + [ + "flights.flight_number", + "flights.flightno" + ] + ] + }, + { + "question": "what are #flight numbers# of flights #departing from city# \"aberdeen \"?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport", + "flight_number", + "route_number" + ] + }, + "linking_list": [ + [ + "flight numbers", + "flights.flightno" + ], + [ + "flight numbers", + "flights.flight_number" + ], + [ + "flight numbers", + "flights.route_number" + ], + [ + "departing from city", + "airports.city" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.flightno" + ], + [ + 0, + "flights.flight_number" + ], + [ + 0, + "flights.route_number" + ], + [ + 1, + "airports.city" + ] + ], + "linking_list_col": [ + [ + "flights.flight_number", + "flights.route_number" + ], + [ + "flights.flightno", + "flights.route_number" + ], + [ + "flights.flight_number", + "flights.flightno" + ] + ] + }, + { + "question": "give the #flight numbers# of flights #leaving from# aberdeen.", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport", + "flight_number", + "route_number" + ] + }, + "linking_list": [ + [ + "flight numbers", + "flights.flightno" + ], + [ + "flight numbers", + "flights.flight_number" + ], + [ + "flight numbers", + "flights.route_number" + ], + [ + "leaving from", + "airports.city" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.flightno" + ], + [ + 0, + "flights.flight_number" + ], + [ + 0, + "flights.route_number" + ], + [ + 1, + "airports.city" + ] + ], + "linking_list_col": [ + [ + "flights.flight_number", + "flights.route_number" + ], + [ + "flights.flightno", + "flights.route_number" + ], + [ + "flights.flight_number", + "flights.flightno" + ] + ] + }, + { + "question": "what are #flight numbers# of flights #arriving at city# \"aberdeen\"?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport", + "flight_number", + "route_number" + ] + }, + "linking_list": [ + [ + "flight numbers", + "flights.flightno" + ], + [ + "flight numbers", + "flights.flight_number" + ], + [ + "flight numbers", + "flights.route_number" + ], + [ + "arriving at City", + "airports.city" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.flightno" + ], + [ + 0, + "flights.flight_number" + ], + [ + 0, + "flights.route_number" + ], + [ + 1, + "airports.city" + ] + ], + "linking_list_col": [ + [ + "flights.flight_number", + "flights.route_number" + ], + [ + "flights.flightno", + "flights.route_number" + ], + [ + "flights.flight_number", + "flights.flightno" + ] + ] + }, + { + "question": "give the #flight numbers# of flights arriving in #aberdeen# .", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport", + "flight_number", + "route_number" + ] + }, + "linking_list": [ + [ + "flight numbers", + "flights.flightno" + ], + [ + "flight numbers", + "flights.flight_number" + ], + [ + "flight numbers", + "flights.route_number" + ], + [ + "Aberdeen", + "airports.city" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.flightno" + ], + [ + 0, + "flights.flight_number" + ], + [ + 0, + "flights.route_number" + ], + [ + 1, + "airports.city" + ] + ], + "linking_list_col": [ + [ + "flights.flight_number", + "flights.route_number" + ], + [ + "flights.flightno", + "flights.route_number" + ], + [ + "flights.flight_number", + "flights.flightno" + ] + ] + }, + { + "question": "sort #employee names# by their #age# in ascending order.", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city", + "full_name", + "given_name" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "linking_list": [ + [ + "employee names", + "employee.name" + ], + [ + "employee names", + "employee.full_name" + ], + [ + "employee names", + "employee.given_name" + ], + [ + "age", + "employee.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "employee.name" + ], + [ + 0, + "employee.full_name" + ], + [ + 0, + "employee.given_name" + ], + [ + 1, + "employee.age" + ] + ], + "linking_list_col": [ + [ + "employee.full_name", + "employee.given_name" + ], + [ + "employee.name", + "employee.given_name" + ], + [ + "employee.full_name", + "employee.name" + ] + ] + }, + { + "question": "count the number of employees for each #city# .", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city", + "residence_city", + "home_town" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "linking_list": [ + [ + "city", + "employee.city" + ], + [ + "city", + "employee.residence_city" + ], + [ + "city", + "employee.home_town" + ] + ], + "linking_list_idx": [ + [ + 0, + "employee.city" + ], + [ + 0, + "employee.residence_city" + ], + [ + 0, + "employee.home_town" + ] + ], + "linking_list_col": [ + [ + "employee.residence_city", + "employee.home_town" + ], + [ + "employee.city", + "employee.home_town" + ], + [ + "employee.residence_city", + "employee.city" + ] + ] + }, + { + "question": "find the #manager name# and #district# of the shop whose number of products is the largest.", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name", + "region", + "territory" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "linking_list": [ + [ + "manager name", + "shop.manager_name" + ], + [ + "district", + "shop.district" + ], + [ + "district", + "shop.region" + ], + [ + "district", + "shop.territory" + ] + ], + "linking_list_idx": [ + [ + 0, + "shop.manager_name" + ], + [ + 1, + "shop.district" + ], + [ + 1, + "shop.region" + ], + [ + 1, + "shop.territory" + ] + ], + "linking_list_col": [ + [ + "shop.region", + "shop.territory" + ], + [ + "shop.district", + "shop.territory" + ], + [ + "shop.region", + "shop.district" + ] + ] + }, + { + "question": "what are the #manager name# and #district# of the shop that sells the largest number of products?", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name", + "region", + "territory" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "linking_list": [ + [ + "manager name", + "shop.manager_name" + ], + [ + "district", + "shop.district" + ], + [ + "district", + "shop.region" + ], + [ + "district", + "shop.territory" + ] + ], + "linking_list_idx": [ + [ + 0, + "shop.manager_name" + ], + [ + 1, + "shop.district" + ], + [ + 1, + "shop.region" + ], + [ + 1, + "shop.territory" + ] + ], + "linking_list_col": [ + [ + "shop.region", + "shop.territory" + ], + [ + "shop.district", + "shop.territory" + ], + [ + "shop.region", + "shop.district" + ] + ] + }, + { + "question": "find the minimum and #maximum number of products# of all stores.", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name", + "count_products", + "quantity_products" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "linking_list": [ + [ + "maximum number of products", + "shop.number_products" + ], + [ + "maximum number of products", + "shop.count_products" + ], + [ + "maximum number of products", + "shop.quantity_products" + ] + ], + "linking_list_idx": [ + [ + 0, + "shop.number_products" + ], + [ + 0, + "shop.count_products" + ], + [ + 0, + "shop.quantity_products" + ] + ], + "linking_list_col": [ + [ + "shop.count_products", + "shop.quantity_products" + ], + [ + "shop.number_products", + "shop.quantity_products" + ], + [ + "shop.count_products", + "shop.number_products" + ] + ] + }, + { + "question": "what are the minimum and #maximum number of products# across all the shops?", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name", + "count_products", + "quantity_products" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "linking_list": [ + [ + "maximum number of products", + "shop.number_products" + ], + [ + "maximum number of products", + "shop.count_products" + ], + [ + "maximum number of products", + "shop.quantity_products" + ] + ], + "linking_list_idx": [ + [ + 0, + "shop.number_products" + ], + [ + 0, + "shop.count_products" + ], + [ + 0, + "shop.quantity_products" + ] + ], + "linking_list_col": [ + [ + "shop.count_products", + "shop.quantity_products" + ], + [ + "shop.number_products", + "shop.quantity_products" + ], + [ + "shop.count_products", + "shop.number_products" + ] + ] + }, + { + "question": "return the #name# , #location# and #district# of all shops in descending order of number of products.", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name", + "address", + "place" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "linking_list": [ + [ + "name", + "shop.name" + ], + [ + "location", + "shop.location" + ], + [ + "location", + "shop.address" + ], + [ + "location", + "shop.place" + ], + [ + "district", + "shop.district" + ] + ], + "linking_list_idx": [ + [ + 0, + "shop.name" + ], + [ + 1, + "shop.location" + ], + [ + 1, + "shop.address" + ], + [ + 1, + "shop.place" + ], + [ + 2, + "shop.district" + ] + ], + "linking_list_col": [ + [ + "shop.address", + "shop.place" + ], + [ + "shop.location", + "shop.place" + ], + [ + "shop.address", + "shop.location" + ] + ] + }, + { + "question": "sort all the shops by number products in descending order, and return the #name# , #location# and #district# of each shop.", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name", + "address", + "place" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "linking_list": [ + [ + "name", + "shop.name" + ], + [ + "location", + "shop.location" + ], + [ + "location", + "shop.address" + ], + [ + "location", + "shop.place" + ], + [ + "district", + "shop.district" + ] + ], + "linking_list_idx": [ + [ + 0, + "shop.name" + ], + [ + 1, + "shop.location" + ], + [ + 1, + "shop.address" + ], + [ + 1, + "shop.place" + ], + [ + 2, + "shop.district" + ] + ], + "linking_list_col": [ + [ + "shop.address", + "shop.place" + ], + [ + "shop.location", + "shop.place" + ], + [ + "shop.address", + "shop.location" + ] + ] + }, + { + "question": "which shops' #number products# is above the average? give me the #shop names# .", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name", + "title", + "business_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "linking_list": [ + [ + "number products", + "shop.number_products" + ], + [ + "shop names", + "shop.name" + ], + [ + "shop names", + "shop.title" + ], + [ + "shop names", + "shop.business_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "shop.number_products" + ], + [ + 1, + "shop.name" + ], + [ + 1, + "shop.title" + ], + [ + 1, + "shop.business_name" + ] + ], + "linking_list_col": [ + [ + "shop.title", + "shop.business_name" + ], + [ + "shop.name", + "shop.business_name" + ], + [ + "shop.title", + "shop.name" + ] + ] + }, + { + "question": "which employee received the most awards in evaluations? give me the #employee name# .", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city", + "full_name", + "given_name" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "linking_list": [ + [ + "employee name", + "employee.name" + ], + [ + "employee name", + "employee.full_name" + ], + [ + "employee name", + "employee.given_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "employee.name" + ], + [ + 0, + "employee.full_name" + ], + [ + 0, + "employee.given_name" + ] + ], + "linking_list_col": [ + [ + "employee.full_name", + "employee.given_name" + ], + [ + "employee.name", + "employee.given_name" + ], + [ + "employee.full_name", + "employee.name" + ] + ] + }, + { + "question": "which employee received the biggest bonus? give me the #employee name# .", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city", + "full_name", + "given_name" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "linking_list": [ + [ + "employee name", + "employee.name" + ], + [ + "employee name", + "employee.full_name" + ], + [ + "employee name", + "employee.given_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "employee.name" + ], + [ + 0, + "employee.full_name" + ], + [ + 0, + "employee.given_name" + ] + ], + "linking_list_col": [ + [ + "employee.full_name", + "employee.given_name" + ], + [ + "employee.name", + "employee.given_name" + ], + [ + "employee.full_name", + "employee.name" + ] + ] + }, + { + "question": "which shop has the most employees? give me the #shop name# .", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name", + "title", + "business_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "linking_list": [ + [ + "shop name", + "shop.name" + ], + [ + "shop name", + "shop.title" + ], + [ + "shop name", + "shop.business_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "shop.name" + ], + [ + 0, + "shop.title" + ], + [ + 0, + "shop.business_name" + ] + ], + "linking_list_col": [ + [ + "shop.title", + "shop.business_name" + ], + [ + "shop.name", + "shop.business_name" + ], + [ + "shop.title", + "shop.name" + ] + ] + }, + { + "question": "find the #number of employees hired# in each shop; show the #shop name# as well.", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name", + "title", + "business_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "linking_list": [ + [ + "number of employees hired", + "hiring.employee_id" + ], + [ + "shop name", + "shop.name" + ], + [ + "shop name", + "shop.title" + ], + [ + "shop name", + "shop.business_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "hiring.employee_id" + ], + [ + 1, + "shop.name" + ], + [ + 1, + "shop.title" + ], + [ + 1, + "shop.business_name" + ] + ], + "linking_list_col": [ + [ + "shop.title", + "shop.business_name" + ], + [ + "shop.name", + "shop.business_name" + ], + [ + "shop.title", + "shop.name" + ] + ] + }, + { + "question": "what is #total bonus# given in all evaluations?", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus", + "incentive", + "reward" + ] + }, + "linking_list": [ + [ + "total bonus", + "evaluation.bonus" + ], + [ + "total bonus", + "evaluation.incentive" + ], + [ + "total bonus", + "evaluation.reward" + ] + ], + "linking_list_idx": [ + [ + 0, + "evaluation.bonus" + ], + [ + 0, + "evaluation.incentive" + ], + [ + 0, + "evaluation.reward" + ] + ], + "linking_list_col": [ + [ + "evaluation.incentive", + "evaluation.reward" + ], + [ + "evaluation.bonus", + "evaluation.reward" + ], + [ + "evaluation.incentive", + "evaluation.bonus" + ] + ] + }, + { + "question": "find the #total amount of bonus# given in all the evaluations.", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus", + "incentive", + "reward" + ] + }, + "linking_list": [ + [ + "total amount of bonus", + "evaluation.bonus" + ], + [ + "total amount of bonus", + "evaluation.incentive" + ], + [ + "total amount of bonus", + "evaluation.reward" + ] + ], + "linking_list_idx": [ + [ + 0, + "evaluation.bonus" + ], + [ + 0, + "evaluation.incentive" + ], + [ + 0, + "evaluation.reward" + ] + ], + "linking_list_col": [ + [ + "evaluation.incentive", + "evaluation.reward" + ], + [ + "evaluation.bonus", + "evaluation.reward" + ], + [ + "evaluation.incentive", + "evaluation.bonus" + ] + ] + }, + { + "question": "which #district# has both #stores with less than 3000 products# and stores with more than 10000 products?", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name", + "region", + "territory" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "linking_list": [ + [ + "district", + "shop.district" + ], + [ + "district", + "shop.region" + ], + [ + "district", + "shop.territory" + ], + [ + "stores with less than 3000 products", + "shop.number_products" + ] + ], + "linking_list_idx": [ + [ + 0, + "shop.district" + ], + [ + 0, + "shop.region" + ], + [ + 0, + "shop.territory" + ], + [ + 1, + "shop.number_products" + ] + ], + "linking_list_col": [ + [ + "shop.region", + "shop.territory" + ], + [ + "shop.district", + "shop.territory" + ], + [ + "shop.region", + "shop.district" + ] + ] + }, + { + "question": "how many #different store locations# are there?", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name", + "address", + "place" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "linking_list": [ + [ + "different store locations", + "shop.location" + ], + [ + "different store locations", + "shop.address" + ], + [ + "different store locations", + "shop.place" + ] + ], + "linking_list_idx": [ + [ + 0, + "shop.location" + ], + [ + 0, + "shop.address" + ], + [ + 0, + "shop.place" + ] + ], + "linking_list_col": [ + [ + "shop.address", + "shop.place" + ], + [ + "shop.location", + "shop.place" + ], + [ + "shop.address", + "shop.location" + ] + ] + }, + { + "question": "count the #number of distinct store locations# .", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name", + "address", + "place" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "linking_list": [ + [ + "number of distinct store locations", + "shop.location" + ], + [ + "number of distinct store locations", + "shop.address" + ], + [ + "number of distinct store locations", + "shop.place" + ] + ], + "linking_list_idx": [ + [ + 0, + "shop.location" + ], + [ + 0, + "shop.address" + ], + [ + 0, + "shop.place" + ] + ], + "linking_list_col": [ + [ + "shop.address", + "shop.place" + ], + [ + "shop.location", + "shop.place" + ], + [ + "shop.address", + "shop.location" + ] + ] + }, + { + "question": "what is the #document name# and #template id# for document with description with the letter 'w' in it?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details", + "file_name", + "record_name" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "document name", + "documents.document_name" + ], + [ + "document name", + "documents.file_name" + ], + [ + "document name", + "documents.record_name" + ], + [ + "template id", + "documents.template_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "documents.document_name" + ], + [ + 0, + "documents.file_name" + ], + [ + 0, + "documents.record_name" + ], + [ + 1, + "documents.template_id" + ] + ], + "linking_list_col": [ + [ + "documents.file_name", + "documents.record_name" + ], + [ + "documents.document_name", + "documents.record_name" + ], + [ + "documents.file_name", + "documents.document_name" + ] + ] + }, + { + "question": "what is the #document id# , #template id# and #description# for document named \"robbin cv\"?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details", + "pattern_id", + "form_id" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "document id", + "documents.document_id" + ], + [ + "template id", + "documents.template_id" + ], + [ + "template id", + "documents.pattern_id" + ], + [ + "template id", + "documents.form_id" + ], + [ + "description", + "documents.document_description" + ] + ], + "linking_list_idx": [ + [ + 0, + "documents.document_id" + ], + [ + 1, + "documents.template_id" + ], + [ + 1, + "documents.pattern_id" + ], + [ + 1, + "documents.form_id" + ], + [ + 2, + "documents.document_description" + ] + ], + "linking_list_col": [ + [ + "documents.pattern_id", + "documents.form_id" + ], + [ + "documents.template_id", + "documents.form_id" + ], + [ + "documents.pattern_id", + "documents.template_id" + ] + ] + }, + { + "question": "return the #document id# , #template id# , and #description# for the document with the name robbin cv.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details", + "pattern_id", + "form_id" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "document id", + "documents.document_id" + ], + [ + "template id", + "documents.template_id" + ], + [ + "template id", + "documents.pattern_id" + ], + [ + "template id", + "documents.form_id" + ], + [ + "description", + "documents.document_description" + ] + ], + "linking_list_idx": [ + [ + 0, + "documents.document_id" + ], + [ + 1, + "documents.template_id" + ], + [ + 1, + "documents.pattern_id" + ], + [ + 1, + "documents.form_id" + ], + [ + 2, + "documents.document_description" + ] + ], + "linking_list_col": [ + [ + "documents.pattern_id", + "documents.form_id" + ], + [ + "documents.template_id", + "documents.form_id" + ], + [ + "documents.pattern_id", + "documents.template_id" + ] + ] + }, + { + "question": "how many #different templates# do all document use?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details", + "pattern_id", + "form_id" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "different templates", + "documents.template_id" + ], + [ + "different templates", + "documents.pattern_id" + ], + [ + "different templates", + "documents.form_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "documents.template_id" + ], + [ + 0, + "documents.pattern_id" + ], + [ + 0, + "documents.form_id" + ] + ], + "linking_list_col": [ + [ + "documents.pattern_id", + "documents.form_id" + ], + [ + "documents.template_id", + "documents.form_id" + ], + [ + "documents.pattern_id", + "documents.template_id" + ] + ] + }, + { + "question": "count the #number of different templates# used for documents.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details", + "pattern_id", + "form_id" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "number of different templates", + "documents.template_id" + ], + [ + "number of different templates", + "documents.pattern_id" + ], + [ + "number of different templates", + "documents.form_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "documents.template_id" + ], + [ + 0, + "documents.pattern_id" + ], + [ + 0, + "documents.form_id" + ] + ], + "linking_list_col": [ + [ + "documents.pattern_id", + "documents.form_id" + ], + [ + "documents.template_id", + "documents.form_id" + ], + [ + "documents.pattern_id", + "documents.template_id" + ] + ] + }, + { + "question": "what is the #version number# and #template type code# for the template with version number later than 5?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details", + "form_type_code", + "document_type_code" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "version number", + "templates.version_number" + ], + [ + "template type code", + "templates.template_type_code" + ], + [ + "template type code", + "templates.form_type_code" + ], + [ + "template type code", + "templates.document_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.version_number" + ], + [ + 1, + "templates.template_type_code" + ], + [ + 1, + "templates.form_type_code" + ], + [ + 1, + "templates.document_type_code" + ] + ], + "linking_list_col": [ + [ + "templates.form_type_code", + "templates.document_type_code" + ], + [ + "templates.template_type_code", + "templates.document_type_code" + ], + [ + "templates.form_type_code", + "templates.template_type_code" + ] + ] + }, + { + "question": "which #template type code# has most number of templates?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details", + "form_type_code", + "document_type_code" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "template type code", + "templates.template_type_code" + ], + [ + "template type code", + "templates.form_type_code" + ], + [ + "template type code", + "templates.document_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.template_type_code" + ], + [ + 0, + "templates.form_type_code" + ], + [ + 0, + "templates.document_type_code" + ] + ], + "linking_list_col": [ + [ + "templates.form_type_code", + "templates.document_type_code" + ], + [ + "templates.template_type_code", + "templates.document_type_code" + ], + [ + "templates.form_type_code", + "templates.template_type_code" + ] + ] + }, + { + "question": "return the #lowest version number# , along with its corresponding #template type code# .", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details", + "form_type_code", + "document_type_code" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "lowest version number", + "templates.version_number" + ], + [ + "template type code", + "templates.template_type_code" + ], + [ + "template type code", + "templates.form_type_code" + ], + [ + "template type code", + "templates.document_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.version_number" + ], + [ + 1, + "templates.template_type_code" + ], + [ + 1, + "templates.form_type_code" + ], + [ + 1, + "templates.document_type_code" + ] + ], + "linking_list_col": [ + [ + "templates.form_type_code", + "templates.document_type_code" + ], + [ + "templates.template_type_code", + "templates.document_type_code" + ], + [ + "templates.form_type_code", + "templates.template_type_code" + ] + ] + }, + { + "question": "what is the #template type code# of the template used by document with the name \"data base\"?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details", + "form_type_code", + "document_type_code" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "template type code", + "templates.template_type_code" + ], + [ + "template type code", + "templates.form_type_code" + ], + [ + "template type code", + "templates.document_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.template_type_code" + ], + [ + 0, + "templates.form_type_code" + ], + [ + 0, + "templates.document_type_code" + ] + ], + "linking_list_col": [ + [ + "templates.form_type_code", + "templates.document_type_code" + ], + [ + "templates.template_type_code", + "templates.document_type_code" + ], + [ + "templates.form_type_code", + "templates.template_type_code" + ] + ] + }, + { + "question": "return the #template type code# of the template that is used by a document named data base.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details", + "form_type_code", + "document_type_code" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "template type code", + "templates.template_type_code" + ], + [ + "template type code", + "templates.form_type_code" + ], + [ + "template type code", + "templates.document_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.template_type_code" + ], + [ + 0, + "templates.form_type_code" + ], + [ + 0, + "templates.document_type_code" + ] + ], + "linking_list_col": [ + [ + "templates.form_type_code", + "templates.document_type_code" + ], + [ + "templates.template_type_code", + "templates.document_type_code" + ], + [ + "templates.form_type_code", + "templates.template_type_code" + ] + ] + }, + { + "question": "which #template type code# is used by most number of documents?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details", + "form_type_code", + "document_type_code" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "template type code", + "templates.template_type_code" + ], + [ + "template type code", + "templates.form_type_code" + ], + [ + "template type code", + "templates.document_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.template_type_code" + ], + [ + 0, + "templates.form_type_code" + ], + [ + 0, + "templates.document_type_code" + ] + ], + "linking_list_col": [ + [ + "templates.form_type_code", + "templates.document_type_code" + ], + [ + "templates.template_type_code", + "templates.document_type_code" + ], + [ + "templates.form_type_code", + "templates.template_type_code" + ] + ] + }, + { + "question": "return the #template type description# of the template type with the code ad.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description", + "type_description", + "description_text" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "template type description", + "ref_template_types.template_type_description" + ], + [ + "template type description", + "ref_template_types.type_description" + ], + [ + "template type description", + "ref_template_types.description_text" + ] + ], + "linking_list_idx": [ + [ + 0, + "ref_template_types.template_type_description" + ], + [ + 0, + "ref_template_types.type_description" + ], + [ + 0, + "ref_template_types.description_text" + ] + ], + "linking_list_col": [ + [ + "ref_template_types.type_description", + "ref_template_types.description_text" + ], + [ + "ref_template_types.template_type_description", + "ref_template_types.description_text" + ], + [ + "ref_template_types.type_description", + "ref_template_types.template_type_description" + ] + ] + }, + { + "question": "what is the #template type code for template type description# \"book\".", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description", + "type_id", + "code_name" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "template type code for template type description", + "ref_template_types.template_type_code" + ], + [ + "template type code for template type description", + "ref_template_types.type_id" + ], + [ + "template type code for template type description", + "ref_template_types.code_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "ref_template_types.template_type_code" + ], + [ + 0, + "ref_template_types.type_id" + ], + [ + 0, + "ref_template_types.code_name" + ] + ], + "linking_list_col": [ + [ + "ref_template_types.type_id", + "ref_template_types.code_name" + ], + [ + "ref_template_types.template_type_code", + "ref_template_types.code_name" + ], + [ + "ref_template_types.type_id", + "ref_template_types.template_type_code" + ] + ] + }, + { + "question": "what are the #template ids with template type description# \"presentation\".", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details", + "form_id", + "layout_id" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "template ids with template type description", + "templates.template_id" + ], + [ + "template ids with template type description", + "templates.form_id" + ], + [ + "template ids with template type description", + "templates.layout_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.template_id" + ], + [ + 0, + "templates.form_id" + ], + [ + 0, + "templates.layout_id" + ] + ], + "linking_list_col": [ + [ + "templates.form_id", + "templates.layout_id" + ], + [ + "templates.template_id", + "templates.layout_id" + ], + [ + "templates.form_id", + "templates.template_id" + ] + ] + }, + { + "question": "what is the #document id# with least number of paragraphs?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details", + "doc_id", + "file_id" + ] + }, + "linking_list": [ + [ + "document id", + "paragraphs.document_id" + ], + [ + "document id", + "paragraphs.doc_id" + ], + [ + "document id", + "paragraphs.file_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "paragraphs.document_id" + ], + [ + 0, + "paragraphs.doc_id" + ], + [ + 0, + "paragraphs.file_id" + ] + ], + "linking_list_col": [ + [ + "paragraphs.doc_id", + "paragraphs.file_id" + ], + [ + "paragraphs.document_id", + "paragraphs.file_id" + ], + [ + "paragraphs.doc_id", + "paragraphs.document_id" + ] + ] + }, + { + "question": "what is the #document id# with 1 to 2 paragraphs?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details", + "doc_id", + "file_id" + ] + }, + "linking_list": [ + [ + "document id", + "paragraphs.document_id" + ], + [ + "document id", + "paragraphs.doc_id" + ], + [ + "document id", + "paragraphs.file_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "paragraphs.document_id" + ], + [ + 0, + "paragraphs.doc_id" + ], + [ + 0, + "paragraphs.file_id" + ] + ], + "linking_list_col": [ + [ + "paragraphs.doc_id", + "paragraphs.file_id" + ], + [ + "paragraphs.document_id", + "paragraphs.file_id" + ], + [ + "paragraphs.doc_id", + "paragraphs.document_id" + ] + ] + }, + { + "question": "show the #document id with paragraph text# 'brazil' and 'ireland'.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details", + "doc_id", + "file_id" + ] + }, + "linking_list": [ + [ + "document id with paragraph text", + "paragraphs.document_id" + ], + [ + "document id with paragraph text", + "paragraphs.doc_id" + ], + [ + "document id with paragraph text", + "paragraphs.file_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "paragraphs.document_id" + ], + [ + 0, + "paragraphs.doc_id" + ], + [ + 0, + "paragraphs.file_id" + ] + ], + "linking_list_col": [ + [ + "paragraphs.doc_id", + "paragraphs.file_id" + ], + [ + "paragraphs.document_id", + "paragraphs.file_id" + ], + [ + "paragraphs.doc_id", + "paragraphs.document_id" + ] + ] + }, + { + "question": "what are the #age# and #hometown# of teachers?", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown", + "years_old", + "dob" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ] + }, + "linking_list": [ + [ + "age", + "teacher.age" + ], + [ + "age", + "teacher.years_old" + ], + [ + "age", + "teacher.dob" + ], + [ + "hometown", + "teacher.hometown" + ] + ], + "linking_list_idx": [ + [ + 0, + "teacher.age" + ], + [ + 0, + "teacher.years_old" + ], + [ + 0, + "teacher.dob" + ], + [ + 1, + "teacher.hometown" + ] + ], + "linking_list_col": [ + [ + "teacher.years_old", + "teacher.dob" + ], + [ + "teacher.age", + "teacher.dob" + ], + [ + "teacher.years_old", + "teacher.age" + ] + ] + }, + { + "question": "what is the #age# and #hometown# of every teacher?", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown", + "years_old", + "dob" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ] + }, + "linking_list": [ + [ + "age", + "teacher.age" + ], + [ + "age", + "teacher.years_old" + ], + [ + "age", + "teacher.dob" + ], + [ + "hometown", + "teacher.hometown" + ] + ], + "linking_list_idx": [ + [ + 0, + "teacher.age" + ], + [ + 0, + "teacher.years_old" + ], + [ + 0, + "teacher.dob" + ], + [ + 1, + "teacher.hometown" + ] + ], + "linking_list_col": [ + [ + "teacher.years_old", + "teacher.dob" + ], + [ + "teacher.age", + "teacher.dob" + ], + [ + "teacher.years_old", + "teacher.age" + ] + ] + }, + { + "question": "what is the #hometown of the youngest# teacher?", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown", + "birthplace", + "origin" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ] + }, + "linking_list": [ + [ + "hometown of the youngest", + "teacher.hometown" + ], + [ + "hometown of the youngest", + "teacher.birthplace" + ], + [ + "hometown of the youngest", + "teacher.origin" + ] + ], + "linking_list_idx": [ + [ + 0, + "teacher.hometown" + ], + [ + 0, + "teacher.birthplace" + ], + [ + 0, + "teacher.origin" + ] + ], + "linking_list_col": [ + [ + "teacher.birthplace", + "teacher.origin" + ], + [ + "teacher.hometown", + "teacher.origin" + ], + [ + "teacher.birthplace", + "teacher.hometown" + ] + ] + }, + { + "question": "show different #hometown# of teachers and the number of teachers from each hometown.", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown", + "birthplace", + "origin" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ] + }, + "linking_list": [ + [ + "hometown", + "teacher.hometown" + ], + [ + "hometown", + "teacher.birthplace" + ], + [ + "hometown", + "teacher.origin" + ] + ], + "linking_list_idx": [ + [ + 0, + "teacher.hometown" + ], + [ + 0, + "teacher.birthplace" + ], + [ + 0, + "teacher.origin" + ] + ], + "linking_list_col": [ + [ + "teacher.birthplace", + "teacher.origin" + ], + [ + "teacher.hometown", + "teacher.origin" + ], + [ + "teacher.birthplace", + "teacher.hometown" + ] + ] + }, + { + "question": "for each #hometown# , how many teachers are there?", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown", + "birthplace", + "origin" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ] + }, + "linking_list": [ + [ + "hometown", + "teacher.hometown" + ], + [ + "hometown", + "teacher.birthplace" + ], + [ + "hometown", + "teacher.origin" + ] + ], + "linking_list_idx": [ + [ + 0, + "teacher.hometown" + ], + [ + 0, + "teacher.birthplace" + ], + [ + 0, + "teacher.origin" + ] + ], + "linking_list_col": [ + [ + "teacher.birthplace", + "teacher.origin" + ], + [ + "teacher.hometown", + "teacher.origin" + ], + [ + "teacher.birthplace", + "teacher.hometown" + ] + ] + }, + { + "question": "list the most common #hometown# of teachers.", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown", + "birthplace", + "origin" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ] + }, + "linking_list": [ + [ + "hometown", + "teacher.hometown" + ], + [ + "hometown", + "teacher.birthplace" + ], + [ + "hometown", + "teacher.origin" + ] + ], + "linking_list_idx": [ + [ + 0, + "teacher.hometown" + ], + [ + 0, + "teacher.birthplace" + ], + [ + 0, + "teacher.origin" + ] + ], + "linking_list_col": [ + [ + "teacher.birthplace", + "teacher.origin" + ], + [ + "teacher.hometown", + "teacher.origin" + ], + [ + "teacher.birthplace", + "teacher.hometown" + ] + ] + }, + { + "question": "show the #hometowns# shared by at least two teachers.", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown", + "birthplace", + "origin" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ] + }, + "linking_list": [ + [ + "hometowns", + "teacher.hometown" + ], + [ + "hometowns", + "teacher.birthplace" + ], + [ + "hometowns", + "teacher.origin" + ] + ], + "linking_list_idx": [ + [ + 0, + "teacher.hometown" + ], + [ + 0, + "teacher.birthplace" + ], + [ + 0, + "teacher.origin" + ] + ], + "linking_list_col": [ + [ + "teacher.birthplace", + "teacher.origin" + ], + [ + "teacher.hometown", + "teacher.origin" + ], + [ + "teacher.birthplace", + "teacher.hometown" + ] + ] + }, + { + "question": "what are the #towns# from which at least two teachers come from?", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown", + "birthplace", + "origin" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ] + }, + "linking_list": [ + [ + "towns", + "teacher.hometown" + ], + [ + "towns", + "teacher.birthplace" + ], + [ + "towns", + "teacher.origin" + ] + ], + "linking_list_idx": [ + [ + 0, + "teacher.hometown" + ], + [ + 0, + "teacher.birthplace" + ], + [ + 0, + "teacher.origin" + ] + ], + "linking_list_col": [ + [ + "teacher.birthplace", + "teacher.origin" + ], + [ + "teacher.hometown", + "teacher.origin" + ], + [ + "teacher.birthplace", + "teacher.hometown" + ] + ] + }, + { + "question": "what is the name of each teacher and what #course# they teach?", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course", + "topic", + "subject" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ] + }, + "linking_list": [ + [ + "course", + "course.course" + ], + [ + "course", + "course.topic" + ], + [ + "course", + "course.subject" + ] + ], + "linking_list_idx": [ + [ + 0, + "course.course" + ], + [ + 0, + "course.topic" + ], + [ + 0, + "course.subject" + ] + ], + "linking_list_col": [ + [ + "course.topic", + "course.subject" + ], + [ + "course.course", + "course.subject" + ], + [ + "course.topic", + "course.course" + ] + ] + }, + { + "question": "what is the #average age# of the visitors whose #membership level# is not higher than 4?", + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age", + "visitor_age", + "years_old" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ] + }, + "linking_list": [ + [ + "average age", + "visitor.age" + ], + [ + "average age", + "visitor.visitor_age" + ], + [ + "average age", + "visitor.years_old" + ], + [ + "membership level", + "visitor.level_of_membership" + ] + ], + "linking_list_idx": [ + [ + 0, + "visitor.age" + ], + [ + 0, + "visitor.visitor_age" + ], + [ + 0, + "visitor.years_old" + ], + [ + 1, + "visitor.level_of_membership" + ] + ], + "linking_list_col": [ + [ + "visitor.visitor_age", + "visitor.years_old" + ], + [ + "visitor.age", + "visitor.years_old" + ], + [ + "visitor.visitor_age", + "visitor.age" + ] + ] + }, + { + "question": "find the #name# and #membership level# of the visitors whose membership level is higher than 4, and sort by their #age# from old to young.", + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age", + "membership_level", + "subscription_level" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ] + }, + "linking_list": [ + [ + "name", + "visitor.name" + ], + [ + "membership level", + "visitor.level_of_membership" + ], + [ + "membership level", + "visitor.membership_level" + ], + [ + "membership level", + "visitor.subscription_level" + ], + [ + "age", + "visitor.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "visitor.name" + ], + [ + 1, + "visitor.level_of_membership" + ], + [ + 1, + "visitor.membership_level" + ], + [ + 1, + "visitor.subscription_level" + ], + [ + 2, + "visitor.age" + ] + ], + "linking_list_col": [ + [ + "visitor.membership_level", + "visitor.subscription_level" + ], + [ + "visitor.level_of_membership", + "visitor.subscription_level" + ], + [ + "visitor.membership_level", + "visitor.level_of_membership" + ] + ] + }, + { + "question": "find the #average number of staff# working for the museums that were open before 2009.", + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year", + "employee_count", + "staff_size" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ] + }, + "linking_list": [ + [ + "average number of staff", + "museum.num_of_staff" + ], + [ + "average number of staff", + "museum.employee_count" + ], + [ + "average number of staff", + "museum.staff_size" + ] + ], + "linking_list_idx": [ + [ + 0, + "museum.num_of_staff" + ], + [ + 0, + "museum.employee_count" + ], + [ + 0, + "museum.staff_size" + ] + ], + "linking_list_col": [ + [ + "museum.employee_count", + "museum.staff_size" + ], + [ + "museum.num_of_staff", + "museum.staff_size" + ], + [ + "museum.employee_count", + "museum.num_of_staff" + ] + ] + }, + { + "question": "what are the #opening year# and #staff number# of the museum named plaza museum?", + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year", + "employee_count", + "staff_size" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ] + }, + "linking_list": [ + [ + "opening year", + "museum.open_year" + ], + [ + "staff number", + "museum.num_of_staff" + ], + [ + "staff number", + "museum.employee_count" + ], + [ + "staff number", + "museum.staff_size" + ] + ], + "linking_list_idx": [ + [ + 0, + "museum.open_year" + ], + [ + 1, + "museum.num_of_staff" + ], + [ + 1, + "museum.employee_count" + ], + [ + 1, + "museum.staff_size" + ] + ], + "linking_list_col": [ + [ + "museum.employee_count", + "museum.staff_size" + ], + [ + "museum.num_of_staff", + "museum.staff_size" + ], + [ + "museum.employee_count", + "museum.num_of_staff" + ] + ] + }, + { + "question": "find the #id# , #name# and #age# for visitors who visited some museums more than once.", + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age", + "visitor_name", + "full_name" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ] + }, + "linking_list": [ + [ + "id", + "visitor.id" + ], + [ + "name", + "visitor.name" + ], + [ + "name", + "visitor.visitor_name" + ], + [ + "name", + "visitor.full_name" + ], + [ + "age", + "visitor.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "visitor.id" + ], + [ + 1, + "visitor.name" + ], + [ + 1, + "visitor.visitor_name" + ], + [ + 1, + "visitor.full_name" + ], + [ + 2, + "visitor.age" + ] + ], + "linking_list_col": [ + [ + "visitor.visitor_name", + "visitor.full_name" + ], + [ + "visitor.name", + "visitor.full_name" + ], + [ + "visitor.visitor_name", + "visitor.name" + ] + ] + }, + { + "question": "what are the id, #name# and #membership level# of visitors who have spent the largest amount of money in total in all museum tickets?", + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age", + "visitor_name", + "full_name" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ] + }, + "linking_list": [ + [ + "name", + "visitor.name" + ], + [ + "name", + "visitor.visitor_name" + ], + [ + "name", + "visitor.full_name" + ], + [ + "membership level", + "visitor.level_of_membership" + ] + ], + "linking_list_idx": [ + [ + 0, + "visitor.name" + ], + [ + 0, + "visitor.visitor_name" + ], + [ + 0, + "visitor.full_name" + ], + [ + 1, + "visitor.level_of_membership" + ] + ], + "linking_list_col": [ + [ + "visitor.visitor_name", + "visitor.full_name" + ], + [ + "visitor.name", + "visitor.full_name" + ], + [ + "visitor.visitor_name", + "visitor.name" + ] + ] + }, + { + "question": "what are the average and #maximum number of tickets# bought in all visits?", + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent", + "ticket_count", + "admission_count" + ] + }, + "linking_list": [ + [ + "maximum number of tickets", + "visit.num_of_ticket" + ], + [ + "maximum number of tickets", + "visit.ticket_count" + ], + [ + "maximum number of tickets", + "visit.admission_count" + ] + ], + "linking_list_idx": [ + [ + 0, + "visit.num_of_ticket" + ], + [ + 0, + "visit.ticket_count" + ], + [ + 0, + "visit.admission_count" + ] + ], + "linking_list_col": [ + [ + "visit.ticket_count", + "visit.admission_count" + ], + [ + "visit.num_of_ticket", + "visit.admission_count" + ], + [ + "visit.ticket_count", + "visit.num_of_ticket" + ] + ] + }, + { + "question": "what is the #total ticket expense# of the visitors whose #membership level# is 1?", + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent", + "expenditure_total", + "total_paid" + ] + }, + "linking_list": [ + [ + "total ticket expense", + "visit.total_spent" + ], + [ + "total ticket expense", + "visit.expenditure_total" + ], + [ + "total ticket expense", + "visit.total_paid" + ], + [ + "membership level", + "visitor.level_of_membership" + ] + ], + "linking_list_idx": [ + [ + 0, + "visit.total_spent" + ], + [ + 0, + "visit.expenditure_total" + ], + [ + 0, + "visit.total_paid" + ], + [ + 1, + "visitor.level_of_membership" + ] + ], + "linking_list_col": [ + [ + "visit.expenditure_total", + "visit.total_paid" + ], + [ + "visit.total_spent", + "visit.total_paid" + ], + [ + "visit.expenditure_total", + "visit.total_spent" + ] + ] + }, + { + "question": "list the #first name# and #birth date# of all players from the country with code usa.", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code", + "dob", + "date_of_birth" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "first name", + "players.first_name" + ], + [ + "birth date", + "players.birth_date" + ], + [ + "birth date", + "players.dob" + ], + [ + "birth date", + "players.date_of_birth" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.first_name" + ], + [ + 1, + "players.birth_date" + ], + [ + 1, + "players.dob" + ], + [ + 1, + "players.date_of_birth" + ] + ], + "linking_list_col": [ + [ + "players.dob", + "players.date_of_birth" + ], + [ + "players.birth_date", + "players.date_of_birth" + ], + [ + "players.dob", + "players.birth_date" + ] + ] + }, + { + "question": "find the #average age of losers# and winners of all matches.", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year", + "defeated_player_age", + "beaten_player_age" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "average age of losers", + "matches.loser_age" + ], + [ + "average age of losers", + "matches.defeated_player_age" + ], + [ + "average age of losers", + "matches.beaten_player_age" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.loser_age" + ], + [ + 0, + "matches.defeated_player_age" + ], + [ + 0, + "matches.beaten_player_age" + ] + ], + "linking_list_col": [ + [ + "matches.defeated_player_age", + "matches.beaten_player_age" + ], + [ + "matches.loser_age", + "matches.beaten_player_age" + ], + [ + "matches.defeated_player_age", + "matches.loser_age" + ] + ] + }, + { + "question": "find the #average rank# of winners in all matches.", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year", + "winning_player_ranking", + "victorious_player_ranking" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "average rank", + "matches.winner_rank" + ], + [ + "average rank", + "matches.winning_player_ranking" + ], + [ + "average rank", + "matches.victorious_player_ranking" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.winner_rank" + ], + [ + 0, + "matches.winning_player_ranking" + ], + [ + 0, + "matches.victorious_player_ranking" + ] + ], + "linking_list_col": [ + [ + "matches.winning_player_ranking", + "matches.victorious_player_ranking" + ], + [ + "matches.winner_rank", + "matches.victorious_player_ranking" + ], + [ + "matches.winning_player_ranking", + "matches.winner_rank" + ] + ] + }, + { + "question": "what is the #average rank# for winners in all matches?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year", + "winning_player_ranking", + "victorious_player_ranking" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "average rank", + "matches.winner_rank" + ], + [ + "average rank", + "matches.winning_player_ranking" + ], + [ + "average rank", + "matches.victorious_player_ranking" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.winner_rank" + ], + [ + 0, + "matches.winning_player_ranking" + ], + [ + 0, + "matches.victorious_player_ranking" + ] + ], + "linking_list_col": [ + [ + "matches.winning_player_ranking", + "matches.victorious_player_ranking" + ], + [ + "matches.winner_rank", + "matches.victorious_player_ranking" + ], + [ + "matches.winning_player_ranking", + "matches.winner_rank" + ] + ] + }, + { + "question": "find the #highest rank of losers# in all matches.", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year", + "defeated_player_ranking", + "beaten_player_ranking" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "highest rank of losers", + "matches.loser_rank" + ], + [ + "highest rank of losers", + "matches.defeated_player_ranking" + ], + [ + "highest rank of losers", + "matches.beaten_player_ranking" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.loser_rank" + ], + [ + 0, + "matches.defeated_player_ranking" + ], + [ + 0, + "matches.beaten_player_ranking" + ] + ], + "linking_list_col": [ + [ + "matches.defeated_player_ranking", + "matches.beaten_player_ranking" + ], + [ + "matches.loser_rank", + "matches.beaten_player_ranking" + ], + [ + "matches.defeated_player_ranking", + "matches.loser_rank" + ] + ] + }, + { + "question": "what is the #best rank of losers# across all matches?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year", + "defeated_player_ranking", + "beaten_player_ranking" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "best rank of losers", + "matches.loser_rank" + ], + [ + "best rank of losers", + "matches.defeated_player_ranking" + ], + [ + "best rank of losers", + "matches.beaten_player_ranking" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.loser_rank" + ], + [ + 0, + "matches.defeated_player_ranking" + ], + [ + 0, + "matches.beaten_player_ranking" + ] + ], + "linking_list_col": [ + [ + "matches.defeated_player_ranking", + "matches.beaten_player_ranking" + ], + [ + "matches.loser_rank", + "matches.beaten_player_ranking" + ], + [ + "matches.defeated_player_ranking", + "matches.loser_rank" + ] + ] + }, + { + "question": "find the #number of distinct country codes# of all players.", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code", + "nationality_code", + "country_id" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "number of distinct country codes", + "players.country_code" + ], + [ + "number of distinct country codes", + "players.nationality_code" + ], + [ + "number of distinct country codes", + "players.country_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.country_code" + ], + [ + 0, + "players.nationality_code" + ], + [ + 0, + "players.country_id" + ] + ], + "linking_list_col": [ + [ + "players.nationality_code", + "players.country_id" + ], + [ + "players.country_code", + "players.country_id" + ], + [ + "players.nationality_code", + "players.country_code" + ] + ] + }, + { + "question": "how many #distinct countries# do players come from?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code", + "nationality_code", + "country_id" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "distinct countries", + "players.country_code" + ], + [ + "distinct countries", + "players.nationality_code" + ], + [ + "distinct countries", + "players.country_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.country_code" + ], + [ + 0, + "players.nationality_code" + ], + [ + 0, + "players.country_id" + ] + ], + "linking_list_col": [ + [ + "players.nationality_code", + "players.country_id" + ], + [ + "players.country_code", + "players.country_id" + ], + [ + "players.nationality_code", + "players.country_code" + ] + ] + }, + { + "question": "find the #number of distinct name of losers# .", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year", + "defeated_player_name", + "beaten_player_name" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "number of distinct name of losers", + "matches.loser_name" + ], + [ + "number of distinct name of losers", + "matches.defeated_player_name" + ], + [ + "number of distinct name of losers", + "matches.beaten_player_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.loser_name" + ], + [ + 0, + "matches.defeated_player_name" + ], + [ + 0, + "matches.beaten_player_name" + ] + ], + "linking_list_col": [ + [ + "matches.defeated_player_name", + "matches.beaten_player_name" + ], + [ + "matches.loser_name", + "matches.beaten_player_name" + ], + [ + "matches.defeated_player_name", + "matches.loser_name" + ] + ] + }, + { + "question": "what are the #country code# and #first name# of the players who won in both tourney wta championships and australian open?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code", + "nationality_code", + "country_id" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "country code", + "players.country_code" + ], + [ + "country code", + "players.nationality_code" + ], + [ + "country code", + "players.country_id" + ], + [ + "first name", + "players.first_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.country_code" + ], + [ + 0, + "players.nationality_code" + ], + [ + 0, + "players.country_id" + ], + [ + 1, + "players.first_name" + ] + ], + "linking_list_col": [ + [ + "players.nationality_code", + "players.country_id" + ], + [ + "players.country_code", + "players.country_id" + ], + [ + "players.nationality_code", + "players.country_code" + ] + ] + }, + { + "question": "find the #first name# and #country code# of the oldest player.", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code", + "nationality_code", + "country_id" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "first name", + "players.first_name" + ], + [ + "country code", + "players.country_code" + ], + [ + "country code", + "players.nationality_code" + ], + [ + "country code", + "players.country_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.first_name" + ], + [ + 1, + "players.country_code" + ], + [ + 1, + "players.nationality_code" + ], + [ + 1, + "players.country_id" + ] + ], + "linking_list_col": [ + [ + "players.nationality_code", + "players.country_id" + ], + [ + "players.country_code", + "players.country_id" + ], + [ + "players.nationality_code", + "players.country_code" + ] + ] + }, + { + "question": "what is the #first name# and #country code# of the oldest player?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code", + "nationality_code", + "country_id" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "first name", + "players.first_name" + ], + [ + "country code", + "players.country_code" + ], + [ + "country code", + "players.nationality_code" + ], + [ + "country code", + "players.country_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.first_name" + ], + [ + 1, + "players.country_code" + ], + [ + 1, + "players.nationality_code" + ], + [ + 1, + "players.country_id" + ] + ], + "linking_list_col": [ + [ + "players.nationality_code", + "players.country_id" + ], + [ + "players.country_code", + "players.country_id" + ], + [ + "players.nationality_code", + "players.country_code" + ] + ] + }, + { + "question": "find the #first name# and #country code# of the player who did the #most number of tours# .", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code", + "nationality_code", + "country_id" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "first name", + "players.first_name" + ], + [ + "country code", + "players.country_code" + ], + [ + "country code", + "players.nationality_code" + ], + [ + "country code", + "players.country_id" + ], + [ + "most number of tours", + "rankings.tours" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.first_name" + ], + [ + 1, + "players.country_code" + ], + [ + 1, + "players.nationality_code" + ], + [ + 1, + "players.country_id" + ], + [ + 2, + "rankings.tours" + ] + ], + "linking_list_col": [ + [ + "players.nationality_code", + "players.country_id" + ], + [ + "players.country_code", + "players.country_id" + ], + [ + "players.nationality_code", + "players.country_code" + ] + ] + }, + { + "question": "what is the #first name# and #country code# of the player with the most tours?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code", + "nationality_code", + "country_id" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "first name", + "players.first_name" + ], + [ + "country code", + "players.country_code" + ], + [ + "country code", + "players.nationality_code" + ], + [ + "country code", + "players.country_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.first_name" + ], + [ + 1, + "players.country_code" + ], + [ + 1, + "players.nationality_code" + ], + [ + 1, + "players.country_id" + ] + ], + "linking_list_col": [ + [ + "players.nationality_code", + "players.country_id" + ], + [ + "players.country_code", + "players.country_id" + ], + [ + "players.nationality_code", + "players.country_code" + ] + ] + }, + { + "question": "find the #year# that has the most number of matches.", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year", + "match_year", + "event_year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "year", + "matches.year" + ], + [ + "year", + "matches.match_year" + ], + [ + "year", + "matches.event_year" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.year" + ], + [ + 0, + "matches.match_year" + ], + [ + 0, + "matches.event_year" + ] + ], + "linking_list_col": [ + [ + "matches.match_year", + "matches.event_year" + ], + [ + "matches.year", + "matches.event_year" + ], + [ + "matches.match_year", + "matches.year" + ] + ] + }, + { + "question": "which #year# had the most matches?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year", + "match_year", + "event_year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "year", + "matches.year" + ], + [ + "year", + "matches.match_year" + ], + [ + "year", + "matches.event_year" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.year" + ], + [ + 0, + "matches.match_year" + ], + [ + 0, + "matches.event_year" + ] + ], + "linking_list_col": [ + [ + "matches.match_year", + "matches.event_year" + ], + [ + "matches.year", + "matches.event_year" + ], + [ + "matches.match_year", + "matches.year" + ] + ] + }, + { + "question": "find the #average ranking# for each player and their #first name# .", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code", + "given_name", + "forename" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "average ranking", + "rankings.ranking" + ], + [ + "first name", + "players.first_name" + ], + [ + "first name", + "players.given_name" + ], + [ + "first name", + "players.forename" + ] + ], + "linking_list_idx": [ + [ + 0, + "rankings.ranking" + ], + [ + 1, + "players.first_name" + ], + [ + 1, + "players.given_name" + ], + [ + 1, + "players.forename" + ] + ], + "linking_list_col": [ + [ + "players.given_name", + "players.forename" + ], + [ + "players.first_name", + "players.forename" + ], + [ + "players.given_name", + "players.first_name" + ] + ] + }, + { + "question": "find the #total ranking points# for each player and their #first name# .", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code", + "given_name", + "forename" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "total ranking points", + "rankings.ranking_points" + ], + [ + "first name", + "players.first_name" + ], + [ + "first name", + "players.given_name" + ], + [ + "first name", + "players.forename" + ] + ], + "linking_list_idx": [ + [ + 0, + "rankings.ranking_points" + ], + [ + 1, + "players.first_name" + ], + [ + 1, + "players.given_name" + ], + [ + 1, + "players.forename" + ] + ], + "linking_list_col": [ + [ + "players.given_name", + "players.forename" + ], + [ + "players.first_name", + "players.forename" + ], + [ + "players.given_name", + "players.first_name" + ] + ] + }, + { + "question": "find the #total number of tours for each ranking date# .", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours", + "tournaments", + "events" + ] + }, + "linking_list": [ + [ + "total number of tours for each ranking date", + "rankings.tours" + ], + [ + "total number of tours for each ranking date", + "rankings.tournaments" + ], + [ + "total number of tours for each ranking date", + "rankings.events" + ] + ], + "linking_list_idx": [ + [ + 0, + "rankings.tours" + ], + [ + 0, + "rankings.tournaments" + ], + [ + 0, + "rankings.events" + ] + ], + "linking_list_col": [ + [ + "rankings.tournaments", + "rankings.events" + ], + [ + "rankings.tours", + "rankings.events" + ], + [ + "rankings.tournaments", + "rankings.tours" + ] + ] + }, + { + "question": "how many #total tours# were there for each ranking date?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours", + "tournaments", + "events" + ] + }, + "linking_list": [ + [ + "total tours", + "rankings.tours" + ], + [ + "total tours", + "rankings.tournaments" + ], + [ + "total tours", + "rankings.events" + ] + ], + "linking_list_idx": [ + [ + 0, + "rankings.tours" + ], + [ + 0, + "rankings.tournaments" + ], + [ + 0, + "rankings.events" + ] + ], + "linking_list_col": [ + [ + "rankings.tournaments", + "rankings.events" + ], + [ + "rankings.tours", + "rankings.events" + ], + [ + "rankings.tournaments", + "rankings.tours" + ] + ] + }, + { + "question": "find the #number of matches# happened in each #year# .", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year", + "match_year", + "event_year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "number of matches", + "matches.match_num" + ], + [ + "year", + "matches.year" + ], + [ + "year", + "matches.match_year" + ], + [ + "year", + "matches.event_year" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.match_num" + ], + [ + 1, + "matches.year" + ], + [ + 1, + "matches.match_year" + ], + [ + 1, + "matches.event_year" + ] + ], + "linking_list_col": [ + [ + "matches.match_year", + "matches.event_year" + ], + [ + "matches.year", + "matches.event_year" + ], + [ + "matches.match_year", + "matches.year" + ] + ] + }, + { + "question": "find the #first name# , #country code# and #birth date# of the winner who has the highest rank points in all matches.", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code", + "dob", + "date_of_birth" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "first name", + "players.first_name" + ], + [ + "country code", + "players.country_code" + ], + [ + "birth date", + "players.birth_date" + ], + [ + "birth date", + "players.dob" + ], + [ + "birth date", + "players.date_of_birth" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.first_name" + ], + [ + 1, + "players.country_code" + ], + [ + 2, + "players.birth_date" + ], + [ + 2, + "players.dob" + ], + [ + 2, + "players.date_of_birth" + ] + ], + "linking_list_col": [ + [ + "players.dob", + "players.date_of_birth" + ], + [ + "players.birth_date", + "players.date_of_birth" + ], + [ + "players.dob", + "players.birth_date" + ] + ] + }, + { + "question": "what is the #first name# , #country code# , and #birth date# of the player with the most winner rank points across all matches?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code", + "dob", + "date_of_birth" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "first name", + "players.first_name" + ], + [ + "country code", + "players.country_code" + ], + [ + "birth date", + "players.birth_date" + ], + [ + "birth date", + "players.dob" + ], + [ + "birth date", + "players.date_of_birth" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.first_name" + ], + [ + 1, + "players.country_code" + ], + [ + 2, + "players.birth_date" + ], + [ + 2, + "players.dob" + ], + [ + 2, + "players.date_of_birth" + ] + ], + "linking_list_col": [ + [ + "players.dob", + "players.date_of_birth" + ], + [ + "players.birth_date", + "players.date_of_birth" + ], + [ + "players.dob", + "players.birth_date" + ] + ] + }, + { + "question": "list the #name# and #tonnage# ordered by in descending alphaetical order for the names.", + "db_schema": { + "battle": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result" + ], + "ship": [ + "lost_in_battle", + "id", + "name", + "tonnage", + "ship_type", + "location", + "disposition_of_ship", + "ship_name", + "vessel_name" + ], + "death": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured" + ] + }, + "linking_list": [ + [ + "name", + "ship.name" + ], + [ + "name", + "ship.ship_name" + ], + [ + "name", + "ship.vessel_name" + ], + [ + "tonnage", + "ship.tonnage" + ] + ], + "linking_list_idx": [ + [ + 0, + "ship.name" + ], + [ + 0, + "ship.ship_name" + ], + [ + 0, + "ship.vessel_name" + ], + [ + 1, + "ship.tonnage" + ] + ], + "linking_list_col": [ + [ + "ship.ship_name", + "ship.vessel_name" + ], + [ + "ship.name", + "ship.vessel_name" + ], + [ + "ship.ship_name", + "ship.name" + ] + ] + }, + { + "question": "list the #name# , #date# and #result# of each battle.", + "db_schema": { + "battle": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result", + "battle_date", + "engagement_date" + ], + "ship": [ + "lost_in_battle", + "id", + "name", + "tonnage", + "ship_type", + "location", + "disposition_of_ship" + ], + "death": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured" + ] + }, + "linking_list": [ + [ + "name", + "battle.name" + ], + [ + "date", + "battle.date" + ], + [ + "date", + "battle.battle_date" + ], + [ + "date", + "battle.engagement_date" + ], + [ + "result", + "battle.result" + ] + ], + "linking_list_idx": [ + [ + 0, + "battle.name" + ], + [ + 1, + "battle.date" + ], + [ + 1, + "battle.battle_date" + ], + [ + 1, + "battle.engagement_date" + ], + [ + 2, + "battle.result" + ] + ], + "linking_list_col": [ + [ + "battle.battle_date", + "battle.engagement_date" + ], + [ + "battle.date", + "battle.engagement_date" + ], + [ + "battle.battle_date", + "battle.date" + ] + ] + }, + { + "question": "what is maximum and #minimum death toll# caused each time?", + "db_schema": { + "battle": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result" + ], + "ship": [ + "lost_in_battle", + "id", + "name", + "tonnage", + "ship_type", + "location", + "disposition_of_ship" + ], + "death": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured", + "deaths", + "fatalities" + ] + }, + "linking_list": [ + [ + "minimum death toll", + "death.killed" + ], + [ + "minimum death toll", + "death.deaths" + ], + [ + "minimum death toll", + "death.fatalities" + ] + ], + "linking_list_idx": [ + [ + 0, + "death.killed" + ], + [ + 0, + "death.deaths" + ], + [ + 0, + "death.fatalities" + ] + ], + "linking_list_col": [ + [ + "death.deaths", + "death.fatalities" + ], + [ + "death.killed", + "death.fatalities" + ], + [ + "death.deaths", + "death.killed" + ] + ] + }, + { + "question": "what is the #average number of injuries# caused each time?", + "db_schema": { + "battle": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result" + ], + "ship": [ + "lost_in_battle", + "id", + "name", + "tonnage", + "ship_type", + "location", + "disposition_of_ship" + ], + "death": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured", + "wounded", + "casualties" + ] + }, + "linking_list": [ + [ + "average number of injuries", + "death.injured" + ], + [ + "average number of injuries", + "death.wounded" + ], + [ + "average number of injuries", + "death.casualties" + ] + ], + "linking_list_idx": [ + [ + 0, + "death.injured" + ], + [ + 0, + "death.wounded" + ], + [ + 0, + "death.casualties" + ] + ], + "linking_list_col": [ + [ + "death.wounded", + "death.casualties" + ], + [ + "death.injured", + "death.casualties" + ], + [ + "death.wounded", + "death.injured" + ] + ] + }, + { + "question": "what is the #ship id# and #name# that caused most total injuries?", + "db_schema": { + "battle": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result" + ], + "ship": [ + "lost_in_battle", + "id", + "name", + "tonnage", + "ship_type", + "location", + "disposition_of_ship", + "ship_id", + "vessel_id" + ], + "death": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured" + ] + }, + "linking_list": [ + [ + "ship id", + "ship.id" + ], + [ + "ship id", + "ship.ship_id" + ], + [ + "ship id", + "ship.vessel_id" + ], + [ + "name", + "ship.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "ship.id" + ], + [ + 0, + "ship.ship_id" + ], + [ + 0, + "ship.vessel_id" + ], + [ + 1, + "ship.name" + ] + ], + "linking_list_col": [ + [ + "ship.ship_id", + "ship.vessel_id" + ], + [ + "ship.id", + "ship.vessel_id" + ], + [ + "ship.ship_id", + "ship.id" + ] + ] + }, + { + "question": "how many #different results# are there for the battles?", + "db_schema": { + "battle": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result", + "outcome", + "consequence" + ], + "ship": [ + "lost_in_battle", + "id", + "name", + "tonnage", + "ship_type", + "location", + "disposition_of_ship" + ], + "death": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured" + ] + }, + "linking_list": [ + [ + "different results", + "battle.result" + ], + [ + "different results", + "battle.outcome" + ], + [ + "different results", + "battle.consequence" + ] + ], + "linking_list_idx": [ + [ + 0, + "battle.result" + ], + [ + 0, + "battle.outcome" + ], + [ + 0, + "battle.consequence" + ] + ], + "linking_list_col": [ + [ + "battle.outcome", + "battle.consequence" + ], + [ + "battle.result", + "battle.consequence" + ], + [ + "battle.outcome", + "battle.result" + ] + ] + }, + { + "question": "what are all the addresses including #line 1# and line 2?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details", + "first_line", + "primary_address" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "line 1", + "addresses.line_1" + ], + [ + "line 1", + "addresses.first_line" + ], + [ + "line 1", + "addresses.primary_address" + ] + ], + "linking_list_idx": [ + [ + 0, + "addresses.line_1" + ], + [ + 0, + "addresses.first_line" + ], + [ + 0, + "addresses.primary_address" + ] + ], + "linking_list_col": [ + [ + "addresses.first_line", + "addresses.primary_address" + ], + [ + "addresses.line_1", + "addresses.primary_address" + ], + [ + "addresses.first_line", + "addresses.line_1" + ] + ] + }, + { + "question": "what is the #zip code# of the address in the #city# port chelsea?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details", + "postal_code", + "postcode" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "zip code", + "addresses.zip_postcode" + ], + [ + "zip code", + "addresses.postal_code" + ], + [ + "zip code", + "addresses.postcode" + ], + [ + "city", + "addresses.city" + ] + ], + "linking_list_idx": [ + [ + 0, + "addresses.zip_postcode" + ], + [ + 0, + "addresses.postal_code" + ], + [ + 0, + "addresses.postcode" + ], + [ + 1, + "addresses.city" + ] + ], + "linking_list_col": [ + [ + "addresses.postal_code", + "addresses.postcode" + ], + [ + "addresses.zip_postcode", + "addresses.postcode" + ], + [ + "addresses.postal_code", + "addresses.zip_postcode" + ] + ] + }, + { + "question": "which department offers the most number of degrees? list #department name# and id.", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details", + "dept_name", + "faculty_name" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "department name", + "departments.department_name" + ], + [ + "department name", + "departments.dept_name" + ], + [ + "department name", + "departments.faculty_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "departments.department_name" + ], + [ + 0, + "departments.dept_name" + ], + [ + 0, + "departments.faculty_name" + ] + ], + "linking_list_col": [ + [ + "departments.dept_name", + "departments.faculty_name" + ], + [ + "departments.department_name", + "departments.faculty_name" + ], + [ + "departments.dept_name", + "departments.department_name" + ] + ] + }, + { + "question": "how many #departments# offer any degree?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details", + "dept_id", + "faculty_id" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "departments", + "degree_programs.department_id" + ], + [ + "departments", + "degree_programs.dept_id" + ], + [ + "departments", + "degree_programs.faculty_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "degree_programs.department_id" + ], + [ + 0, + "degree_programs.dept_id" + ], + [ + 0, + "degree_programs.faculty_id" + ] + ], + "linking_list_col": [ + [ + "degree_programs.dept_id", + "degree_programs.faculty_id" + ], + [ + "degree_programs.department_id", + "degree_programs.faculty_id" + ], + [ + "degree_programs.dept_id", + "degree_programs.department_id" + ] + ] + }, + { + "question": "how many #different departments# offer degrees?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details", + "dept_id", + "faculty_id" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "different departments", + "degree_programs.department_id" + ], + [ + "different departments", + "degree_programs.dept_id" + ], + [ + "different departments", + "degree_programs.faculty_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "degree_programs.department_id" + ], + [ + 0, + "degree_programs.dept_id" + ], + [ + 0, + "degree_programs.faculty_id" + ] + ], + "linking_list_col": [ + [ + "degree_programs.dept_id", + "degree_programs.faculty_id" + ], + [ + "degree_programs.department_id", + "degree_programs.faculty_id" + ], + [ + "degree_programs.dept_id", + "degree_programs.department_id" + ] + ] + }, + { + "question": "how many #different degree names# are offered?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details", + "program_name", + "degree_name" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "different degree names", + "degree_programs.degree_summary_name" + ], + [ + "different degree names", + "degree_programs.program_name" + ], + [ + "different degree names", + "degree_programs.degree_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "degree_programs.degree_summary_name" + ], + [ + 0, + "degree_programs.program_name" + ], + [ + 0, + "degree_programs.degree_name" + ] + ], + "linking_list_col": [ + [ + "degree_programs.program_name", + "degree_programs.degree_name" + ], + [ + "degree_programs.degree_summary_name", + "degree_programs.degree_name" + ], + [ + "degree_programs.program_name", + "degree_programs.degree_summary_name" + ] + ] + }, + { + "question": "how many #different degrees# are offered?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details", + "program_name", + "degree_name" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "different degrees", + "degree_programs.degree_summary_name" + ], + [ + "different degrees", + "degree_programs.program_name" + ], + [ + "different degrees", + "degree_programs.degree_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "degree_programs.degree_summary_name" + ], + [ + 0, + "degree_programs.program_name" + ], + [ + 0, + "degree_programs.degree_name" + ] + ], + "linking_list_col": [ + [ + "degree_programs.program_name", + "degree_programs.degree_name" + ], + [ + "degree_programs.degree_summary_name", + "degree_programs.degree_name" + ], + [ + "degree_programs.program_name", + "degree_programs.degree_summary_name" + ] + ] + }, + { + "question": "list the #section_name# in reversed lexicographical order.", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details", + "part_name", + "segment_name" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "section_name", + "sections.section_name" + ], + [ + "section_name", + "sections.part_name" + ], + [ + "section_name", + "sections.segment_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "sections.section_name" + ], + [ + 0, + "sections.part_name" + ], + [ + 0, + "sections.segment_name" + ] + ], + "linking_list_col": [ + [ + "sections.part_name", + "sections.segment_name" + ], + [ + "sections.section_name", + "sections.segment_name" + ], + [ + "sections.part_name", + "sections.section_name" + ] + ] + }, + { + "question": "what is the #department description# for the one whose #name# has the word computer?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details", + "dept_desc", + "faculty_desc" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "department description", + "departments.department_description" + ], + [ + "department description", + "departments.dept_desc" + ], + [ + "department description", + "departments.faculty_desc" + ], + [ + "name", + "departments.department_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "departments.department_description" + ], + [ + 0, + "departments.dept_desc" + ], + [ + 0, + "departments.faculty_desc" + ], + [ + 1, + "departments.department_name" + ] + ], + "linking_list_col": [ + [ + "departments.dept_desc", + "departments.faculty_desc" + ], + [ + "departments.department_description", + "departments.faculty_desc" + ], + [ + "departments.dept_desc", + "departments.department_description" + ] + ] + }, + { + "question": "who are enrolled in 2 degree programs in one semester? list the #first name# , #middle name# and #last name# and the #id# .", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details", + "surname", + "family_name" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "first name", + "students.first_name" + ], + [ + "middle name", + "students.middle_name" + ], + [ + "last name", + "students.last_name" + ], + [ + "last name", + "students.surname" + ], + [ + "last name", + "students.family_name" + ], + [ + "id", + "students.student_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.first_name" + ], + [ + 1, + "students.middle_name" + ], + [ + 2, + "students.last_name" + ], + [ + 2, + "students.surname" + ], + [ + 2, + "students.family_name" + ], + [ + 3, + "students.student_id" + ] + ], + "linking_list_col": [ + [ + "students.surname", + "students.family_name" + ], + [ + "students.last_name", + "students.family_name" + ], + [ + "students.surname", + "students.last_name" + ] + ] + }, + { + "question": "who is enrolled in a bachelor degree program? list the #first name# , #middle name# , #last name# .", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details", + "surname", + "family_name" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "first name", + "students.first_name" + ], + [ + "middle name", + "students.middle_name" + ], + [ + "last name", + "students.last_name" + ], + [ + "last name", + "students.surname" + ], + [ + "last name", + "students.family_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.first_name" + ], + [ + 1, + "students.middle_name" + ], + [ + 2, + "students.last_name" + ], + [ + 2, + "students.surname" + ], + [ + 2, + "students.family_name" + ] + ], + "linking_list_col": [ + [ + "students.surname", + "students.family_name" + ], + [ + "students.last_name", + "students.family_name" + ], + [ + "students.surname", + "students.last_name" + ] + ] + }, + { + "question": "find the #kind of program# which most number of students are enrolled in?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details", + "program_name", + "degree_name" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "kind of program", + "degree_programs.degree_summary_name" + ], + [ + "kind of program", + "degree_programs.program_name" + ], + [ + "kind of program", + "degree_programs.degree_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "degree_programs.degree_summary_name" + ], + [ + 0, + "degree_programs.program_name" + ], + [ + 0, + "degree_programs.degree_name" + ] + ], + "linking_list_col": [ + [ + "degree_programs.program_name", + "degree_programs.degree_name" + ], + [ + "degree_programs.degree_summary_name", + "degree_programs.degree_name" + ], + [ + "degree_programs.program_name", + "degree_programs.degree_summary_name" + ] + ] + }, + { + "question": "what is the #degree summary name# that has the most number of students enrolled?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details", + "program_name", + "degree_name" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "degree summary name", + "degree_programs.degree_summary_name" + ], + [ + "degree summary name", + "degree_programs.program_name" + ], + [ + "degree summary name", + "degree_programs.degree_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "degree_programs.degree_summary_name" + ], + [ + 0, + "degree_programs.program_name" + ], + [ + 0, + "degree_programs.degree_name" + ] + ], + "linking_list_col": [ + [ + "degree_programs.program_name", + "degree_programs.degree_name" + ], + [ + "degree_programs.degree_summary_name", + "degree_programs.degree_name" + ], + [ + "degree_programs.program_name", + "degree_programs.degree_summary_name" + ] + ] + }, + { + "question": "what is the #program id# and the #summary# of the degree that has the most students enrolled?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details", + "program_name", + "degree_name" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "program id", + "degree_programs.degree_program_id" + ], + [ + "summary", + "degree_programs.degree_summary_name" + ], + [ + "summary", + "degree_programs.program_name" + ], + [ + "summary", + "degree_programs.degree_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "degree_programs.degree_program_id" + ], + [ + 1, + "degree_programs.degree_summary_name" + ], + [ + 1, + "degree_programs.program_name" + ], + [ + 1, + "degree_programs.degree_name" + ] + ], + "linking_list_col": [ + [ + "degree_programs.program_name", + "degree_programs.degree_name" + ], + [ + "degree_programs.degree_summary_name", + "degree_programs.degree_name" + ], + [ + "degree_programs.program_name", + "degree_programs.degree_summary_name" + ] + ] + }, + { + "question": "which student has enrolled for the most times in any program? list the id, #first name# , #middle name# , #last name# , the #number of enrollments# and #student id# .", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details", + "surname", + "family_name" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "first name", + "students.first_name" + ], + [ + "middle name", + "students.middle_name" + ], + [ + "last name", + "students.last_name" + ], + [ + "last name", + "students.surname" + ], + [ + "last name", + "students.family_name" + ], + [ + "number of enrollments", + "student_enrolment.student_enrolment_id" + ], + [ + "student id", + "students.student_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.first_name" + ], + [ + 1, + "students.middle_name" + ], + [ + 2, + "students.last_name" + ], + [ + 2, + "students.surname" + ], + [ + 2, + "students.family_name" + ], + [ + 3, + "student_enrolment.student_enrolment_id" + ], + [ + 4, + "students.student_id" + ] + ], + "linking_list_col": [ + [ + "students.surname", + "students.family_name" + ], + [ + "students.last_name", + "students.family_name" + ], + [ + "students.surname", + "students.last_name" + ] + ] + }, + { + "question": "what is the first, middle, and #last name# , along with the id and #number of enrollments# , for the student who enrolled the most in any program?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details", + "surname", + "family_name" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "last name", + "students.last_name" + ], + [ + "last name", + "students.surname" + ], + [ + "last name", + "students.family_name" + ], + [ + "number of enrollments", + "student_enrolment.student_enrolment_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.last_name" + ], + [ + 0, + "students.surname" + ], + [ + 0, + "students.family_name" + ], + [ + 1, + "student_enrolment.student_enrolment_id" + ] + ], + "linking_list_col": [ + [ + "students.surname", + "students.family_name" + ], + [ + "students.last_name", + "students.family_name" + ], + [ + "students.surname", + "students.last_name" + ] + ] + }, + { + "question": "which semesters do not have any student enrolled? list the #semester name# .", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details", + "term_name", + "session_name" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "semester name", + "semesters.semester_name" + ], + [ + "semester name", + "semesters.term_name" + ], + [ + "semester name", + "semesters.session_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "semesters.semester_name" + ], + [ + 0, + "semesters.term_name" + ], + [ + 0, + "semesters.session_name" + ] + ], + "linking_list_col": [ + [ + "semesters.term_name", + "semesters.session_name" + ], + [ + "semesters.semester_name", + "semesters.session_name" + ], + [ + "semesters.term_name", + "semesters.semester_name" + ] + ] + }, + { + "question": "what are all the #course names# of the courses which ever have students enrolled in?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details", + "class_name", + "subject_name" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "course names", + "courses.course_name" + ], + [ + "course names", + "courses.class_name" + ], + [ + "course names", + "courses.subject_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "courses.course_name" + ], + [ + 0, + "courses.class_name" + ], + [ + 0, + "courses.subject_name" + ] + ], + "linking_list_col": [ + [ + "courses.class_name", + "courses.subject_name" + ], + [ + "courses.course_name", + "courses.subject_name" + ], + [ + "courses.class_name", + "courses.course_name" + ] + ] + }, + { + "question": "find the #last name# of the students who currently live in the #state of north carolina# but have not registered in any degree program.", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details", + "surname", + "family_name" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "last name", + "students.last_name" + ], + [ + "last name", + "students.surname" + ], + [ + "last name", + "students.family_name" + ], + [ + "state of North Carolina", + "addresses.state_province_county" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.last_name" + ], + [ + 0, + "students.surname" + ], + [ + 0, + "students.family_name" + ], + [ + 1, + "addresses.state_province_county" + ] + ], + "linking_list_col": [ + [ + "students.surname", + "students.family_name" + ], + [ + "students.last_name", + "students.family_name" + ], + [ + "students.surname", + "students.last_name" + ] + ] + }, + { + "question": "what are the #last name# of the students who live in #north carolina# but have not registered in any degree programs?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details", + "surname", + "family_name" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "last name", + "students.last_name" + ], + [ + "last name", + "students.surname" + ], + [ + "last name", + "students.family_name" + ], + [ + "North Carolina", + "addresses.state_province_county" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.last_name" + ], + [ + 0, + "students.surname" + ], + [ + 0, + "students.family_name" + ], + [ + 1, + "addresses.state_province_county" + ] + ], + "linking_list_col": [ + [ + "students.surname", + "students.family_name" + ], + [ + "students.last_name", + "students.family_name" + ], + [ + "students.surname", + "students.last_name" + ] + ] + }, + { + "question": "what is the #phone number# of the man with the #first name# timmothy and the #last name# ward?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details", + "contact_number", + "phone_number" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "phone number", + "students.cell_mobile_number" + ], + [ + "phone number", + "students.contact_number" + ], + [ + "phone number", + "students.phone_number" + ], + [ + "first name", + "students.first_name" + ], + [ + "last name", + "students.last_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.cell_mobile_number" + ], + [ + 0, + "students.contact_number" + ], + [ + 0, + "students.phone_number" + ], + [ + 1, + "students.first_name" + ], + [ + 2, + "students.last_name" + ] + ], + "linking_list_col": [ + [ + "students.contact_number", + "students.phone_number" + ], + [ + "students.cell_mobile_number", + "students.phone_number" + ], + [ + "students.contact_number", + "students.cell_mobile_number" + ] + ] + }, + { + "question": "who is the first student to register? list the #first name# , #middle name# and #last name# .", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details", + "surname", + "family_name" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "first name", + "students.first_name" + ], + [ + "middle name", + "students.middle_name" + ], + [ + "last name", + "students.last_name" + ], + [ + "last name", + "students.surname" + ], + [ + "last name", + "students.family_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.first_name" + ], + [ + 1, + "students.middle_name" + ], + [ + 2, + "students.last_name" + ], + [ + 2, + "students.surname" + ], + [ + 2, + "students.family_name" + ] + ], + "linking_list_col": [ + [ + "students.surname", + "students.family_name" + ], + [ + "students.last_name", + "students.family_name" + ], + [ + "students.surname", + "students.last_name" + ] + ] + }, + { + "question": "what is the first, middle, and #last name# of the first student to register?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details", + "surname", + "family_name" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "last name", + "students.last_name" + ], + [ + "last name", + "students.surname" + ], + [ + "last name", + "students.family_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.last_name" + ], + [ + 0, + "students.surname" + ], + [ + 0, + "students.family_name" + ] + ], + "linking_list_col": [ + [ + "students.surname", + "students.family_name" + ], + [ + "students.last_name", + "students.family_name" + ], + [ + "students.surname", + "students.last_name" + ] + ] + }, + { + "question": "who is the earliest graduate of the school? list the #first name# , #middle name# and #last name# .", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details", + "surname", + "family_name" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "first name", + "students.first_name" + ], + [ + "middle name", + "students.middle_name" + ], + [ + "last name", + "students.last_name" + ], + [ + "last name", + "students.surname" + ], + [ + "last name", + "students.family_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.first_name" + ], + [ + 1, + "students.middle_name" + ], + [ + 2, + "students.last_name" + ], + [ + 2, + "students.surname" + ], + [ + 2, + "students.family_name" + ] + ], + "linking_list_col": [ + [ + "students.surname", + "students.family_name" + ], + [ + "students.last_name", + "students.family_name" + ], + [ + "students.surname", + "students.last_name" + ] + ] + }, + { + "question": "what is the first, middle, and #last name# of the earliest school graduate?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details", + "surname", + "family_name" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "last name", + "students.last_name" + ], + [ + "last name", + "students.surname" + ], + [ + "last name", + "students.family_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.last_name" + ], + [ + 0, + "students.surname" + ], + [ + 0, + "students.family_name" + ] + ], + "linking_list_col": [ + [ + "students.surname", + "students.family_name" + ], + [ + "students.last_name", + "students.family_name" + ], + [ + "students.surname", + "students.last_name" + ] + ] + }, + { + "question": "whose permanent address is different from his or her current address? list his or her #first name# .", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details", + "forename", + "given_name" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "first name", + "students.first_name" + ], + [ + "first name", + "students.forename" + ], + [ + "first name", + "students.given_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.first_name" + ], + [ + 0, + "students.forename" + ], + [ + 0, + "students.given_name" + ] + ], + "linking_list_col": [ + [ + "students.forename", + "students.given_name" + ], + [ + "students.first_name", + "students.given_name" + ], + [ + "students.forename", + "students.first_name" + ] + ] + }, + { + "question": "what is the #first name# of the student whose permanent address is different from his or her current one?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details", + "forename", + "given_name" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "first name", + "students.first_name" + ], + [ + "first name", + "students.forename" + ], + [ + "first name", + "students.given_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.first_name" + ], + [ + 0, + "students.forename" + ], + [ + 0, + "students.given_name" + ] + ], + "linking_list_col": [ + [ + "students.forename", + "students.given_name" + ], + [ + "students.first_name", + "students.given_name" + ], + [ + "students.forename", + "students.first_name" + ] + ] + }, + { + "question": "which address holds the most number of students currently? list the #address id# and all lines.", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details", + "address_code", + "postal_address_id" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "address id", + "addresses.address_id" + ], + [ + "address id", + "addresses.address_code" + ], + [ + "address id", + "addresses.postal_address_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "addresses.address_id" + ], + [ + 0, + "addresses.address_code" + ], + [ + 0, + "addresses.postal_address_id" + ] + ], + "linking_list_col": [ + [ + "addresses.address_code", + "addresses.postal_address_id" + ], + [ + "addresses.address_id", + "addresses.postal_address_id" + ], + [ + "addresses.address_code", + "addresses.address_id" + ] + ] + }, + { + "question": "when is the first transcript released? list the date and #details# .", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details", + "additional_information", + "extra_notes" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "details", + "transcripts.other_details" + ], + [ + "details", + "transcripts.additional_information" + ], + [ + "details", + "transcripts.extra_notes" + ] + ], + "linking_list_idx": [ + [ + 0, + "transcripts.other_details" + ], + [ + 0, + "transcripts.additional_information" + ], + [ + 0, + "transcripts.extra_notes" + ] + ], + "linking_list_col": [ + [ + "transcripts.additional_information", + "transcripts.extra_notes" + ], + [ + "transcripts.other_details", + "transcripts.extra_notes" + ], + [ + "transcripts.additional_information", + "transcripts.other_details" + ] + ] + }, + { + "question": "what is the earliest date of a transcript release, and what #details# can you tell me?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details", + "additional_information", + "extra_notes" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "details", + "transcripts.other_details" + ], + [ + "details", + "transcripts.additional_information" + ], + [ + "details", + "transcripts.extra_notes" + ] + ], + "linking_list_idx": [ + [ + 0, + "transcripts.other_details" + ], + [ + 0, + "transcripts.additional_information" + ], + [ + 0, + "transcripts.extra_notes" + ] + ], + "linking_list_col": [ + [ + "transcripts.additional_information", + "transcripts.extra_notes" + ], + [ + "transcripts.other_details", + "transcripts.extra_notes" + ], + [ + "transcripts.additional_information", + "transcripts.other_details" + ] + ] + }, + { + "question": "what is the #maximum number of times# that a course shows up in different transcripts and what is that course's enrollment id?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id", + "course_student_id", + "enrollment_id" + ] + }, + "linking_list": [ + [ + "maximum number of times", + "transcript_contents.student_course_id" + ], + [ + "maximum number of times", + "transcript_contents.course_student_id" + ], + [ + "maximum number of times", + "transcript_contents.enrollment_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "transcript_contents.student_course_id" + ], + [ + 0, + "transcript_contents.course_student_id" + ], + [ + 0, + "transcript_contents.enrollment_id" + ] + ], + "linking_list_col": [ + [ + "transcript_contents.course_student_id", + "transcript_contents.enrollment_id" + ], + [ + "transcript_contents.student_course_id", + "transcript_contents.enrollment_id" + ], + [ + "transcript_contents.course_student_id", + "transcript_contents.student_course_id" + ] + ] + }, + { + "question": "how many #different addresses# do the students currently live?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details", + "current_residence_id", + "residence_address_id" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "different addresses", + "students.current_address_id" + ], + [ + "different addresses", + "students.current_residence_id" + ], + [ + "different addresses", + "students.residence_address_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.current_address_id" + ], + [ + 0, + "students.current_residence_id" + ], + [ + 0, + "students.residence_address_id" + ] + ], + "linking_list_col": [ + [ + "students.current_residence_id", + "students.residence_address_id" + ], + [ + "students.current_address_id", + "students.residence_address_id" + ], + [ + "students.current_residence_id", + "students.current_address_id" + ] + ] + }, + { + "question": "what are the #different addresses# that have students living there?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details", + "current_residence_id", + "residence_address_id" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "different addresses", + "students.current_address_id" + ], + [ + "different addresses", + "students.current_residence_id" + ], + [ + "different addresses", + "students.residence_address_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.current_address_id" + ], + [ + 0, + "students.current_residence_id" + ], + [ + 0, + "students.residence_address_id" + ] + ], + "linking_list_col": [ + [ + "students.current_residence_id", + "students.residence_address_id" + ], + [ + "students.current_address_id", + "students.residence_address_id" + ], + [ + "students.current_residence_id", + "students.current_address_id" + ] + ] + }, + { + "question": "list all the #student details# in reversed lexicographical order.", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details", + "additional_details", + "extra_info" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "student details", + "students.other_student_details" + ], + [ + "student details", + "students.additional_details" + ], + [ + "student details", + "students.extra_info" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.other_student_details" + ], + [ + 0, + "students.additional_details" + ], + [ + 0, + "students.extra_info" + ] + ], + "linking_list_col": [ + [ + "students.additional_details", + "students.extra_info" + ], + [ + "students.other_student_details", + "students.extra_info" + ], + [ + "students.additional_details", + "students.other_student_details" + ] + ] + }, + { + "question": "what #other details# can you tell me about students in reverse alphabetical order?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details", + "additional_details", + "extra_info" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "other details", + "students.other_student_details" + ], + [ + "other details", + "students.additional_details" + ], + [ + "other details", + "students.extra_info" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.other_student_details" + ], + [ + 0, + "students.additional_details" + ], + [ + 0, + "students.extra_info" + ] + ], + "linking_list_col": [ + [ + "students.additional_details", + "students.extra_info" + ], + [ + "students.other_student_details", + "students.extra_info" + ], + [ + "students.additional_details", + "students.other_student_details" + ] + ] + }, + { + "question": "list the #title# of all cartoons in alphabetical order.", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel", + "cartoon_name", + "program_title" + ] + }, + "linking_list": [ + [ + "title", + "cartoon.title" + ], + [ + "title", + "cartoon.cartoon_name" + ], + [ + "title", + "cartoon.program_title" + ] + ], + "linking_list_idx": [ + [ + 0, + "cartoon.title" + ], + [ + 0, + "cartoon.cartoon_name" + ], + [ + 0, + "cartoon.program_title" + ] + ], + "linking_list_col": [ + [ + "cartoon.cartoon_name", + "cartoon.program_title" + ], + [ + "cartoon.title", + "cartoon.program_title" + ], + [ + "cartoon.cartoon_name", + "cartoon.title" + ] + ] + }, + { + "question": "what are the #titles# of the cartoons sorted alphabetically?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel", + "cartoon_name", + "program_title" + ] + }, + "linking_list": [ + [ + "titles", + "cartoon.title" + ], + [ + "titles", + "cartoon.cartoon_name" + ], + [ + "titles", + "cartoon.program_title" + ] + ], + "linking_list_idx": [ + [ + 0, + "cartoon.title" + ], + [ + 0, + "cartoon.cartoon_name" + ], + [ + 0, + "cartoon.program_title" + ] + ], + "linking_list_col": [ + [ + "cartoon.cartoon_name", + "cartoon.program_title" + ], + [ + "cartoon.title", + "cartoon.program_title" + ], + [ + "cartoon.cartoon_name", + "cartoon.title" + ] + ] + }, + { + "question": "list all #cartoon titles# and their #directors# ordered by their air date", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel", + "cartoon_name", + "program_title" + ] + }, + "linking_list": [ + [ + "cartoon titles", + "cartoon.title" + ], + [ + "cartoon titles", + "cartoon.cartoon_name" + ], + [ + "cartoon titles", + "cartoon.program_title" + ], + [ + "directors", + "cartoon.directed_by" + ] + ], + "linking_list_idx": [ + [ + 0, + "cartoon.title" + ], + [ + 0, + "cartoon.cartoon_name" + ], + [ + 0, + "cartoon.program_title" + ], + [ + 1, + "cartoon.directed_by" + ] + ], + "linking_list_col": [ + [ + "cartoon.cartoon_name", + "cartoon.program_title" + ], + [ + "cartoon.title", + "cartoon.program_title" + ], + [ + "cartoon.cartoon_name", + "cartoon.title" + ] + ] + }, + { + "question": "list the #title# of all cartoon #directed by# \"ben jones\" or \"brandon vietti\".", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel", + "cartoon_name", + "program_title" + ] + }, + "linking_list": [ + [ + "title", + "cartoon.title" + ], + [ + "title", + "cartoon.cartoon_name" + ], + [ + "title", + "cartoon.program_title" + ], + [ + "directed by", + "cartoon.directed_by" + ] + ], + "linking_list_idx": [ + [ + 0, + "cartoon.title" + ], + [ + 0, + "cartoon.cartoon_name" + ], + [ + 0, + "cartoon.program_title" + ], + [ + 1, + "cartoon.directed_by" + ] + ], + "linking_list_col": [ + [ + "cartoon.cartoon_name", + "cartoon.program_title" + ], + [ + "cartoon.title", + "cartoon.program_title" + ], + [ + "cartoon.cartoon_name", + "cartoon.title" + ] + ] + }, + { + "question": "what are the #titles# of all cartoons #directed by# ben jones or brandon vietti?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel", + "cartoon_name", + "program_title" + ] + }, + "linking_list": [ + [ + "titles", + "cartoon.title" + ], + [ + "titles", + "cartoon.cartoon_name" + ], + [ + "titles", + "cartoon.program_title" + ], + [ + "directed by", + "cartoon.directed_by" + ] + ], + "linking_list_idx": [ + [ + 0, + "cartoon.title" + ], + [ + 0, + "cartoon.cartoon_name" + ], + [ + 0, + "cartoon.program_title" + ], + [ + 1, + "cartoon.directed_by" + ] + ], + "linking_list_col": [ + [ + "cartoon.cartoon_name", + "cartoon.program_title" + ], + [ + "cartoon.title", + "cartoon.program_title" + ], + [ + "cartoon.cartoon_name", + "cartoon.title" + ] + ] + }, + { + "question": "which #country# has the most of tv channels? list the country and number of tv channels it has.", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "nation", + "territory" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "country", + "tv_channel.country" + ], + [ + "country", + "tv_channel.nation" + ], + [ + "country", + "tv_channel.territory" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.country" + ], + [ + 0, + "tv_channel.nation" + ], + [ + 0, + "tv_channel.territory" + ] + ], + "linking_list_col": [ + [ + "tv_channel.nation", + "tv_channel.territory" + ], + [ + "tv_channel.country", + "tv_channel.territory" + ], + [ + "tv_channel.nation", + "tv_channel.country" + ] + ] + }, + { + "question": "what is the #country# with the most number of tv channels and how many does it have?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "nation", + "territory" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "country", + "tv_channel.country" + ], + [ + "country", + "tv_channel.nation" + ], + [ + "country", + "tv_channel.territory" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.country" + ], + [ + 0, + "tv_channel.nation" + ], + [ + 0, + "tv_channel.territory" + ] + ], + "linking_list_col": [ + [ + "tv_channel.nation", + "tv_channel.territory" + ], + [ + "tv_channel.country", + "tv_channel.territory" + ], + [ + "tv_channel.nation", + "tv_channel.country" + ] + ] + }, + { + "question": "what is the #content# of tv channel with #serial name# \"sky radio\"?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "broadcast", + "transmission" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "content", + "tv_channel.content" + ], + [ + "content", + "tv_channel.broadcast" + ], + [ + "content", + "tv_channel.transmission" + ], + [ + "serial name", + "tv_channel.series_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.content" + ], + [ + 0, + "tv_channel.broadcast" + ], + [ + 0, + "tv_channel.transmission" + ], + [ + 1, + "tv_channel.series_name" + ] + ], + "linking_list_col": [ + [ + "tv_channel.broadcast", + "tv_channel.transmission" + ], + [ + "tv_channel.content", + "tv_channel.transmission" + ], + [ + "tv_channel.broadcast", + "tv_channel.content" + ] + ] + }, + { + "question": "what is the #content# of the series sky radio?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "broadcast", + "transmission" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "content", + "tv_channel.content" + ], + [ + "content", + "tv_channel.broadcast" + ], + [ + "content", + "tv_channel.transmission" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.content" + ], + [ + 0, + "tv_channel.broadcast" + ], + [ + 0, + "tv_channel.transmission" + ] + ], + "linking_list_col": [ + [ + "tv_channel.broadcast", + "tv_channel.transmission" + ], + [ + "tv_channel.content", + "tv_channel.transmission" + ], + [ + "tv_channel.broadcast", + "tv_channel.content" + ] + ] + }, + { + "question": "what is the #package option# of tv channel with #serial name# \"sky radio\"?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "subscription_option", + "tv_service_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "Package Option", + "tv_channel.package_option" + ], + [ + "Package Option", + "tv_channel.subscription_option" + ], + [ + "Package Option", + "tv_channel.tv_service_option" + ], + [ + "serial name", + "tv_channel.series_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.package_option" + ], + [ + 0, + "tv_channel.subscription_option" + ], + [ + 0, + "tv_channel.tv_service_option" + ], + [ + 1, + "tv_channel.series_name" + ] + ], + "linking_list_col": [ + [ + "tv_channel.subscription_option", + "tv_channel.tv_service_option" + ], + [ + "tv_channel.package_option", + "tv_channel.tv_service_option" + ], + [ + "tv_channel.subscription_option", + "tv_channel.package_option" + ] + ] + }, + { + "question": "what are the #package options# of the tv channels whose #series names# are sky radio?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "subscription_option", + "tv_service_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "Package Options", + "tv_channel.package_option" + ], + [ + "Package Options", + "tv_channel.subscription_option" + ], + [ + "Package Options", + "tv_channel.tv_service_option" + ], + [ + "series names", + "tv_channel.series_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.package_option" + ], + [ + 0, + "tv_channel.subscription_option" + ], + [ + 0, + "tv_channel.tv_service_option" + ], + [ + 1, + "tv_channel.series_name" + ] + ], + "linking_list_col": [ + [ + "tv_channel.subscription_option", + "tv_channel.tv_service_option" + ], + [ + "tv_channel.package_option", + "tv_channel.tv_service_option" + ], + [ + "tv_channel.subscription_option", + "tv_channel.package_option" + ] + ] + }, + { + "question": "list the #language# used least number of tv channel. list language and number of tv channel.", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "tongue", + "dialect" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "language", + "tv_channel.language" + ], + [ + "language", + "tv_channel.tongue" + ], + [ + "language", + "tv_channel.dialect" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.language" + ], + [ + 0, + "tv_channel.tongue" + ], + [ + 0, + "tv_channel.dialect" + ] + ], + "linking_list_col": [ + [ + "tv_channel.tongue", + "tv_channel.dialect" + ], + [ + "tv_channel.language", + "tv_channel.dialect" + ], + [ + "tv_channel.tongue", + "tv_channel.language" + ] + ] + }, + { + "question": "list each #language# and the number of tv channels using it.", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "tongue", + "dialect" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "language", + "tv_channel.language" + ], + [ + "language", + "tv_channel.tongue" + ], + [ + "language", + "tv_channel.dialect" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.language" + ], + [ + 0, + "tv_channel.tongue" + ], + [ + 0, + "tv_channel.dialect" + ] + ], + "linking_list_col": [ + [ + "tv_channel.tongue", + "tv_channel.dialect" + ], + [ + "tv_channel.language", + "tv_channel.dialect" + ], + [ + "tv_channel.tongue", + "tv_channel.language" + ] + ] + }, + { + "question": "for each #language# , list the number of tv channels that use it.", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "tongue", + "dialect" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "language", + "tv_channel.language" + ], + [ + "language", + "tv_channel.tongue" + ], + [ + "language", + "tv_channel.dialect" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.language" + ], + [ + 0, + "tv_channel.tongue" + ], + [ + 0, + "tv_channel.dialect" + ] + ], + "linking_list_col": [ + [ + "tv_channel.tongue", + "tv_channel.dialect" + ], + [ + "tv_channel.language", + "tv_channel.dialect" + ], + [ + "tv_channel.tongue", + "tv_channel.language" + ] + ] + }, + { + "question": "what is the tv channel that shows the cartoon \"the rise of the blue beetle!\"? list the #tv channel's series name# .", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "show_name", + "program_name" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "TV Channel's series name", + "tv_channel.series_name" + ], + [ + "TV Channel's series name", + "tv_channel.show_name" + ], + [ + "TV Channel's series name", + "tv_channel.program_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.series_name" + ], + [ + 0, + "tv_channel.show_name" + ], + [ + 0, + "tv_channel.program_name" + ] + ], + "linking_list_col": [ + [ + "tv_channel.show_name", + "tv_channel.program_name" + ], + [ + "tv_channel.series_name", + "tv_channel.program_name" + ], + [ + "tv_channel.show_name", + "tv_channel.series_name" + ] + ] + }, + { + "question": "what is the #series name# of the tv channel that shows the cartoon \"the rise of the blue beetle\"?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "show_name", + "program_name" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "series name", + "tv_channel.series_name" + ], + [ + "series name", + "tv_channel.show_name" + ], + [ + "series name", + "tv_channel.program_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.series_name" + ], + [ + 0, + "tv_channel.show_name" + ], + [ + 0, + "tv_channel.program_name" + ] + ], + "linking_list_col": [ + [ + "tv_channel.show_name", + "tv_channel.program_name" + ], + [ + "tv_channel.series_name", + "tv_channel.program_name" + ], + [ + "tv_channel.show_name", + "tv_channel.series_name" + ] + ] + }, + { + "question": "list the #title# of all cartoons showed on tv channel with series name \"sky radio\".", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel", + "cartoon_name", + "program_title" + ] + }, + "linking_list": [ + [ + "title", + "cartoon.title" + ], + [ + "title", + "cartoon.cartoon_name" + ], + [ + "title", + "cartoon.program_title" + ] + ], + "linking_list_idx": [ + [ + 0, + "cartoon.title" + ], + [ + 0, + "cartoon.cartoon_name" + ], + [ + 0, + "cartoon.program_title" + ] + ], + "linking_list_col": [ + [ + "cartoon.cartoon_name", + "cartoon.program_title" + ], + [ + "cartoon.title", + "cartoon.program_title" + ], + [ + "cartoon.cartoon_name", + "cartoon.title" + ] + ] + }, + { + "question": "what is the #title# of all the cartools that are on the tv channel with the series name \"sky radio\"?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel", + "cartoon_name", + "program_title" + ] + }, + "linking_list": [ + [ + "title", + "cartoon.title" + ], + [ + "title", + "cartoon.cartoon_name" + ], + [ + "title", + "cartoon.program_title" + ] + ], + "linking_list_idx": [ + [ + 0, + "cartoon.title" + ], + [ + 0, + "cartoon.cartoon_name" + ], + [ + 0, + "cartoon.program_title" + ] + ], + "linking_list_col": [ + [ + "cartoon.cartoon_name", + "cartoon.program_title" + ], + [ + "cartoon.title", + "cartoon.program_title" + ], + [ + "cartoon.cartoon_name", + "cartoon.title" + ] + ] + }, + { + "question": "list the #episode# of all tv series sorted by rating.", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel", + "part", + "chapter" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "Episode", + "tv_series.episode" + ], + [ + "Episode", + "tv_series.part" + ], + [ + "Episode", + "tv_series.chapter" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_series.episode" + ], + [ + 0, + "tv_series.part" + ], + [ + 0, + "tv_series.chapter" + ] + ], + "linking_list_col": [ + [ + "tv_series.part", + "tv_series.chapter" + ], + [ + "tv_series.episode", + "tv_series.chapter" + ], + [ + "tv_series.part", + "tv_series.episode" + ] + ] + }, + { + "question": "what are all of the #episodes# ordered by ratings?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel", + "part", + "chapter" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "episodes", + "tv_series.episode" + ], + [ + "episodes", + "tv_series.part" + ], + [ + "episodes", + "tv_series.chapter" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_series.episode" + ], + [ + 0, + "tv_series.part" + ], + [ + 0, + "tv_series.chapter" + ] + ], + "linking_list_col": [ + [ + "tv_series.part", + "tv_series.chapter" + ], + [ + "tv_series.episode", + "tv_series.chapter" + ], + [ + "tv_series.part", + "tv_series.episode" + ] + ] + }, + { + "question": "list top 3 highest #rating# tv series. list the tv series's #episode# and rating.", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel", + "popularity", + "score" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "Rating", + "tv_series.rating" + ], + [ + "Rating", + "tv_series.popularity" + ], + [ + "Rating", + "tv_series.score" + ], + [ + "Episode", + "tv_series.episode" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_series.rating" + ], + [ + 0, + "tv_series.popularity" + ], + [ + 0, + "tv_series.score" + ], + [ + 1, + "tv_series.episode" + ] + ], + "linking_list_col": [ + [ + "tv_series.popularity", + "tv_series.score" + ], + [ + "tv_series.rating", + "tv_series.score" + ], + [ + "tv_series.popularity", + "tv_series.rating" + ] + ] + }, + { + "question": "what is minimum and #maximum share# of tv series?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel", + "percentage_share", + "dividend" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "maximum share", + "tv_series.share" + ], + [ + "maximum share", + "tv_series.percentage_share" + ], + [ + "maximum share", + "tv_series.dividend" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_series.share" + ], + [ + 0, + "tv_series.percentage_share" + ], + [ + 0, + "tv_series.dividend" + ] + ], + "linking_list_col": [ + [ + "tv_series.percentage_share", + "tv_series.dividend" + ], + [ + "tv_series.share", + "tv_series.dividend" + ], + [ + "tv_series.percentage_share", + "tv_series.share" + ] + ] + }, + { + "question": "what is the maximum and #minimum share# for the tv series?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel", + "percentage_share", + "dividend" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "minimum share", + "tv_series.share" + ], + [ + "minimum share", + "tv_series.percentage_share" + ], + [ + "minimum share", + "tv_series.dividend" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_series.share" + ], + [ + 0, + "tv_series.percentage_share" + ], + [ + 0, + "tv_series.dividend" + ] + ], + "linking_list_col": [ + [ + "tv_series.percentage_share", + "tv_series.dividend" + ], + [ + "tv_series.share", + "tv_series.dividend" + ], + [ + "tv_series.percentage_share", + "tv_series.share" + ] + ] + }, + { + "question": "what is the #air date# of tv series with #episode# \"a love of a lifetime\"?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel", + "broadcast_date", + "airing_date" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "air date", + "tv_series.air_date" + ], + [ + "air date", + "tv_series.broadcast_date" + ], + [ + "air date", + "tv_series.airing_date" + ], + [ + "Episode", + "tv_series.episode" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_series.air_date" + ], + [ + 0, + "tv_series.broadcast_date" + ], + [ + 0, + "tv_series.airing_date" + ], + [ + 1, + "tv_series.episode" + ] + ], + "linking_list_col": [ + [ + "tv_series.broadcast_date", + "tv_series.airing_date" + ], + [ + "tv_series.air_date", + "tv_series.airing_date" + ], + [ + "tv_series.broadcast_date", + "tv_series.air_date" + ] + ] + }, + { + "question": "what is #weekly rank# of tv series with #episode# \"a love of a lifetime\"?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel", + "position_in_chart", + "ranking" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "Weekly Rank", + "tv_series.weekly_rank" + ], + [ + "Weekly Rank", + "tv_series.position_in_chart" + ], + [ + "Weekly Rank", + "tv_series.ranking" + ], + [ + "Episode", + "tv_series.episode" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_series.weekly_rank" + ], + [ + 0, + "tv_series.position_in_chart" + ], + [ + 0, + "tv_series.ranking" + ], + [ + 1, + "tv_series.episode" + ] + ], + "linking_list_col": [ + [ + "tv_series.position_in_chart", + "tv_series.ranking" + ], + [ + "tv_series.weekly_rank", + "tv_series.ranking" + ], + [ + "tv_series.position_in_chart", + "tv_series.weekly_rank" + ] + ] + }, + { + "question": "what is the #weekly rank for the episode# \"a love of a lifetime\"?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel", + "position_in_chart", + "ranking" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "weekly rank for the episode", + "tv_series.weekly_rank" + ], + [ + "weekly rank for the episode", + "tv_series.position_in_chart" + ], + [ + "weekly rank for the episode", + "tv_series.ranking" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_series.weekly_rank" + ], + [ + 0, + "tv_series.position_in_chart" + ], + [ + 0, + "tv_series.ranking" + ] + ], + "linking_list_col": [ + [ + "tv_series.position_in_chart", + "tv_series.ranking" + ], + [ + "tv_series.weekly_rank", + "tv_series.ranking" + ], + [ + "tv_series.position_in_chart", + "tv_series.weekly_rank" + ] + ] + }, + { + "question": "what is the tv channel of tv series with #episode# \"a love of a lifetime\"? list the #tv channel's series name# .", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "show_name", + "program_name" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "Episode", + "tv_series.episode" + ], + [ + "TV Channel's series name", + "tv_channel.series_name" + ], + [ + "TV Channel's series name", + "tv_channel.show_name" + ], + [ + "TV Channel's series name", + "tv_channel.program_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_series.episode" + ], + [ + 1, + "tv_channel.series_name" + ], + [ + 1, + "tv_channel.show_name" + ], + [ + 1, + "tv_channel.program_name" + ] + ], + "linking_list_col": [ + [ + "tv_channel.show_name", + "tv_channel.program_name" + ], + [ + "tv_channel.series_name", + "tv_channel.program_name" + ], + [ + "tv_channel.show_name", + "tv_channel.series_name" + ] + ] + }, + { + "question": "list the #episode# of all tv series showed on tv channel with #series name# \"sky radio\".", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel", + "part", + "chapter" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "Episode", + "tv_series.episode" + ], + [ + "Episode", + "tv_series.part" + ], + [ + "Episode", + "tv_series.chapter" + ], + [ + "series name", + "tv_channel.series_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_series.episode" + ], + [ + 0, + "tv_series.part" + ], + [ + 0, + "tv_series.chapter" + ], + [ + 1, + "tv_channel.series_name" + ] + ], + "linking_list_col": [ + [ + "tv_series.part", + "tv_series.chapter" + ], + [ + "tv_series.episode", + "tv_series.chapter" + ], + [ + "tv_series.part", + "tv_series.episode" + ] + ] + }, + { + "question": "what is the #episode# for the tv series named \"sky radio\"?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel", + "part", + "chapter" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "episode", + "tv_series.episode" + ], + [ + "episode", + "tv_series.part" + ], + [ + "episode", + "tv_series.chapter" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_series.episode" + ], + [ + 0, + "tv_series.part" + ], + [ + 0, + "tv_series.chapter" + ] + ], + "linking_list_col": [ + [ + "tv_series.part", + "tv_series.chapter" + ], + [ + "tv_series.episode", + "tv_series.chapter" + ], + [ + "tv_series.part", + "tv_series.episode" + ] + ] + }, + { + "question": "how many cartoons did each #director# create?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel", + "director_name", + "filmmaker" + ] + }, + "linking_list": [ + [ + "director", + "cartoon.directed_by" + ], + [ + "director", + "cartoon.director_name" + ], + [ + "director", + "cartoon.filmmaker" + ] + ], + "linking_list_idx": [ + [ + 0, + "cartoon.directed_by" + ], + [ + 0, + "cartoon.director_name" + ], + [ + 0, + "cartoon.filmmaker" + ] + ], + "linking_list_col": [ + [ + "cartoon.director_name", + "cartoon.filmmaker" + ], + [ + "cartoon.directed_by", + "cartoon.filmmaker" + ], + [ + "cartoon.director_name", + "cartoon.directed_by" + ] + ] + }, + { + "question": "find the #package choice# and #series name# of the tv channel that has high definition tv.", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "subscription_option", + "tv_service_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "package choice", + "tv_channel.package_option" + ], + [ + "package choice", + "tv_channel.subscription_option" + ], + [ + "package choice", + "tv_channel.tv_service_option" + ], + [ + "series name", + "tv_channel.series_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.package_option" + ], + [ + 0, + "tv_channel.subscription_option" + ], + [ + 0, + "tv_channel.tv_service_option" + ], + [ + 1, + "tv_channel.series_name" + ] + ], + "linking_list_col": [ + [ + "tv_channel.subscription_option", + "tv_channel.tv_service_option" + ], + [ + "tv_channel.package_option", + "tv_channel.tv_service_option" + ], + [ + "tv_channel.subscription_option", + "tv_channel.package_option" + ] + ] + }, + { + "question": "what are the #package options# and the #name of the series# for the tv channel that supports high definition tv?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "subscription_option", + "tv_service_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "package options", + "tv_channel.package_option" + ], + [ + "package options", + "tv_channel.subscription_option" + ], + [ + "package options", + "tv_channel.tv_service_option" + ], + [ + "name of the series", + "tv_channel.series_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.package_option" + ], + [ + 0, + "tv_channel.subscription_option" + ], + [ + 0, + "tv_channel.tv_service_option" + ], + [ + 1, + "tv_channel.series_name" + ] + ], + "linking_list_col": [ + [ + "tv_channel.subscription_option", + "tv_channel.tv_service_option" + ], + [ + "tv_channel.package_option", + "tv_channel.tv_service_option" + ], + [ + "tv_channel.subscription_option", + "tv_channel.package_option" + ] + ] + }, + { + "question": "find the #series name# and #country# of the tv channel that is playing some cartoons directed by ben jones and michael chang?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "nation", + "territory" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "series name", + "tv_channel.series_name" + ], + [ + "country", + "tv_channel.country" + ], + [ + "country", + "tv_channel.nation" + ], + [ + "country", + "tv_channel.territory" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.series_name" + ], + [ + 1, + "tv_channel.country" + ], + [ + 1, + "tv_channel.nation" + ], + [ + 1, + "tv_channel.territory" + ] + ], + "linking_list_col": [ + [ + "tv_channel.nation", + "tv_channel.territory" + ], + [ + "tv_channel.country", + "tv_channel.territory" + ], + [ + "tv_channel.nation", + "tv_channel.country" + ] + ] + }, + { + "question": "what is the #series name# and #country# of all tv channels that are playing cartoons #directed by# ben jones and cartoons directed by michael chang?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "nation", + "territory" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "series name", + "tv_channel.series_name" + ], + [ + "country", + "tv_channel.country" + ], + [ + "country", + "tv_channel.nation" + ], + [ + "country", + "tv_channel.territory" + ], + [ + "directed by", + "cartoon.directed_by" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.series_name" + ], + [ + 1, + "tv_channel.country" + ], + [ + 1, + "tv_channel.nation" + ], + [ + 1, + "tv_channel.territory" + ], + [ + 2, + "cartoon.directed_by" + ] + ], + "linking_list_col": [ + [ + "tv_channel.nation", + "tv_channel.territory" + ], + [ + "tv_channel.country", + "tv_channel.territory" + ], + [ + "tv_channel.nation", + "tv_channel.country" + ] + ] + }, + { + "question": "find the #pixel aspect ratio# and #nation# of the tv channels that do not use english.", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "screen_aspect_ratio_par", + "image_aspect_ratio_par" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "pixel aspect ratio", + "tv_channel.pixel_aspect_ratio_par" + ], + [ + "pixel aspect ratio", + "tv_channel.screen_aspect_ratio_par" + ], + [ + "pixel aspect ratio", + "tv_channel.image_aspect_ratio_par" + ], + [ + "nation", + "tv_channel.country" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.pixel_aspect_ratio_par" + ], + [ + 0, + "tv_channel.screen_aspect_ratio_par" + ], + [ + 0, + "tv_channel.image_aspect_ratio_par" + ], + [ + 1, + "tv_channel.country" + ] + ], + "linking_list_col": [ + [ + "tv_channel.screen_aspect_ratio_par", + "tv_channel.image_aspect_ratio_par" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "tv_channel.image_aspect_ratio_par" + ], + [ + "tv_channel.screen_aspect_ratio_par", + "tv_channel.pixel_aspect_ratio_par" + ] + ] + }, + { + "question": "what is the #pixel aspect ratio# and #country of origin# for all tv channels that do not use english?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "screen_aspect_ratio_par", + "image_aspect_ratio_par" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "pixel aspect ratio", + "tv_channel.pixel_aspect_ratio_par" + ], + [ + "pixel aspect ratio", + "tv_channel.screen_aspect_ratio_par" + ], + [ + "pixel aspect ratio", + "tv_channel.image_aspect_ratio_par" + ], + [ + "country of origin", + "tv_channel.country" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.pixel_aspect_ratio_par" + ], + [ + 0, + "tv_channel.screen_aspect_ratio_par" + ], + [ + 0, + "tv_channel.image_aspect_ratio_par" + ], + [ + 1, + "tv_channel.country" + ] + ], + "linking_list_col": [ + [ + "tv_channel.screen_aspect_ratio_par", + "tv_channel.image_aspect_ratio_par" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "tv_channel.image_aspect_ratio_par" + ], + [ + "tv_channel.screen_aspect_ratio_par", + "tv_channel.pixel_aspect_ratio_par" + ] + ] + }, + { + "question": "find #id# of the tv channels that from the countries where have more than two tv channels.", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "channel_id", + "index" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "id", + "tv_channel.id" + ], + [ + "id", + "tv_channel.channel_id" + ], + [ + "id", + "tv_channel.index" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.id" + ], + [ + 0, + "tv_channel.channel_id" + ], + [ + 0, + "tv_channel.index" + ] + ], + "linking_list_col": [ + [ + "tv_channel.channel_id", + "tv_channel.index" + ], + [ + "tv_channel.id", + "tv_channel.index" + ], + [ + "tv_channel.channel_id", + "tv_channel.id" + ] + ] + }, + { + "question": "find the #id# of tv channels that do not play any cartoon #directed by# ben jones.", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "channel_id", + "index" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "id", + "tv_channel.id" + ], + [ + "id", + "tv_channel.channel_id" + ], + [ + "id", + "tv_channel.index" + ], + [ + "directed by", + "cartoon.directed_by" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.id" + ], + [ + 0, + "tv_channel.channel_id" + ], + [ + 0, + "tv_channel.index" + ], + [ + 1, + "cartoon.directed_by" + ] + ], + "linking_list_col": [ + [ + "tv_channel.channel_id", + "tv_channel.index" + ], + [ + "tv_channel.id", + "tv_channel.index" + ], + [ + "tv_channel.channel_id", + "tv_channel.id" + ] + ] + }, + { + "question": "find the #package option# of the tv channel that do not have any cartoon directed by ben jones.", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "subscription_option", + "tv_service_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "package option", + "tv_channel.package_option" + ], + [ + "package option", + "tv_channel.subscription_option" + ], + [ + "package option", + "tv_channel.tv_service_option" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.package_option" + ], + [ + 0, + "tv_channel.subscription_option" + ], + [ + 0, + "tv_channel.tv_service_option" + ] + ], + "linking_list_col": [ + [ + "tv_channel.subscription_option", + "tv_channel.tv_service_option" + ], + [ + "tv_channel.package_option", + "tv_channel.tv_service_option" + ], + [ + "tv_channel.subscription_option", + "tv_channel.package_option" + ] + ] + }, + { + "question": "what are the #package options# of all tv channels that are not playing any cartoons directed by ben jones?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option", + "subscription_option", + "tv_service_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "package options", + "tv_channel.package_option" + ], + [ + "package options", + "tv_channel.subscription_option" + ], + [ + "package options", + "tv_channel.tv_service_option" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.package_option" + ], + [ + 0, + "tv_channel.subscription_option" + ], + [ + 0, + "tv_channel.tv_service_option" + ] + ], + "linking_list_col": [ + [ + "tv_channel.subscription_option", + "tv_channel.tv_service_option" + ], + [ + "tv_channel.package_option", + "tv_channel.tv_service_option" + ], + [ + "tv_channel.subscription_option", + "tv_channel.package_option" + ] + ] + }, + { + "question": "list the #earnings# of poker players in descending order.", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings", + "income", + "revenue" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "earnings", + "poker_player.earnings" + ], + [ + "earnings", + "poker_player.income" + ], + [ + "earnings", + "poker_player.revenue" + ] + ], + "linking_list_idx": [ + [ + 0, + "poker_player.earnings" + ], + [ + 0, + "poker_player.income" + ], + [ + 0, + "poker_player.revenue" + ] + ], + "linking_list_col": [ + [ + "poker_player.income", + "poker_player.revenue" + ], + [ + "poker_player.earnings", + "poker_player.revenue" + ], + [ + "poker_player.income", + "poker_player.earnings" + ] + ] + }, + { + "question": "what are the #earnings# of poker players, ordered descending by value?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings", + "income", + "revenue" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "earnings", + "poker_player.earnings" + ], + [ + "earnings", + "poker_player.income" + ], + [ + "earnings", + "poker_player.revenue" + ] + ], + "linking_list_idx": [ + [ + 0, + "poker_player.earnings" + ], + [ + 0, + "poker_player.income" + ], + [ + 0, + "poker_player.revenue" + ] + ], + "linking_list_col": [ + [ + "poker_player.income", + "poker_player.revenue" + ], + [ + "poker_player.earnings", + "poker_player.revenue" + ], + [ + "poker_player.income", + "poker_player.earnings" + ] + ] + }, + { + "question": "list the #final tables made# and the #best finishes# of poker players.", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings", + "last_round_table", + "endgame_table" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "final tables made", + "poker_player.final_table_made" + ], + [ + "final tables made", + "poker_player.last_round_table" + ], + [ + "final tables made", + "poker_player.endgame_table" + ], + [ + "best finishes", + "poker_player.best_finish" + ] + ], + "linking_list_idx": [ + [ + 0, + "poker_player.final_table_made" + ], + [ + 0, + "poker_player.last_round_table" + ], + [ + 0, + "poker_player.endgame_table" + ], + [ + 1, + "poker_player.best_finish" + ] + ], + "linking_list_col": [ + [ + "poker_player.last_round_table", + "poker_player.endgame_table" + ], + [ + "poker_player.final_table_made", + "poker_player.endgame_table" + ], + [ + "poker_player.last_round_table", + "poker_player.final_table_made" + ] + ] + }, + { + "question": "what are the #final tables made# and #best finishes# for all poker players?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings", + "last_round_table", + "endgame_table" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "final tables made", + "poker_player.final_table_made" + ], + [ + "final tables made", + "poker_player.last_round_table" + ], + [ + "final tables made", + "poker_player.endgame_table" + ], + [ + "best finishes", + "poker_player.best_finish" + ] + ], + "linking_list_idx": [ + [ + 0, + "poker_player.final_table_made" + ], + [ + 0, + "poker_player.last_round_table" + ], + [ + 0, + "poker_player.endgame_table" + ], + [ + 1, + "poker_player.best_finish" + ] + ], + "linking_list_col": [ + [ + "poker_player.last_round_table", + "poker_player.endgame_table" + ], + [ + "poker_player.final_table_made", + "poker_player.endgame_table" + ], + [ + "poker_player.last_round_table", + "poker_player.final_table_made" + ] + ] + }, + { + "question": "what is the #average earnings# of poker players?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings", + "income", + "revenue" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "average earnings", + "poker_player.earnings" + ], + [ + "average earnings", + "poker_player.income" + ], + [ + "average earnings", + "poker_player.revenue" + ] + ], + "linking_list_idx": [ + [ + 0, + "poker_player.earnings" + ], + [ + 0, + "poker_player.income" + ], + [ + 0, + "poker_player.revenue" + ] + ], + "linking_list_col": [ + [ + "poker_player.income", + "poker_player.revenue" + ], + [ + "poker_player.earnings", + "poker_player.revenue" + ], + [ + "poker_player.income", + "poker_player.earnings" + ] + ] + }, + { + "question": "return the #average earnings# across all poker players.", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings", + "income", + "revenue" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "average earnings", + "poker_player.earnings" + ], + [ + "average earnings", + "poker_player.income" + ], + [ + "average earnings", + "poker_player.revenue" + ] + ], + "linking_list_idx": [ + [ + 0, + "poker_player.earnings" + ], + [ + 0, + "poker_player.income" + ], + [ + 0, + "poker_player.revenue" + ] + ], + "linking_list_col": [ + [ + "poker_player.income", + "poker_player.revenue" + ], + [ + "poker_player.earnings", + "poker_player.revenue" + ], + [ + "poker_player.income", + "poker_player.earnings" + ] + ] + }, + { + "question": "what is the #money rank# of the poker player with the highest earnings?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings", + "cash_ranking", + "financial_position" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "money rank", + "poker_player.money_rank" + ], + [ + "money rank", + "poker_player.cash_ranking" + ], + [ + "money rank", + "poker_player.financial_position" + ] + ], + "linking_list_idx": [ + [ + 0, + "poker_player.money_rank" + ], + [ + 0, + "poker_player.cash_ranking" + ], + [ + 0, + "poker_player.financial_position" + ] + ], + "linking_list_col": [ + [ + "poker_player.cash_ranking", + "poker_player.financial_position" + ], + [ + "poker_player.money_rank", + "poker_player.financial_position" + ], + [ + "poker_player.cash_ranking", + "poker_player.money_rank" + ] + ] + }, + { + "question": "return the #money rank of the player with the greatest earnings# .", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings", + "cash_ranking", + "financial_position" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "money rank of the player with the greatest earnings", + "poker_player.money_rank" + ], + [ + "money rank of the player with the greatest earnings", + "poker_player.cash_ranking" + ], + [ + "money rank of the player with the greatest earnings", + "poker_player.financial_position" + ] + ], + "linking_list_idx": [ + [ + 0, + "poker_player.money_rank" + ], + [ + 0, + "poker_player.cash_ranking" + ], + [ + 0, + "poker_player.financial_position" + ] + ], + "linking_list_col": [ + [ + "poker_player.cash_ranking", + "poker_player.financial_position" + ], + [ + "poker_player.money_rank", + "poker_player.financial_position" + ], + [ + "poker_player.cash_ranking", + "poker_player.money_rank" + ] + ] + }, + { + "question": "what is the #maximum number of final tables made# among poker players with earnings less than 200000?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings", + "last_round_table", + "endgame_table" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "maximum number of final tables made", + "poker_player.final_table_made" + ], + [ + "maximum number of final tables made", + "poker_player.last_round_table" + ], + [ + "maximum number of final tables made", + "poker_player.endgame_table" + ] + ], + "linking_list_idx": [ + [ + 0, + "poker_player.final_table_made" + ], + [ + 0, + "poker_player.last_round_table" + ], + [ + 0, + "poker_player.endgame_table" + ] + ], + "linking_list_col": [ + [ + "poker_player.last_round_table", + "poker_player.endgame_table" + ], + [ + "poker_player.final_table_made", + "poker_player.endgame_table" + ], + [ + "poker_player.last_round_table", + "poker_player.final_table_made" + ] + ] + }, + { + "question": "return the #maximum final tables made# across all poker players who have #earnings# below 200000.", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings", + "last_round_table", + "endgame_table" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "maximum final tables made", + "poker_player.final_table_made" + ], + [ + "maximum final tables made", + "poker_player.last_round_table" + ], + [ + "maximum final tables made", + "poker_player.endgame_table" + ], + [ + "earnings", + "poker_player.earnings" + ] + ], + "linking_list_idx": [ + [ + 0, + "poker_player.final_table_made" + ], + [ + 0, + "poker_player.last_round_table" + ], + [ + 0, + "poker_player.endgame_table" + ], + [ + 1, + "poker_player.earnings" + ] + ], + "linking_list_col": [ + [ + "poker_player.last_round_table", + "poker_player.endgame_table" + ], + [ + "poker_player.final_table_made", + "poker_player.endgame_table" + ], + [ + "poker_player.last_round_table", + "poker_player.final_table_made" + ] + ] + }, + { + "question": "what are the #names# of poker players?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height", + "full_name", + "complete_name" + ] + }, + "linking_list": [ + [ + "names", + "people.name" + ], + [ + "names", + "people.full_name" + ], + [ + "names", + "people.complete_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.name" + ], + [ + 0, + "people.full_name" + ], + [ + 0, + "people.complete_name" + ] + ], + "linking_list_col": [ + [ + "people.full_name", + "people.complete_name" + ], + [ + "people.name", + "people.complete_name" + ], + [ + "people.full_name", + "people.name" + ] + ] + }, + { + "question": "list the #names# of poker players ordered by the #final tables made# in ascending order.", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height", + "full_name", + "complete_name" + ] + }, + "linking_list": [ + [ + "names", + "people.name" + ], + [ + "names", + "people.full_name" + ], + [ + "names", + "people.complete_name" + ], + [ + "final tables made", + "poker_player.final_table_made" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.name" + ], + [ + 0, + "people.full_name" + ], + [ + 0, + "people.complete_name" + ], + [ + 1, + "poker_player.final_table_made" + ] + ], + "linking_list_col": [ + [ + "people.full_name", + "people.complete_name" + ], + [ + "people.name", + "people.complete_name" + ], + [ + "people.full_name", + "people.name" + ] + ] + }, + { + "question": "what are the #names# of poker players, ordered ascending by the number of #final tables# they have made?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height", + "full_name", + "complete_name" + ] + }, + "linking_list": [ + [ + "names", + "people.name" + ], + [ + "names", + "people.full_name" + ], + [ + "names", + "people.complete_name" + ], + [ + "final tables", + "poker_player.final_table_made" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.name" + ], + [ + 0, + "people.full_name" + ], + [ + 0, + "people.complete_name" + ], + [ + 1, + "poker_player.final_table_made" + ] + ], + "linking_list_col": [ + [ + "people.full_name", + "people.complete_name" + ], + [ + "people.name", + "people.complete_name" + ], + [ + "people.full_name", + "people.name" + ] + ] + }, + { + "question": "what is the #birth date of the poker player# with the lowest earnings?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height", + "date_of_birth", + "birthday" + ] + }, + "linking_list": [ + [ + "birth date of the poker player", + "people.birth_date" + ], + [ + "birth date of the poker player", + "people.date_of_birth" + ], + [ + "birth date of the poker player", + "people.birthday" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.birth_date" + ], + [ + 0, + "people.date_of_birth" + ], + [ + 0, + "people.birthday" + ] + ], + "linking_list_col": [ + [ + "people.date_of_birth", + "people.birthday" + ], + [ + "people.birth_date", + "people.birthday" + ], + [ + "people.date_of_birth", + "people.birth_date" + ] + ] + }, + { + "question": "return the #birth date# of the poker player with the #lowest earnings# .", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height", + "date_of_birth", + "birthday" + ] + }, + "linking_list": [ + [ + "birth date", + "people.birth_date" + ], + [ + "birth date", + "people.date_of_birth" + ], + [ + "birth date", + "people.birthday" + ], + [ + "lowest earnings", + "poker_player.earnings" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.birth_date" + ], + [ + 0, + "people.date_of_birth" + ], + [ + 0, + "people.birthday" + ], + [ + 1, + "poker_player.earnings" + ] + ], + "linking_list_col": [ + [ + "people.date_of_birth", + "people.birthday" + ], + [ + "people.birth_date", + "people.birthday" + ], + [ + "people.date_of_birth", + "people.birth_date" + ] + ] + }, + { + "question": "what is the #money rank of the tallest# poker player?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings", + "cash_ranking", + "financial_position" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "money rank of the tallest", + "poker_player.money_rank" + ], + [ + "money rank of the tallest", + "poker_player.cash_ranking" + ], + [ + "money rank of the tallest", + "poker_player.financial_position" + ] + ], + "linking_list_idx": [ + [ + 0, + "poker_player.money_rank" + ], + [ + 0, + "poker_player.cash_ranking" + ], + [ + 0, + "poker_player.financial_position" + ] + ], + "linking_list_col": [ + [ + "poker_player.cash_ranking", + "poker_player.financial_position" + ], + [ + "poker_player.money_rank", + "poker_player.financial_position" + ], + [ + "poker_player.cash_ranking", + "poker_player.money_rank" + ] + ] + }, + { + "question": "return the #money rank# of the poker player with the #greatest height# .", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings", + "cash_ranking", + "financial_position" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "money rank", + "poker_player.money_rank" + ], + [ + "money rank", + "poker_player.cash_ranking" + ], + [ + "money rank", + "poker_player.financial_position" + ], + [ + "greatest height", + "people.height" + ] + ], + "linking_list_idx": [ + [ + 0, + "poker_player.money_rank" + ], + [ + 0, + "poker_player.cash_ranking" + ], + [ + 0, + "poker_player.financial_position" + ], + [ + 1, + "people.height" + ] + ], + "linking_list_col": [ + [ + "poker_player.cash_ranking", + "poker_player.financial_position" + ], + [ + "poker_player.money_rank", + "poker_player.financial_position" + ], + [ + "poker_player.cash_ranking", + "poker_player.money_rank" + ] + ] + }, + { + "question": "what is the #average earnings# of poker players with #height# higher than 200?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings", + "income", + "revenue" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "average earnings", + "poker_player.earnings" + ], + [ + "average earnings", + "poker_player.income" + ], + [ + "average earnings", + "poker_player.revenue" + ], + [ + "height", + "people.height" + ] + ], + "linking_list_idx": [ + [ + 0, + "poker_player.earnings" + ], + [ + 0, + "poker_player.income" + ], + [ + 0, + "poker_player.revenue" + ], + [ + 1, + "people.height" + ] + ], + "linking_list_col": [ + [ + "poker_player.income", + "poker_player.revenue" + ], + [ + "poker_player.earnings", + "poker_player.revenue" + ], + [ + "poker_player.income", + "poker_player.earnings" + ] + ] + }, + { + "question": "give #average earnings# of poker players who are #taller than 200# .", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings", + "income", + "revenue" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "average earnings", + "poker_player.earnings" + ], + [ + "average earnings", + "poker_player.income" + ], + [ + "average earnings", + "poker_player.revenue" + ], + [ + "taller than 200", + "people.height" + ] + ], + "linking_list_idx": [ + [ + 0, + "poker_player.earnings" + ], + [ + 0, + "poker_player.income" + ], + [ + 0, + "poker_player.revenue" + ], + [ + 1, + "people.height" + ] + ], + "linking_list_col": [ + [ + "poker_player.income", + "poker_player.revenue" + ], + [ + "poker_player.earnings", + "poker_player.revenue" + ], + [ + "poker_player.income", + "poker_player.earnings" + ] + ] + }, + { + "question": "what is the most common #nationality# of people?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height", + "country", + "citizenship" + ] + }, + "linking_list": [ + [ + "nationality", + "people.nationality" + ], + [ + "nationality", + "people.country" + ], + [ + "nationality", + "people.citizenship" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.nationality" + ], + [ + 0, + "people.country" + ], + [ + 0, + "people.citizenship" + ] + ], + "linking_list_col": [ + [ + "people.country", + "people.citizenship" + ], + [ + "people.nationality", + "people.citizenship" + ], + [ + "people.country", + "people.nationality" + ] + ] + }, + { + "question": "give the #nationality# that is most common across all people.", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height", + "country", + "citizenship" + ] + }, + "linking_list": [ + [ + "nationality", + "people.nationality" + ], + [ + "nationality", + "people.country" + ], + [ + "nationality", + "people.citizenship" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.nationality" + ], + [ + 0, + "people.country" + ], + [ + 0, + "people.citizenship" + ] + ], + "linking_list_col": [ + [ + "people.country", + "people.citizenship" + ], + [ + "people.nationality", + "people.citizenship" + ], + [ + "people.country", + "people.nationality" + ] + ] + }, + { + "question": "what are the #nationalities# that are shared by at least two people?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height", + "country", + "citizenship" + ] + }, + "linking_list": [ + [ + "nationalities", + "people.nationality" + ], + [ + "nationalities", + "people.country" + ], + [ + "nationalities", + "people.citizenship" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.nationality" + ], + [ + 0, + "people.country" + ], + [ + 0, + "people.citizenship" + ] + ], + "linking_list_col": [ + [ + "people.country", + "people.citizenship" + ], + [ + "people.nationality", + "people.citizenship" + ], + [ + "people.country", + "people.nationality" + ] + ] + }, + { + "question": "return the #nationalities# for which there are two or more people.", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height", + "country", + "citizenship" + ] + }, + "linking_list": [ + [ + "nationalities", + "people.nationality" + ], + [ + "nationalities", + "people.country" + ], + [ + "nationalities", + "people.citizenship" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.nationality" + ], + [ + 0, + "people.country" + ], + [ + 0, + "people.citizenship" + ] + ], + "linking_list_col": [ + [ + "people.country", + "people.citizenship" + ], + [ + "people.nationality", + "people.citizenship" + ], + [ + "people.country", + "people.nationality" + ] + ] + }, + { + "question": "list the #names# of people that are not poker players.", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height", + "full_name", + "complete_name" + ] + }, + "linking_list": [ + [ + "names", + "people.name" + ], + [ + "names", + "people.full_name" + ], + [ + "names", + "people.complete_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.name" + ], + [ + 0, + "people.full_name" + ], + [ + 0, + "people.complete_name" + ] + ], + "linking_list_col": [ + [ + "people.full_name", + "people.complete_name" + ], + [ + "people.name", + "people.complete_name" + ], + [ + "people.full_name", + "people.name" + ] + ] + }, + { + "question": "what are the #names# of people who do not play poker?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height", + "full_name", + "complete_name" + ] + }, + "linking_list": [ + [ + "names", + "people.name" + ], + [ + "names", + "people.full_name" + ], + [ + "names", + "people.complete_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.name" + ], + [ + 0, + "people.full_name" + ], + [ + 0, + "people.complete_name" + ] + ], + "linking_list_col": [ + [ + "people.full_name", + "people.complete_name" + ], + [ + "people.name", + "people.complete_name" + ], + [ + "people.full_name", + "people.name" + ] + ] + }, + { + "question": "how many #distinct nationalities# are there?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height", + "country", + "citizenship" + ] + }, + "linking_list": [ + [ + "distinct nationalities", + "people.nationality" + ], + [ + "distinct nationalities", + "people.country" + ], + [ + "distinct nationalities", + "people.citizenship" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.nationality" + ], + [ + 0, + "people.country" + ], + [ + 0, + "people.citizenship" + ] + ], + "linking_list_col": [ + [ + "people.country", + "people.citizenship" + ], + [ + "people.nationality", + "people.citizenship" + ], + [ + "people.country", + "people.nationality" + ] + ] + }, + { + "question": "count the #number of different nationalities# .", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height", + "country", + "citizenship" + ] + }, + "linking_list": [ + [ + "number of different nationalities", + "people.nationality" + ], + [ + "number of different nationalities", + "people.country" + ], + [ + "number of different nationalities", + "people.citizenship" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.nationality" + ], + [ + 0, + "people.country" + ], + [ + 0, + "people.citizenship" + ] + ], + "linking_list_col": [ + [ + "people.country", + "people.citizenship" + ], + [ + "people.nationality", + "people.citizenship" + ], + [ + "people.country", + "people.nationality" + ] + ] + }, + { + "question": "list the contestant numbers and names, ordered by #contestant name# descending.", + "db_schema": { + "area_code_state": [ + "area_code", + "state" + ], + "contestants": [ + "contestant_number", + "contestant_name", + "fullname", + "applicant_name" + ], + "votes": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ] + }, + "linking_list": [ + [ + "contestant name", + "contestants.contestant_name" + ], + [ + "contestant name", + "contestants.fullname" + ], + [ + "contestant name", + "contestants.applicant_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "contestants.contestant_name" + ], + [ + 0, + "contestants.fullname" + ], + [ + 0, + "contestants.applicant_name" + ] + ], + "linking_list_col": [ + [ + "contestants.fullname", + "contestants.applicant_name" + ], + [ + "contestants.contestant_name", + "contestants.applicant_name" + ], + [ + "contestants.fullname", + "contestants.contestant_name" + ] + ] + }, + { + "question": "what is #last date created# of votes from the #state# 'ca'?", + "db_schema": { + "area_code_state": [ + "area_code", + "state" + ], + "contestants": [ + "contestant_number", + "contestant_name" + ], + "votes": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created", + "generated", + "produced" + ] + }, + "linking_list": [ + [ + "last date created", + "votes.created" + ], + [ + "last date created", + "votes.generated" + ], + [ + "last date created", + "votes.produced" + ], + [ + "state", + "votes.state" + ] + ], + "linking_list_idx": [ + [ + 0, + "votes.created" + ], + [ + 0, + "votes.generated" + ], + [ + 0, + "votes.produced" + ], + [ + 1, + "votes.state" + ] + ], + "linking_list_col": [ + [ + "votes.generated", + "votes.produced" + ], + [ + "votes.created", + "votes.produced" + ], + [ + "votes.generated", + "votes.created" + ] + ] + }, + { + "question": "what is the #area code# in which the most voters voted?", + "db_schema": { + "area_code_state": [ + "area_code", + "state", + "zip_code", + "postal_code" + ], + "contestants": [ + "contestant_number", + "contestant_name" + ], + "votes": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ] + }, + "linking_list": [ + [ + "area code", + "area_code_state.area_code" + ], + [ + "area code", + "area_code_state.zip_code" + ], + [ + "area code", + "area_code_state.postal_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "area_code_state.area_code" + ], + [ + 0, + "area_code_state.zip_code" + ], + [ + 0, + "area_code_state.postal_code" + ] + ], + "linking_list_col": [ + [ + "area_code_state.zip_code", + "area_code_state.postal_code" + ], + [ + "area_code_state.area_code", + "area_code_state.postal_code" + ], + [ + "area_code_state.zip_code", + "area_code_state.area_code" + ] + ] + }, + { + "question": "what are the #create dates# , #states# , and #phone numbers# of the votes that were for the contestant named 'tabatha gehling'?", + "db_schema": { + "area_code_state": [ + "area_code", + "state" + ], + "contestants": [ + "contestant_number", + "contestant_name" + ], + "votes": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created", + "generated", + "produced" + ] + }, + "linking_list": [ + [ + "create dates", + "votes.created" + ], + [ + "create dates", + "votes.generated" + ], + [ + "create dates", + "votes.produced" + ], + [ + "states", + "votes.state" + ], + [ + "phone numbers", + "votes.phone_number" + ] + ], + "linking_list_idx": [ + [ + 0, + "votes.created" + ], + [ + 0, + "votes.generated" + ], + [ + 0, + "votes.produced" + ], + [ + 1, + "votes.state" + ], + [ + 2, + "votes.phone_number" + ] + ], + "linking_list_col": [ + [ + "votes.generated", + "votes.produced" + ], + [ + "votes.created", + "votes.produced" + ], + [ + "votes.generated", + "votes.created" + ] + ] + }, + { + "question": "give the #names of the nations# that were #founded after 1950# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "nation", + "title" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "names of the nations", + "country.name" + ], + [ + "names of the nations", + "country.nation" + ], + [ + "names of the nations", + "country.title" + ], + [ + "founded after 1950", + "country.indepyear" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "country.nation" + ], + [ + 0, + "country.title" + ], + [ + 1, + "country.indepyear" + ] + ], + "linking_list_col": [ + [ + "country.nation", + "country.title" + ], + [ + "country.name", + "country.title" + ], + [ + "country.nation", + "country.name" + ] + ] + }, + { + "question": "what is the #total surface area# of the countries in the caribbean region?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "land_area", + "extent" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "total surface area", + "country.surfacearea" + ], + [ + "total surface area", + "country.land_area" + ], + [ + "total surface area", + "country.extent" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.surfacearea" + ], + [ + 0, + "country.land_area" + ], + [ + 0, + "country.extent" + ] + ], + "linking_list_col": [ + [ + "country.land_area", + "country.extent" + ], + [ + "country.surfacearea", + "country.extent" + ], + [ + "country.land_area", + "country.surfacearea" + ] + ] + }, + { + "question": "how much #surface area# do the countires in the carribean cover together?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "land_area", + "extent" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "surface area", + "country.surfacearea" + ], + [ + "surface area", + "country.land_area" + ], + [ + "surface area", + "country.extent" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.surfacearea" + ], + [ + 0, + "country.land_area" + ], + [ + 0, + "country.extent" + ] + ], + "linking_list_col": [ + [ + "country.land_area", + "country.extent" + ], + [ + "country.surfacearea", + "country.extent" + ], + [ + "country.land_area", + "country.surfacearea" + ] + ] + }, + { + "question": "which #continent is anguilla# in?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "mainland", + "continent_name" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "continent is Anguilla", + "country.continent" + ], + [ + "continent is Anguilla", + "country.mainland" + ], + [ + "continent is Anguilla", + "country.continent_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.continent" + ], + [ + 0, + "country.mainland" + ], + [ + 0, + "country.continent_name" + ] + ], + "linking_list_col": [ + [ + "country.mainland", + "country.continent_name" + ], + [ + "country.continent", + "country.continent_name" + ], + [ + "country.mainland", + "country.continent" + ] + ] + }, + { + "question": "what is the #continent name# which #anguilla# belongs to?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "mainland", + "continent_name" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "continent name", + "country.continent" + ], + [ + "continent name", + "country.mainland" + ], + [ + "continent name", + "country.continent_name" + ], + [ + "Anguilla", + "country.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.continent" + ], + [ + 0, + "country.mainland" + ], + [ + 0, + "country.continent_name" + ], + [ + 1, + "country.name" + ] + ], + "linking_list_col": [ + [ + "country.mainland", + "country.continent_name" + ], + [ + "country.continent", + "country.continent_name" + ], + [ + "country.mainland", + "country.continent" + ] + ] + }, + { + "question": "which #region is the city# kabul located in?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "area", + "district" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "region is the city", + "country.region" + ], + [ + "region is the city", + "country.area" + ], + [ + "region is the city", + "country.district" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.region" + ], + [ + 0, + "country.area" + ], + [ + 0, + "country.district" + ] + ], + "linking_list_col": [ + [ + "country.area", + "country.district" + ], + [ + "country.region", + "country.district" + ], + [ + "country.area", + "country.region" + ] + ] + }, + { + "question": "what #region is kabul# in?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "area", + "district" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "region is Kabul", + "country.region" + ], + [ + "region is Kabul", + "country.area" + ], + [ + "region is Kabul", + "country.district" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.region" + ], + [ + 0, + "country.area" + ], + [ + 0, + "country.district" + ] + ], + "linking_list_col": [ + [ + "country.area", + "country.district" + ], + [ + "country.region", + "country.district" + ], + [ + "country.area", + "country.region" + ] + ] + }, + { + "question": "which #language# is the most popular in aruba?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage", + "tongue", + "dialect" + ] + }, + "linking_list": [ + [ + "language", + "countrylanguage.language" + ], + [ + "language", + "countrylanguage.tongue" + ], + [ + "language", + "countrylanguage.dialect" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "countrylanguage.tongue" + ], + [ + 0, + "countrylanguage.dialect" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.tongue", + "countrylanguage.dialect" + ], + [ + "countrylanguage.language", + "countrylanguage.dialect" + ], + [ + "countrylanguage.tongue", + "countrylanguage.language" + ] + ] + }, + { + "question": "what #language# is predominantly spoken in aruba?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage", + "tongue", + "dialect" + ] + }, + "linking_list": [ + [ + "language", + "countrylanguage.language" + ], + [ + "language", + "countrylanguage.tongue" + ], + [ + "language", + "countrylanguage.dialect" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "countrylanguage.tongue" + ], + [ + 0, + "countrylanguage.dialect" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.tongue", + "countrylanguage.dialect" + ], + [ + "countrylanguage.language", + "countrylanguage.dialect" + ], + [ + "countrylanguage.tongue", + "countrylanguage.language" + ] + ] + }, + { + "question": "give me brazil\u2019s #population# and #life expectancies# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "life_length", + "life_span" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "population", + "country.population" + ], + [ + "life expectancies", + "country.lifeexpectancy" + ], + [ + "life expectancies", + "country.life_length" + ], + [ + "life expectancies", + "country.life_span" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.population" + ], + [ + 1, + "country.lifeexpectancy" + ], + [ + 1, + "country.life_length" + ], + [ + 1, + "country.life_span" + ] + ], + "linking_list_col": [ + [ + "country.life_length", + "country.life_span" + ], + [ + "country.lifeexpectancy", + "country.life_span" + ], + [ + "country.life_length", + "country.lifeexpectancy" + ] + ] + }, + { + "question": "what are the #region# and #population# of angola?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "area", + "district" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "region", + "country.region" + ], + [ + "region", + "country.area" + ], + [ + "region", + "country.district" + ], + [ + "population", + "country.population" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.region" + ], + [ + 0, + "country.area" + ], + [ + 0, + "country.district" + ], + [ + 1, + "country.population" + ] + ], + "linking_list_col": [ + [ + "country.area", + "country.district" + ], + [ + "country.region", + "country.district" + ], + [ + "country.area", + "country.region" + ] + ] + }, + { + "question": "what #region# does angola belong to and what is its population?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "area", + "district" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "region", + "country.region" + ], + [ + "region", + "country.area" + ], + [ + "region", + "country.district" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.region" + ], + [ + 0, + "country.area" + ], + [ + 0, + "country.district" + ] + ], + "linking_list_col": [ + [ + "country.area", + "country.district" + ], + [ + "country.region", + "country.district" + ], + [ + "country.area", + "country.region" + ] + ] + }, + { + "question": "how many people live in #asia# , and what is the #largest gnp# among them?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "gross_national_product", + "national_income" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "Asia", + "country.continent" + ], + [ + "largest GNP", + "country.gnp" + ], + [ + "largest GNP", + "country.gross_national_product" + ], + [ + "largest GNP", + "country.national_income" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.continent" + ], + [ + 1, + "country.gnp" + ], + [ + 1, + "country.gross_national_product" + ], + [ + 1, + "country.national_income" + ] + ], + "linking_list_col": [ + [ + "country.gross_national_product", + "country.national_income" + ], + [ + "country.gnp", + "country.national_income" + ], + [ + "country.gross_national_product", + "country.gnp" + ] + ] + }, + { + "question": "what is the #average life expectancy in african countries# that are republics?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "life_length", + "life_span" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "average life expectancy in African countries", + "country.lifeexpectancy" + ], + [ + "average life expectancy in African countries", + "country.life_length" + ], + [ + "average life expectancy in African countries", + "country.life_span" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.lifeexpectancy" + ], + [ + 0, + "country.life_length" + ], + [ + 0, + "country.life_span" + ] + ], + "linking_list_col": [ + [ + "country.life_length", + "country.life_span" + ], + [ + "country.lifeexpectancy", + "country.life_span" + ], + [ + "country.life_length", + "country.lifeexpectancy" + ] + ] + }, + { + "question": "give the #average life expectancy for countries in africa# which are republics?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "life_length", + "life_span" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "average life expectancy for countries in Africa", + "country.lifeexpectancy" + ], + [ + "average life expectancy for countries in Africa", + "country.life_length" + ], + [ + "average life expectancy for countries in Africa", + "country.life_span" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.lifeexpectancy" + ], + [ + 0, + "country.life_length" + ], + [ + 0, + "country.life_span" + ] + ], + "linking_list_col": [ + [ + "country.life_length", + "country.life_span" + ], + [ + "country.lifeexpectancy", + "country.life_span" + ], + [ + "country.life_length", + "country.lifeexpectancy" + ] + ] + }, + { + "question": "what is the #total surface area of the continents# asia and europe?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "land_area", + "extent" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "total surface area of the continents", + "country.surfacearea" + ], + [ + "total surface area of the continents", + "country.land_area" + ], + [ + "total surface area of the continents", + "country.extent" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.surfacearea" + ], + [ + 0, + "country.land_area" + ], + [ + 0, + "country.extent" + ] + ], + "linking_list_col": [ + [ + "country.land_area", + "country.extent" + ], + [ + "country.surfacearea", + "country.extent" + ], + [ + "country.land_area", + "country.surfacearea" + ] + ] + }, + { + "question": "give the #total surface area# covered by #countries in asia or europe# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "land_area", + "extent" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "total surface area", + "country.surfacearea" + ], + [ + "total surface area", + "country.land_area" + ], + [ + "total surface area", + "country.extent" + ], + [ + "countries in Asia or Europe", + "country.continent" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.surfacearea" + ], + [ + 0, + "country.land_area" + ], + [ + 0, + "country.extent" + ], + [ + 1, + "country.continent" + ] + ], + "linking_list_col": [ + [ + "country.land_area", + "country.extent" + ], + [ + "country.surfacearea", + "country.extent" + ], + [ + "country.land_area", + "country.surfacearea" + ] + ] + }, + { + "question": "what is the #average gnp# and #total population# in all nations whose government is us territory?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "gross_national_product", + "national_income" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "average GNP", + "country.gnp" + ], + [ + "average GNP", + "country.gross_national_product" + ], + [ + "average GNP", + "country.national_income" + ], + [ + "total population", + "country.population" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.gnp" + ], + [ + 0, + "country.gross_national_product" + ], + [ + 0, + "country.national_income" + ], + [ + 1, + "country.population" + ] + ], + "linking_list_col": [ + [ + "country.gross_national_product", + "country.national_income" + ], + [ + "country.gnp", + "country.national_income" + ], + [ + "country.gross_national_product", + "country.gnp" + ] + ] + }, + { + "question": "give the #mean gnp# and #total population# of nations which are considered #us territory# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "gross_national_product", + "national_income" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "mean GNP", + "country.gnp" + ], + [ + "mean GNP", + "country.gross_national_product" + ], + [ + "mean GNP", + "country.national_income" + ], + [ + "total population", + "country.population" + ], + [ + "US territory", + "country.governmentform" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.gnp" + ], + [ + 0, + "country.gross_national_product" + ], + [ + 0, + "country.national_income" + ], + [ + 1, + "country.population" + ], + [ + 2, + "country.governmentform" + ] + ], + "linking_list_col": [ + [ + "country.gross_national_product", + "country.national_income" + ], + [ + "country.gnp", + "country.national_income" + ], + [ + "country.gross_national_product", + "country.gnp" + ] + ] + }, + { + "question": "how many #unique languages# are spoken in the world?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage", + "tongue", + "dialect" + ] + }, + "linking_list": [ + [ + "unique languages", + "countrylanguage.language" + ], + [ + "unique languages", + "countrylanguage.tongue" + ], + [ + "unique languages", + "countrylanguage.dialect" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "countrylanguage.tongue" + ], + [ + 0, + "countrylanguage.dialect" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.tongue", + "countrylanguage.dialect" + ], + [ + "countrylanguage.language", + "countrylanguage.dialect" + ], + [ + "countrylanguage.tongue", + "countrylanguage.language" + ] + ] + }, + { + "question": "what is the #number of distinct languages# used around the world?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage", + "tongue", + "dialect" + ] + }, + "linking_list": [ + [ + "number of distinct languages", + "countrylanguage.language" + ], + [ + "number of distinct languages", + "countrylanguage.tongue" + ], + [ + "number of distinct languages", + "countrylanguage.dialect" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "countrylanguage.tongue" + ], + [ + 0, + "countrylanguage.dialect" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.tongue", + "countrylanguage.dialect" + ], + [ + "countrylanguage.language", + "countrylanguage.dialect" + ], + [ + "countrylanguage.tongue", + "countrylanguage.language" + ] + ] + }, + { + "question": "how many #different forms of governments# are there in africa?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "ruling_system", + "political_system" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "different forms of governments", + "country.governmentform" + ], + [ + "different forms of governments", + "country.ruling_system" + ], + [ + "different forms of governments", + "country.political_system" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.governmentform" + ], + [ + 0, + "country.ruling_system" + ], + [ + 0, + "country.political_system" + ] + ], + "linking_list_col": [ + [ + "country.ruling_system", + "country.political_system" + ], + [ + "country.governmentform", + "country.political_system" + ], + [ + "country.ruling_system", + "country.governmentform" + ] + ] + }, + { + "question": "what is the #total number of languages# used in aruba?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage", + "tongue", + "dialect" + ] + }, + "linking_list": [ + [ + "total number of languages", + "countrylanguage.language" + ], + [ + "total number of languages", + "countrylanguage.tongue" + ], + [ + "total number of languages", + "countrylanguage.dialect" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "countrylanguage.tongue" + ], + [ + 0, + "countrylanguage.dialect" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.tongue", + "countrylanguage.dialect" + ], + [ + "countrylanguage.language", + "countrylanguage.dialect" + ], + [ + "countrylanguage.tongue", + "countrylanguage.language" + ] + ] + }, + { + "question": "how many #languages# are spoken in aruba?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage", + "tongue", + "dialect" + ] + }, + "linking_list": [ + [ + "languages", + "countrylanguage.language" + ], + [ + "languages", + "countrylanguage.tongue" + ], + [ + "languages", + "countrylanguage.dialect" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "countrylanguage.tongue" + ], + [ + 0, + "countrylanguage.dialect" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.tongue", + "countrylanguage.dialect" + ], + [ + "countrylanguage.language", + "countrylanguage.dialect" + ], + [ + "countrylanguage.tongue", + "countrylanguage.language" + ] + ] + }, + { + "question": "which #continent# has the most diverse languages?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "mainland", + "continent_name" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "continent", + "country.continent" + ], + [ + "continent", + "country.mainland" + ], + [ + "continent", + "country.continent_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.continent" + ], + [ + 0, + "country.mainland" + ], + [ + 0, + "country.continent_name" + ] + ], + "linking_list_col": [ + [ + "country.mainland", + "country.continent_name" + ], + [ + "country.continent", + "country.continent_name" + ], + [ + "country.mainland", + "country.continent" + ] + ] + }, + { + "question": "which #continent# speaks the most languages?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "mainland", + "continent_name" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "continent", + "country.continent" + ], + [ + "continent", + "country.mainland" + ], + [ + "continent", + "country.continent_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.continent" + ], + [ + 0, + "country.mainland" + ], + [ + 0, + "country.continent_name" + ] + ], + "linking_list_col": [ + [ + "country.mainland", + "country.continent_name" + ], + [ + "country.continent", + "country.continent_name" + ], + [ + "country.mainland", + "country.continent" + ] + ] + }, + { + "question": "what is the number of #distinct continents# where #chinese# is spoken?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "mainland", + "continent_name" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "distinct continents", + "country.continent" + ], + [ + "distinct continents", + "country.mainland" + ], + [ + "distinct continents", + "country.continent_name" + ], + [ + "Chinese", + "countrylanguage.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.continent" + ], + [ + 0, + "country.mainland" + ], + [ + 0, + "country.continent_name" + ], + [ + 1, + "countrylanguage.language" + ] + ], + "linking_list_col": [ + [ + "country.mainland", + "country.continent_name" + ], + [ + "country.continent", + "country.continent_name" + ], + [ + "country.mainland", + "country.continent" + ] + ] + }, + { + "question": "how many #continents# speak chinese?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "mainland", + "continent_name" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "continents", + "country.continent" + ], + [ + "continents", + "country.mainland" + ], + [ + "continents", + "country.continent_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.continent" + ], + [ + 0, + "country.mainland" + ], + [ + 0, + "country.continent_name" + ] + ], + "linking_list_col": [ + [ + "country.mainland", + "country.continent_name" + ], + [ + "country.continent", + "country.continent_name" + ], + [ + "country.mainland", + "country.continent" + ] + ] + }, + { + "question": "what are the #regions# that use #english# or dutch?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "area", + "district" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "regions", + "country.region" + ], + [ + "regions", + "country.area" + ], + [ + "regions", + "country.district" + ], + [ + "English", + "countrylanguage.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.region" + ], + [ + 0, + "country.area" + ], + [ + 0, + "country.district" + ], + [ + 1, + "countrylanguage.language" + ] + ], + "linking_list_col": [ + [ + "country.area", + "country.district" + ], + [ + "country.region", + "country.district" + ], + [ + "country.area", + "country.region" + ] + ] + }, + { + "question": "which #regions# speak #dutch# or english?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "area", + "district" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "regions", + "country.region" + ], + [ + "regions", + "country.area" + ], + [ + "regions", + "country.district" + ], + [ + "Dutch", + "countrylanguage.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.region" + ], + [ + 0, + "country.area" + ], + [ + 0, + "country.district" + ], + [ + 1, + "countrylanguage.language" + ] + ], + "linking_list_col": [ + [ + "country.area", + "country.district" + ], + [ + "country.region", + "country.district" + ], + [ + "country.area", + "country.region" + ] + ] + }, + { + "question": "which #language# is the most popular on the asian continent?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage", + "tongue", + "dialect" + ] + }, + "linking_list": [ + [ + "language", + "countrylanguage.language" + ], + [ + "language", + "countrylanguage.tongue" + ], + [ + "language", + "countrylanguage.dialect" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "countrylanguage.tongue" + ], + [ + 0, + "countrylanguage.dialect" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.tongue", + "countrylanguage.dialect" + ], + [ + "countrylanguage.language", + "countrylanguage.dialect" + ], + [ + "countrylanguage.tongue", + "countrylanguage.language" + ] + ] + }, + { + "question": "what is the #language# that is used by the largest number of asian nations?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage", + "tongue", + "dialect" + ] + }, + "linking_list": [ + [ + "language", + "countrylanguage.language" + ], + [ + "language", + "countrylanguage.tongue" + ], + [ + "language", + "countrylanguage.dialect" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "countrylanguage.tongue" + ], + [ + 0, + "countrylanguage.dialect" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.tongue", + "countrylanguage.dialect" + ], + [ + "countrylanguage.language", + "countrylanguage.dialect" + ], + [ + "countrylanguage.tongue", + "countrylanguage.language" + ] + ] + }, + { + "question": "what #languages# are only used by a single country with a republic government?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage", + "tongue", + "dialect" + ] + }, + "linking_list": [ + [ + "languages", + "countrylanguage.language" + ], + [ + "languages", + "countrylanguage.tongue" + ], + [ + "languages", + "countrylanguage.dialect" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "countrylanguage.tongue" + ], + [ + 0, + "countrylanguage.dialect" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.tongue", + "countrylanguage.dialect" + ], + [ + "countrylanguage.language", + "countrylanguage.dialect" + ], + [ + "countrylanguage.tongue", + "countrylanguage.language" + ] + ] + }, + { + "question": "find the city with the largest #population# that uses english.", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population", + "total_inhabitants", + "number_of_residents" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "population", + "city.population" + ], + [ + "population", + "city.total_inhabitants" + ], + [ + "population", + "city.number_of_residents" + ] + ], + "linking_list_idx": [ + [ + 0, + "city.population" + ], + [ + 0, + "city.total_inhabitants" + ], + [ + 0, + "city.number_of_residents" + ] + ], + "linking_list_col": [ + [ + "city.total_inhabitants", + "city.number_of_residents" + ], + [ + "city.population", + "city.number_of_residents" + ], + [ + "city.total_inhabitants", + "city.population" + ] + ] + }, + { + "question": "find the #name# , #population# and #expected life length of asian country# with the largest area?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "nation", + "title" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "name", + "country.name" + ], + [ + "name", + "country.nation" + ], + [ + "name", + "country.title" + ], + [ + "population", + "country.population" + ], + [ + "expected life length of asian country", + "country.lifeexpectancy" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "country.nation" + ], + [ + 0, + "country.title" + ], + [ + 1, + "country.population" + ], + [ + 2, + "country.lifeexpectancy" + ] + ], + "linking_list_col": [ + [ + "country.nation", + "country.title" + ], + [ + "country.name", + "country.title" + ], + [ + "country.nation", + "country.name" + ] + ] + }, + { + "question": "what are the #name# , #population# , and #life expectancy# of the largest asian country by land?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "nation", + "title" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "name", + "country.name" + ], + [ + "name", + "country.nation" + ], + [ + "name", + "country.title" + ], + [ + "population", + "country.population" + ], + [ + "life expectancy", + "country.lifeexpectancy" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "country.nation" + ], + [ + 0, + "country.title" + ], + [ + 1, + "country.population" + ], + [ + 2, + "country.lifeexpectancy" + ] + ], + "linking_list_col": [ + [ + "country.nation", + "country.title" + ], + [ + "country.name", + "country.title" + ], + [ + "country.nation", + "country.name" + ] + ] + }, + { + "question": "what is #average life expectancy# in the countries where #english# is not the official language?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "life_length", + "life_span" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "average life expectancy", + "country.lifeexpectancy" + ], + [ + "average life expectancy", + "country.life_length" + ], + [ + "average life expectancy", + "country.life_span" + ], + [ + "English", + "countrylanguage.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.lifeexpectancy" + ], + [ + 0, + "country.life_length" + ], + [ + 0, + "country.life_span" + ], + [ + 1, + "countrylanguage.language" + ] + ], + "linking_list_col": [ + [ + "country.life_length", + "country.life_span" + ], + [ + "country.lifeexpectancy", + "country.life_span" + ], + [ + "country.life_length", + "country.lifeexpectancy" + ] + ] + }, + { + "question": "give the #mean life expectancy# of countries in which #english# is not the #official language# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "life_length", + "life_span" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "mean life expectancy", + "country.lifeexpectancy" + ], + [ + "mean life expectancy", + "country.life_length" + ], + [ + "mean life expectancy", + "country.life_span" + ], + [ + "English", + "countrylanguage.language" + ], + [ + "official language", + "countrylanguage.isofficial" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.lifeexpectancy" + ], + [ + 0, + "country.life_length" + ], + [ + 0, + "country.life_span" + ], + [ + 1, + "countrylanguage.language" + ], + [ + 2, + "countrylanguage.isofficial" + ] + ], + "linking_list_col": [ + [ + "country.life_length", + "country.life_span" + ], + [ + "country.lifeexpectancy", + "country.life_span" + ], + [ + "country.life_length", + "country.lifeexpectancy" + ] + ] + }, + { + "question": "what is the #total number of people# living in the nations that do not use english?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "headcount", + "citizen_count" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "total number of people", + "country.population" + ], + [ + "total number of people", + "country.headcount" + ], + [ + "total number of people", + "country.citizen_count" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.population" + ], + [ + 0, + "country.headcount" + ], + [ + 0, + "country.citizen_count" + ] + ], + "linking_list_col": [ + [ + "country.headcount", + "country.citizen_count" + ], + [ + "country.population", + "country.citizen_count" + ], + [ + "country.headcount", + "country.population" + ] + ] + }, + { + "question": "what is the #official language# spoken in the country whose #head of state# is beatrix?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage", + "tongue", + "dialect" + ] + }, + "linking_list": [ + [ + "official language", + "countrylanguage.language" + ], + [ + "official language", + "countrylanguage.tongue" + ], + [ + "official language", + "countrylanguage.dialect" + ], + [ + "head of state", + "country.headofstate" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "countrylanguage.tongue" + ], + [ + 0, + "countrylanguage.dialect" + ], + [ + 1, + "country.headofstate" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.tongue", + "countrylanguage.dialect" + ], + [ + "countrylanguage.language", + "countrylanguage.dialect" + ], + [ + "countrylanguage.tongue", + "countrylanguage.language" + ] + ] + }, + { + "question": "what is the #official language# used in the country the name of whose #head of state# is beatrix.", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage", + "tongue", + "dialect" + ] + }, + "linking_list": [ + [ + "official language", + "countrylanguage.language" + ], + [ + "official language", + "countrylanguage.tongue" + ], + [ + "official language", + "countrylanguage.dialect" + ], + [ + "head of state", + "country.headofstate" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "countrylanguage.tongue" + ], + [ + 0, + "countrylanguage.dialect" + ], + [ + 1, + "country.headofstate" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.tongue", + "countrylanguage.dialect" + ], + [ + "countrylanguage.language", + "countrylanguage.dialect" + ], + [ + "countrylanguage.tongue", + "countrylanguage.language" + ] + ] + }, + { + "question": "what are the #countries# that have greater #surface area# than any country in europe?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "nation", + "title" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "countries", + "country.name" + ], + [ + "countries", + "country.nation" + ], + [ + "countries", + "country.title" + ], + [ + "surface area", + "country.surfacearea" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "country.nation" + ], + [ + 0, + "country.title" + ], + [ + 1, + "country.surfacearea" + ] + ], + "linking_list_col": [ + [ + "country.nation", + "country.title" + ], + [ + "country.name", + "country.title" + ], + [ + "country.nation", + "country.name" + ] + ] + }, + { + "question": "which #countries# have #greater area# than that of any country in europe?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "nation", + "title" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "countries", + "country.name" + ], + [ + "countries", + "country.nation" + ], + [ + "countries", + "country.title" + ], + [ + "greater area", + "country.surfacearea" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "country.nation" + ], + [ + 0, + "country.title" + ], + [ + 1, + "country.surfacearea" + ] + ], + "linking_list_col": [ + [ + "country.nation", + "country.title" + ], + [ + "country.name", + "country.title" + ], + [ + "country.nation", + "country.name" + ] + ] + }, + { + "question": "what are the #african countries# that have a #population# less than any country in asia?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "nation", + "title" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "African countries", + "country.name" + ], + [ + "African countries", + "country.nation" + ], + [ + "African countries", + "country.title" + ], + [ + "population", + "country.population" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "country.nation" + ], + [ + 0, + "country.title" + ], + [ + 1, + "country.population" + ] + ], + "linking_list_col": [ + [ + "country.nation", + "country.title" + ], + [ + "country.name", + "country.title" + ], + [ + "country.nation", + "country.name" + ] + ] + }, + { + "question": "which #african countries# have a #smaller population# than that of any country in asia?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "nation", + "title" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "African countries", + "country.name" + ], + [ + "African countries", + "country.nation" + ], + [ + "African countries", + "country.title" + ], + [ + "smaller population", + "country.population" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "country.nation" + ], + [ + 0, + "country.title" + ], + [ + 1, + "country.population" + ] + ], + "linking_list_col": [ + [ + "country.nation", + "country.title" + ], + [ + "country.name", + "country.title" + ], + [ + "country.nation", + "country.name" + ] + ] + }, + { + "question": "which #asian countries# have a #population# that is larger than any country in africa?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "nation", + "title" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "Asian countries", + "country.name" + ], + [ + "Asian countries", + "country.nation" + ], + [ + "Asian countries", + "country.title" + ], + [ + "population", + "country.population" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "country.nation" + ], + [ + 0, + "country.title" + ], + [ + 1, + "country.population" + ] + ], + "linking_list_col": [ + [ + "country.nation", + "country.title" + ], + [ + "country.name", + "country.title" + ], + [ + "country.nation", + "country.name" + ] + ] + }, + { + "question": "what are the #asian countries# which have a #population# larger than that of any country in africa?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "nation", + "title" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "Asian countries", + "country.name" + ], + [ + "Asian countries", + "country.nation" + ], + [ + "Asian countries", + "country.title" + ], + [ + "population", + "country.population" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "country.nation" + ], + [ + 0, + "country.title" + ], + [ + 1, + "country.population" + ] + ], + "linking_list_col": [ + [ + "country.nation", + "country.title" + ], + [ + "country.name", + "country.title" + ], + [ + "country.nation", + "country.name" + ] + ] + }, + { + "question": "what are the #country codes# of countries where people use languages other than english?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage", + "nationcode", + "territorycode" + ] + }, + "linking_list": [ + [ + "country codes", + "countrylanguage.countrycode" + ], + [ + "country codes", + "countrylanguage.nationcode" + ], + [ + "country codes", + "countrylanguage.territorycode" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.countrycode" + ], + [ + 0, + "countrylanguage.nationcode" + ], + [ + 0, + "countrylanguage.territorycode" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.nationcode", + "countrylanguage.territorycode" + ], + [ + "countrylanguage.countrycode", + "countrylanguage.territorycode" + ], + [ + "countrylanguage.nationcode", + "countrylanguage.countrycode" + ] + ] + }, + { + "question": "which #cities# are in #european countries# where english is not the official language?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population", + "city_name", + "title" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "cities", + "city.name" + ], + [ + "cities", + "city.city_name" + ], + [ + "cities", + "city.title" + ], + [ + "European countries", + "country.continent" + ] + ], + "linking_list_idx": [ + [ + 0, + "city.name" + ], + [ + 0, + "city.city_name" + ], + [ + 0, + "city.title" + ], + [ + 1, + "country.continent" + ] + ], + "linking_list_col": [ + [ + "city.city_name", + "city.title" + ], + [ + "city.name", + "city.title" + ], + [ + "city.city_name", + "city.name" + ] + ] + }, + { + "question": "what are the #name# , #independence year# , and #surface area# of the country with the smallest population?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "nation", + "title" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "name", + "country.name" + ], + [ + "name", + "country.nation" + ], + [ + "name", + "country.title" + ], + [ + "independence year", + "country.indepyear" + ], + [ + "surface area", + "country.surfacearea" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "country.nation" + ], + [ + 0, + "country.title" + ], + [ + 1, + "country.indepyear" + ], + [ + 2, + "country.surfacearea" + ] + ], + "linking_list_col": [ + [ + "country.nation", + "country.title" + ], + [ + "country.name", + "country.title" + ], + [ + "country.nation", + "country.name" + ] + ] + }, + { + "question": "give the #name# , #year of independence# , and #surface area# of the country that has the lowest population.", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "nation", + "title" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "name", + "country.name" + ], + [ + "name", + "country.nation" + ], + [ + "name", + "country.title" + ], + [ + "year of independence", + "country.indepyear" + ], + [ + "surface area", + "country.surfacearea" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "country.nation" + ], + [ + 0, + "country.title" + ], + [ + 1, + "country.indepyear" + ], + [ + 2, + "country.surfacearea" + ] + ], + "linking_list_col": [ + [ + "country.nation", + "country.title" + ], + [ + "country.name", + "country.title" + ], + [ + "country.nation", + "country.name" + ] + ] + }, + { + "question": "what are the #population# , #name# and #leader# of the country with the largest area?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "nation", + "title" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "population", + "country.population" + ], + [ + "name", + "country.name" + ], + [ + "name", + "country.nation" + ], + [ + "name", + "country.title" + ], + [ + "leader", + "country.headofstate" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.population" + ], + [ + 1, + "country.name" + ], + [ + 1, + "country.nation" + ], + [ + 1, + "country.title" + ], + [ + 2, + "country.headofstate" + ] + ], + "linking_list_col": [ + [ + "country.nation", + "country.title" + ], + [ + "country.name", + "country.title" + ], + [ + "country.nation", + "country.name" + ] + ] + }, + { + "question": "give the #name# , #population# , and #head of state# for the country that has the largest area.", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "nation", + "title" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "name", + "country.name" + ], + [ + "name", + "country.nation" + ], + [ + "name", + "country.title" + ], + [ + "population", + "country.population" + ], + [ + "head of state", + "country.headofstate" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "country.nation" + ], + [ + 0, + "country.title" + ], + [ + 1, + "country.population" + ], + [ + 2, + "country.headofstate" + ] + ], + "linking_list_col": [ + [ + "country.nation", + "country.title" + ], + [ + "country.name", + "country.title" + ], + [ + "country.nation", + "country.name" + ] + ] + }, + { + "question": "return the #country name# and the #numbers of languages spoken# for each country that speaks at least 3 languages.", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "nation", + "title" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "country name", + "country.name" + ], + [ + "country name", + "country.nation" + ], + [ + "country name", + "country.title" + ], + [ + "numbers of languages spoken", + "countrylanguage.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "country.nation" + ], + [ + 0, + "country.title" + ], + [ + 1, + "countrylanguage.language" + ] + ], + "linking_list_col": [ + [ + "country.nation", + "country.title" + ], + [ + "country.name", + "country.title" + ], + [ + "country.nation", + "country.name" + ] + ] + }, + { + "question": "how many cities in each #district# have a population that is above the average population across all cities?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population", + "state", + "province" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "district", + "city.district" + ], + [ + "district", + "city.state" + ], + [ + "district", + "city.province" + ] + ], + "linking_list_idx": [ + [ + 0, + "city.district" + ], + [ + 0, + "city.state" + ], + [ + 0, + "city.province" + ] + ], + "linking_list_col": [ + [ + "city.state", + "city.province" + ], + [ + "city.district", + "city.province" + ], + [ + "city.state", + "city.district" + ] + ] + }, + { + "question": "find the #government form# name and #total population for each government form# whose #average life expectancy# is longer than 72.", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "ruling_system", + "political_system" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "government form", + "country.governmentform" + ], + [ + "government form", + "country.ruling_system" + ], + [ + "government form", + "country.political_system" + ], + [ + "total population for each government form", + "country.population" + ], + [ + "average life expectancy", + "country.lifeexpectancy" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.governmentform" + ], + [ + 0, + "country.ruling_system" + ], + [ + 0, + "country.political_system" + ], + [ + 1, + "country.population" + ], + [ + 2, + "country.lifeexpectancy" + ] + ], + "linking_list_col": [ + [ + "country.ruling_system", + "country.political_system" + ], + [ + "country.governmentform", + "country.political_system" + ], + [ + "country.ruling_system", + "country.governmentform" + ] + ] + }, + { + "question": "what are the #different continents# and the total popuation and #average life expectancy# corresponding to each, for continents that have an average life expectancy less than 72?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2", + "mainland", + "continent_name" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "different continents", + "country.continent" + ], + [ + "different continents", + "country.mainland" + ], + [ + "different continents", + "country.continent_name" + ], + [ + "average life expectancy", + "country.lifeexpectancy" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.continent" + ], + [ + 0, + "country.mainland" + ], + [ + 0, + "country.continent_name" + ], + [ + 1, + "country.lifeexpectancy" + ] + ], + "linking_list_col": [ + [ + "country.mainland", + "country.continent_name" + ], + [ + "country.continent", + "country.continent_name" + ], + [ + "country.mainland", + "country.continent" + ] + ] + }, + { + "question": "which #language# is spoken by the largest number of countries?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage", + "tongue", + "dialect" + ] + }, + "linking_list": [ + [ + "language", + "countrylanguage.language" + ], + [ + "language", + "countrylanguage.tongue" + ], + [ + "language", + "countrylanguage.dialect" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "countrylanguage.tongue" + ], + [ + 0, + "countrylanguage.dialect" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.tongue", + "countrylanguage.dialect" + ], + [ + "countrylanguage.language", + "countrylanguage.dialect" + ], + [ + "countrylanguage.tongue", + "countrylanguage.language" + ] + ] + }, + { + "question": "give the #language# that is spoken in the most countries.", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage", + "tongue", + "dialect" + ] + }, + "linking_list": [ + [ + "language", + "countrylanguage.language" + ], + [ + "language", + "countrylanguage.tongue" + ], + [ + "language", + "countrylanguage.dialect" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "countrylanguage.tongue" + ], + [ + 0, + "countrylanguage.dialect" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.tongue", + "countrylanguage.dialect" + ], + [ + "countrylanguage.language", + "countrylanguage.dialect" + ], + [ + "countrylanguage.tongue", + "countrylanguage.language" + ] + ] + }, + { + "question": "what is the #language# spoken by the largest #percentage# of people in each country?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage", + "fraction", + "proportion" + ] + }, + "linking_list": [ + [ + "language", + "countrylanguage.language" + ], + [ + "percentage", + "countrylanguage.percentage" + ], + [ + "percentage", + "countrylanguage.fraction" + ], + [ + "percentage", + "countrylanguage.proportion" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 1, + "countrylanguage.percentage" + ], + [ + 1, + "countrylanguage.fraction" + ], + [ + 1, + "countrylanguage.proportion" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.fraction", + "countrylanguage.proportion" + ], + [ + "countrylanguage.percentage", + "countrylanguage.proportion" + ], + [ + "countrylanguage.fraction", + "countrylanguage.percentage" + ] + ] + }, + { + "question": "what are the country codes of the different countries, and what are the languages spoken by the #greatest percentage# of people for each?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage", + "fraction", + "proportion" + ] + }, + "linking_list": [ + [ + "greatest percentage", + "countrylanguage.percentage" + ], + [ + "greatest percentage", + "countrylanguage.fraction" + ], + [ + "greatest percentage", + "countrylanguage.proportion" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.percentage" + ], + [ + 0, + "countrylanguage.fraction" + ], + [ + 0, + "countrylanguage.proportion" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.fraction", + "countrylanguage.proportion" + ], + [ + "countrylanguage.percentage", + "countrylanguage.proportion" + ], + [ + "countrylanguage.fraction", + "countrylanguage.percentage" + ] + ] + }, + { + "question": "what is the #total number of countries# where #spanish# is spoken by the #largest percentage# of people?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage", + "fraction", + "proportion" + ] + }, + "linking_list": [ + [ + "total number of countries", + "countrylanguage.countrycode" + ], + [ + "Spanish", + "countrylanguage.language" + ], + [ + "largest percentage", + "countrylanguage.percentage" + ], + [ + "largest percentage", + "countrylanguage.fraction" + ], + [ + "largest percentage", + "countrylanguage.proportion" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.countrycode" + ], + [ + 1, + "countrylanguage.language" + ], + [ + 2, + "countrylanguage.percentage" + ], + [ + 2, + "countrylanguage.fraction" + ], + [ + 2, + "countrylanguage.proportion" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.fraction", + "countrylanguage.proportion" + ], + [ + "countrylanguage.percentage", + "countrylanguage.proportion" + ], + [ + "countrylanguage.fraction", + "countrylanguage.percentage" + ] + ] + }, + { + "question": "what are the codes of countries where #spanish# is spoken by the #largest percentage# of people?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage", + "fraction", + "proportion" + ] + }, + "linking_list": [ + [ + "Spanish", + "countrylanguage.language" + ], + [ + "largest percentage", + "countrylanguage.percentage" + ], + [ + "largest percentage", + "countrylanguage.fraction" + ], + [ + "largest percentage", + "countrylanguage.proportion" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 1, + "countrylanguage.percentage" + ], + [ + 1, + "countrylanguage.fraction" + ], + [ + 1, + "countrylanguage.proportion" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.fraction", + "countrylanguage.proportion" + ], + [ + "countrylanguage.percentage", + "countrylanguage.proportion" + ], + [ + "countrylanguage.fraction", + "countrylanguage.percentage" + ] + ] + }, + { + "question": "return the #record companies# of orchestras, sorted descending by the years in which they were founded.", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format", + "recording_label", + "audio_company" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "record companies", + "orchestra.record_company" + ], + [ + "record companies", + "orchestra.recording_label" + ], + [ + "record companies", + "orchestra.audio_company" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.record_company" + ], + [ + 0, + "orchestra.recording_label" + ], + [ + 0, + "orchestra.audio_company" + ] + ], + "linking_list_col": [ + [ + "orchestra.recording_label", + "orchestra.audio_company" + ], + [ + "orchestra.record_company", + "orchestra.audio_company" + ], + [ + "orchestra.recording_label", + "orchestra.record_company" + ] + ] + }, + { + "question": "what is the #average attendance# of shows?", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance", + "turnout", + "number_of_audience" + ] + }, + "linking_list": [ + [ + "average attendance", + "show.attendance" + ], + [ + "average attendance", + "show.turnout" + ], + [ + "average attendance", + "show.number_of_audience" + ] + ], + "linking_list_idx": [ + [ + 0, + "show.attendance" + ], + [ + 0, + "show.turnout" + ], + [ + 0, + "show.number_of_audience" + ] + ], + "linking_list_col": [ + [ + "show.turnout", + "show.number_of_audience" + ], + [ + "show.attendance", + "show.number_of_audience" + ], + [ + "show.turnout", + "show.attendance" + ] + ] + }, + { + "question": "return the #average attendance# across all shows.", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance", + "turnout", + "number_of_audience" + ] + }, + "linking_list": [ + [ + "average attendance", + "show.attendance" + ], + [ + "average attendance", + "show.turnout" + ], + [ + "average attendance", + "show.number_of_audience" + ] + ], + "linking_list_idx": [ + [ + 0, + "show.attendance" + ], + [ + 0, + "show.turnout" + ], + [ + 0, + "show.number_of_audience" + ] + ], + "linking_list_col": [ + [ + "show.turnout", + "show.number_of_audience" + ], + [ + "show.attendance", + "show.number_of_audience" + ], + [ + "show.turnout", + "show.attendance" + ] + ] + }, + { + "question": "what are the maximum and #minimum share# of performances whose #type# is not \"live final\".", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share", + "percentage_share", + "market_share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "minimum share", + "performance.share" + ], + [ + "minimum share", + "performance.percentage_share" + ], + [ + "minimum share", + "performance.market_share" + ], + [ + "type", + "performance.type" + ] + ], + "linking_list_idx": [ + [ + 0, + "performance.share" + ], + [ + 0, + "performance.percentage_share" + ], + [ + 0, + "performance.market_share" + ], + [ + 1, + "performance.type" + ] + ], + "linking_list_col": [ + [ + "performance.percentage_share", + "performance.market_share" + ], + [ + "performance.share", + "performance.market_share" + ], + [ + "performance.percentage_share", + "performance.share" + ] + ] + }, + { + "question": "how many different #nationalities# do conductors have?", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work", + "country", + "origin" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "nationalities", + "conductor.nationality" + ], + [ + "nationalities", + "conductor.country" + ], + [ + "nationalities", + "conductor.origin" + ] + ], + "linking_list_idx": [ + [ + 0, + "conductor.nationality" + ], + [ + 0, + "conductor.country" + ], + [ + 0, + "conductor.origin" + ] + ], + "linking_list_col": [ + [ + "conductor.country", + "conductor.origin" + ], + [ + "conductor.nationality", + "conductor.origin" + ], + [ + "conductor.country", + "conductor.nationality" + ] + ] + }, + { + "question": "count the #number of different nationalities# of conductors.", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work", + "country", + "origin" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "number of different nationalities", + "conductor.nationality" + ], + [ + "number of different nationalities", + "conductor.country" + ], + [ + "number of different nationalities", + "conductor.origin" + ] + ], + "linking_list_idx": [ + [ + 0, + "conductor.nationality" + ], + [ + 0, + "conductor.country" + ], + [ + 0, + "conductor.origin" + ] + ], + "linking_list_col": [ + [ + "conductor.country", + "conductor.origin" + ], + [ + "conductor.nationality", + "conductor.origin" + ], + [ + "conductor.country", + "conductor.nationality" + ] + ] + }, + { + "question": "what is the #name# of the conductor who has worked the greatest number of years?", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work", + "full_name", + "title" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "name", + "conductor.name" + ], + [ + "name", + "conductor.full_name" + ], + [ + "name", + "conductor.title" + ] + ], + "linking_list_idx": [ + [ + 0, + "conductor.name" + ], + [ + 0, + "conductor.full_name" + ], + [ + 0, + "conductor.title" + ] + ], + "linking_list_col": [ + [ + "conductor.full_name", + "conductor.title" + ], + [ + "conductor.name", + "conductor.title" + ], + [ + "conductor.full_name", + "conductor.name" + ] + ] + }, + { + "question": "how many orchestras does each #record company# manage?", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format", + "recording_label", + "audio_company" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "Record Company", + "orchestra.record_company" + ], + [ + "Record Company", + "orchestra.recording_label" + ], + [ + "Record Company", + "orchestra.audio_company" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.record_company" + ], + [ + 0, + "orchestra.recording_label" + ], + [ + 0, + "orchestra.audio_company" + ] + ], + "linking_list_col": [ + [ + "orchestra.recording_label", + "orchestra.audio_company" + ], + [ + "orchestra.record_company", + "orchestra.audio_company" + ], + [ + "orchestra.recording_label", + "orchestra.record_company" + ] + ] + }, + { + "question": "please show the #record formats# of orchestras in ascending order of count.", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format", + "dominant_record_type", + "primary_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "record formats", + "orchestra.major_record_format" + ], + [ + "record formats", + "orchestra.dominant_record_type" + ], + [ + "record formats", + "orchestra.primary_format" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.major_record_format" + ], + [ + 0, + "orchestra.dominant_record_type" + ], + [ + 0, + "orchestra.primary_format" + ] + ], + "linking_list_col": [ + [ + "orchestra.dominant_record_type", + "orchestra.primary_format" + ], + [ + "orchestra.major_record_format", + "orchestra.primary_format" + ], + [ + "orchestra.dominant_record_type", + "orchestra.major_record_format" + ] + ] + }, + { + "question": "what are the #major record formats# of orchestras, sorted by their frequency?", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format", + "dominant_record_type", + "primary_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "major record formats", + "orchestra.major_record_format" + ], + [ + "major record formats", + "orchestra.dominant_record_type" + ], + [ + "major record formats", + "orchestra.primary_format" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.major_record_format" + ], + [ + 0, + "orchestra.dominant_record_type" + ], + [ + 0, + "orchestra.primary_format" + ] + ], + "linking_list_col": [ + [ + "orchestra.dominant_record_type", + "orchestra.primary_format" + ], + [ + "orchestra.major_record_format", + "orchestra.primary_format" + ], + [ + "orchestra.dominant_record_type", + "orchestra.major_record_format" + ] + ] + }, + { + "question": "list the #record company# shared by the most number of orchestras.", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format", + "recording_label", + "audio_company" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "record company", + "orchestra.record_company" + ], + [ + "record company", + "orchestra.recording_label" + ], + [ + "record company", + "orchestra.audio_company" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.record_company" + ], + [ + 0, + "orchestra.recording_label" + ], + [ + 0, + "orchestra.audio_company" + ] + ], + "linking_list_col": [ + [ + "orchestra.recording_label", + "orchestra.audio_company" + ], + [ + "orchestra.record_company", + "orchestra.audio_company" + ], + [ + "orchestra.recording_label", + "orchestra.record_company" + ] + ] + }, + { + "question": "what is the #record company# used by the greatest number of orchestras?", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format", + "recording_label", + "audio_company" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "record company", + "orchestra.record_company" + ], + [ + "record company", + "orchestra.recording_label" + ], + [ + "record company", + "orchestra.audio_company" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.record_company" + ], + [ + 0, + "orchestra.recording_label" + ], + [ + 0, + "orchestra.audio_company" + ] + ], + "linking_list_col": [ + [ + "orchestra.recording_label", + "orchestra.audio_company" + ], + [ + "orchestra.record_company", + "orchestra.audio_company" + ], + [ + "orchestra.recording_label", + "orchestra.record_company" + ] + ] + }, + { + "question": "what are the #orchestras# that do not have any performances?", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format", + "ensemble_name", + "band_name" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "orchestras", + "orchestra.orchestra" + ], + [ + "orchestras", + "orchestra.ensemble_name" + ], + [ + "orchestras", + "orchestra.band_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.orchestra" + ], + [ + 0, + "orchestra.ensemble_name" + ], + [ + 0, + "orchestra.band_name" + ] + ], + "linking_list_col": [ + [ + "orchestra.ensemble_name", + "orchestra.band_name" + ], + [ + "orchestra.orchestra", + "orchestra.band_name" + ], + [ + "orchestra.ensemble_name", + "orchestra.orchestra" + ] + ] + }, + { + "question": "show the #record companies# shared by orchestras #founded before 2003# and after 2003.", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format", + "recording_label", + "audio_company" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "record companies", + "orchestra.record_company" + ], + [ + "record companies", + "orchestra.recording_label" + ], + [ + "record companies", + "orchestra.audio_company" + ], + [ + "founded before 2003", + "orchestra.year_of_founded" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.record_company" + ], + [ + 0, + "orchestra.recording_label" + ], + [ + 0, + "orchestra.audio_company" + ], + [ + 1, + "orchestra.year_of_founded" + ] + ], + "linking_list_col": [ + [ + "orchestra.recording_label", + "orchestra.audio_company" + ], + [ + "orchestra.record_company", + "orchestra.audio_company" + ], + [ + "orchestra.recording_label", + "orchestra.record_company" + ] + ] + }, + { + "question": "what are the #record companies# that are used by both #orchestras founded before 2003# and those founded after 2003?", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format", + "recording_label", + "audio_company" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "record companies", + "orchestra.record_company" + ], + [ + "record companies", + "orchestra.recording_label" + ], + [ + "record companies", + "orchestra.audio_company" + ], + [ + "orchestras founded before 2003", + "orchestra.year_of_founded" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.record_company" + ], + [ + 0, + "orchestra.recording_label" + ], + [ + 0, + "orchestra.audio_company" + ], + [ + 1, + "orchestra.year_of_founded" + ] + ], + "linking_list_col": [ + [ + "orchestra.recording_label", + "orchestra.audio_company" + ], + [ + "orchestra.record_company", + "orchestra.audio_company" + ], + [ + "orchestra.recording_label", + "orchestra.record_company" + ] + ] + }, + { + "question": "show the #years# in which orchestras that have given more than one performance are founded.", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format", + "inception_year", + "established_year" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "years", + "orchestra.year_of_founded" + ], + [ + "years", + "orchestra.inception_year" + ], + [ + "years", + "orchestra.established_year" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.year_of_founded" + ], + [ + 0, + "orchestra.inception_year" + ], + [ + 0, + "orchestra.established_year" + ] + ], + "linking_list_col": [ + [ + "orchestra.inception_year", + "orchestra.established_year" + ], + [ + "orchestra.year_of_founded", + "orchestra.established_year" + ], + [ + "orchestra.inception_year", + "orchestra.year_of_founded" + ] + ] + }, + { + "question": "what are #years of founding# for orchestras that have had more than a single performance?", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format", + "inception_year", + "established_year" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ] + }, + "linking_list": [ + [ + "years of founding", + "orchestra.year_of_founded" + ], + [ + "years of founding", + "orchestra.inception_year" + ], + [ + "years of founding", + "orchestra.established_year" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.year_of_founded" + ], + [ + 0, + "orchestra.inception_year" + ], + [ + 0, + "orchestra.established_year" + ] + ], + "linking_list_col": [ + [ + "orchestra.inception_year", + "orchestra.established_year" + ], + [ + "orchestra.year_of_founded", + "orchestra.established_year" + ], + [ + "orchestra.inception_year", + "orchestra.year_of_founded" + ] + ] + }, + { + "question": "show all the #grades# of the high schoolers.", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "level", + "class_grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "grades", + "highschooler.grade" + ], + [ + "grades", + "highschooler.level" + ], + [ + "grades", + "highschooler.class_grade" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.grade" + ], + [ + 0, + "highschooler.level" + ], + [ + 0, + "highschooler.class_grade" + ] + ], + "linking_list_col": [ + [ + "highschooler.level", + "highschooler.class_grade" + ], + [ + "highschooler.grade", + "highschooler.class_grade" + ], + [ + "highschooler.level", + "highschooler.grade" + ] + ] + }, + { + "question": "what is the #grade# of each high schooler?", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "level", + "class_grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "grade", + "highschooler.grade" + ], + [ + "grade", + "highschooler.level" + ], + [ + "grade", + "highschooler.class_grade" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.grade" + ], + [ + 0, + "highschooler.level" + ], + [ + 0, + "highschooler.class_grade" + ] + ], + "linking_list_col": [ + [ + "highschooler.level", + "highschooler.class_grade" + ], + [ + "highschooler.grade", + "highschooler.class_grade" + ], + [ + "highschooler.level", + "highschooler.grade" + ] + ] + }, + { + "question": "what #grade# is kyle in?", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "level", + "class_grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "grade", + "highschooler.grade" + ], + [ + "grade", + "highschooler.level" + ], + [ + "grade", + "highschooler.class_grade" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.grade" + ], + [ + 0, + "highschooler.level" + ], + [ + 0, + "highschooler.class_grade" + ] + ], + "linking_list_col": [ + [ + "highschooler.level", + "highschooler.class_grade" + ], + [ + "highschooler.grade", + "highschooler.class_grade" + ], + [ + "highschooler.level", + "highschooler.grade" + ] + ] + }, + { + "question": "return the #grade# for the high schooler named kyle.", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "level", + "class_grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "grade", + "highschooler.grade" + ], + [ + "grade", + "highschooler.level" + ], + [ + "grade", + "highschooler.class_grade" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.grade" + ], + [ + 0, + "highschooler.level" + ], + [ + 0, + "highschooler.class_grade" + ] + ], + "linking_list_col": [ + [ + "highschooler.level", + "highschooler.class_grade" + ], + [ + "highschooler.grade", + "highschooler.class_grade" + ], + [ + "highschooler.level", + "highschooler.grade" + ] + ] + }, + { + "question": "show the #id# of the high schooler named kyle.", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "student_id", + "enrollment_id" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "ID", + "highschooler.id" + ], + [ + "ID", + "highschooler.student_id" + ], + [ + "ID", + "highschooler.enrollment_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.id" + ], + [ + 0, + "highschooler.student_id" + ], + [ + 0, + "highschooler.enrollment_id" + ] + ], + "linking_list_col": [ + [ + "highschooler.student_id", + "highschooler.enrollment_id" + ], + [ + "highschooler.id", + "highschooler.enrollment_id" + ], + [ + "highschooler.student_id", + "highschooler.id" + ] + ] + }, + { + "question": "show the #number of high schoolers for each grade# .", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "level", + "class_grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "number of high schoolers for each grade", + "highschooler.grade" + ], + [ + "number of high schoolers for each grade", + "highschooler.level" + ], + [ + "number of high schoolers for each grade", + "highschooler.class_grade" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.grade" + ], + [ + 0, + "highschooler.level" + ], + [ + 0, + "highschooler.class_grade" + ] + ], + "linking_list_col": [ + [ + "highschooler.level", + "highschooler.class_grade" + ], + [ + "highschooler.grade", + "highschooler.class_grade" + ], + [ + "highschooler.level", + "highschooler.grade" + ] + ] + }, + { + "question": "which #grade# has the most high schoolers?", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "level", + "class_grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "grade", + "highschooler.grade" + ], + [ + "grade", + "highschooler.level" + ], + [ + "grade", + "highschooler.class_grade" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.grade" + ], + [ + 0, + "highschooler.level" + ], + [ + 0, + "highschooler.class_grade" + ] + ], + "linking_list_col": [ + [ + "highschooler.level", + "highschooler.class_grade" + ], + [ + "highschooler.grade", + "highschooler.class_grade" + ], + [ + "highschooler.level", + "highschooler.grade" + ] + ] + }, + { + "question": "return the #grade# that has the greatest number of high schoolers.", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "level", + "class_grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "grade", + "highschooler.grade" + ], + [ + "grade", + "highschooler.level" + ], + [ + "grade", + "highschooler.class_grade" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.grade" + ], + [ + 0, + "highschooler.level" + ], + [ + 0, + "highschooler.class_grade" + ] + ], + "linking_list_col": [ + [ + "highschooler.level", + "highschooler.class_grade" + ], + [ + "highschooler.grade", + "highschooler.class_grade" + ], + [ + "highschooler.level", + "highschooler.grade" + ] + ] + }, + { + "question": "show me all #grades# that have at least 4 students.", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "level", + "class_grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "grades", + "highschooler.grade" + ], + [ + "grades", + "highschooler.level" + ], + [ + "grades", + "highschooler.class_grade" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.grade" + ], + [ + 0, + "highschooler.level" + ], + [ + 0, + "highschooler.class_grade" + ] + ], + "linking_list_col": [ + [ + "highschooler.level", + "highschooler.class_grade" + ], + [ + "highschooler.grade", + "highschooler.class_grade" + ], + [ + "highschooler.level", + "highschooler.grade" + ] + ] + }, + { + "question": "which #grades# have 4 or more high schoolers?", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "level", + "class_grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "grades", + "highschooler.grade" + ], + [ + "grades", + "highschooler.level" + ], + [ + "grades", + "highschooler.class_grade" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.grade" + ], + [ + 0, + "highschooler.level" + ], + [ + 0, + "highschooler.class_grade" + ] + ], + "linking_list_col": [ + [ + "highschooler.level", + "highschooler.class_grade" + ], + [ + "highschooler.grade", + "highschooler.class_grade" + ], + [ + "highschooler.level", + "highschooler.grade" + ] + ] + }, + { + "question": "what is the #name# of the high schooler who has the greatest number of friends?", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "full_name", + "given_name" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "name", + "highschooler.name" + ], + [ + "name", + "highschooler.full_name" + ], + [ + "name", + "highschooler.given_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.name" + ], + [ + 0, + "highschooler.full_name" + ], + [ + 0, + "highschooler.given_name" + ] + ], + "linking_list_col": [ + [ + "highschooler.full_name", + "highschooler.given_name" + ], + [ + "highschooler.name", + "highschooler.given_name" + ], + [ + "highschooler.full_name", + "highschooler.name" + ] + ] + }, + { + "question": "return the #name# of the high school student with the most friends.", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "full_name", + "given_name" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "name", + "highschooler.name" + ], + [ + "name", + "highschooler.full_name" + ], + [ + "name", + "highschooler.given_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.name" + ], + [ + 0, + "highschooler.full_name" + ], + [ + 0, + "highschooler.given_name" + ] + ], + "linking_list_col": [ + [ + "highschooler.full_name", + "highschooler.given_name" + ], + [ + "highschooler.name", + "highschooler.given_name" + ], + [ + "highschooler.full_name", + "highschooler.name" + ] + ] + }, + { + "question": "show #ids of all students who do not have any friends# .", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "student_id", + "enrollment_id" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "ids of all students who do not have any friends", + "highschooler.id" + ], + [ + "ids of all students who do not have any friends", + "highschooler.student_id" + ], + [ + "ids of all students who do not have any friends", + "highschooler.enrollment_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.id" + ], + [ + 0, + "highschooler.student_id" + ], + [ + 0, + "highschooler.enrollment_id" + ] + ], + "linking_list_col": [ + [ + "highschooler.student_id", + "highschooler.enrollment_id" + ], + [ + "highschooler.id", + "highschooler.enrollment_id" + ], + [ + "highschooler.student_id", + "highschooler.id" + ] + ] + }, + { + "question": "show #name# of all students who have some friends and also are liked by someone else.", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "full_name", + "given_name" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "name", + "highschooler.name" + ], + [ + "name", + "highschooler.full_name" + ], + [ + "name", + "highschooler.given_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.name" + ], + [ + 0, + "highschooler.full_name" + ], + [ + 0, + "highschooler.given_name" + ] + ], + "linking_list_col": [ + [ + "highschooler.full_name", + "highschooler.given_name" + ], + [ + "highschooler.name", + "highschooler.given_name" + ], + [ + "highschooler.full_name", + "highschooler.name" + ] + ] + }, + { + "question": "count the #number of likes for each student id# .", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id", + "liker_id", + "admirer_id" + ] + }, + "linking_list": [ + [ + "number of likes for each student id", + "likes.student_id" + ], + [ + "number of likes for each student id", + "likes.liker_id" + ], + [ + "number of likes for each student id", + "likes.admirer_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "likes.student_id" + ], + [ + 0, + "likes.liker_id" + ], + [ + 0, + "likes.admirer_id" + ] + ], + "linking_list_col": [ + [ + "likes.liker_id", + "likes.admirer_id" + ], + [ + "likes.student_id", + "likes.admirer_id" + ], + [ + "likes.liker_id", + "likes.student_id" + ] + ] + }, + { + "question": "what is the #name# of the high schooler who has the greatest number of likes?", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "full_name", + "given_name" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "name", + "highschooler.name" + ], + [ + "name", + "highschooler.full_name" + ], + [ + "name", + "highschooler.given_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.name" + ], + [ + 0, + "highschooler.full_name" + ], + [ + 0, + "highschooler.given_name" + ] + ], + "linking_list_col": [ + [ + "highschooler.full_name", + "highschooler.given_name" + ], + [ + "highschooler.name", + "highschooler.given_name" + ], + [ + "highschooler.full_name", + "highschooler.name" + ] + ] + }, + { + "question": "find the #average grade# of all students who have some friends.", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "level", + "class_grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "average grade", + "highschooler.grade" + ], + [ + "average grade", + "highschooler.level" + ], + [ + "average grade", + "highschooler.class_grade" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.grade" + ], + [ + 0, + "highschooler.level" + ], + [ + 0, + "highschooler.class_grade" + ] + ], + "linking_list_col": [ + [ + "highschooler.level", + "highschooler.class_grade" + ], + [ + "highschooler.grade", + "highschooler.class_grade" + ], + [ + "highschooler.level", + "highschooler.grade" + ] + ] + }, + { + "question": "find the #minimum grade of students who have no friends# .", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "level", + "class_grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "minimum grade of students who have no friends", + "highschooler.grade" + ], + [ + "minimum grade of students who have no friends", + "highschooler.level" + ], + [ + "minimum grade of students who have no friends", + "highschooler.class_grade" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.grade" + ], + [ + 0, + "highschooler.level" + ], + [ + 0, + "highschooler.class_grade" + ] + ], + "linking_list_col": [ + [ + "highschooler.level", + "highschooler.class_grade" + ], + [ + "highschooler.grade", + "highschooler.class_grade" + ], + [ + "highschooler.level", + "highschooler.grade" + ] + ] + }, + { + "question": "what is the #lowest grade# of students who do not have any friends?", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade", + "level", + "class_grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "lowest grade", + "highschooler.grade" + ], + [ + "lowest grade", + "highschooler.level" + ], + [ + "lowest grade", + "highschooler.class_grade" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.grade" + ], + [ + 0, + "highschooler.level" + ], + [ + 0, + "highschooler.class_grade" + ] + ], + "linking_list_col": [ + [ + "highschooler.level", + "highschooler.class_grade" + ], + [ + "highschooler.grade", + "highschooler.class_grade" + ], + [ + "highschooler.level", + "highschooler.grade" + ] + ] + }, + { + "question": "which #states# have both owners and #professionals# living there?", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number", + "province", + "region" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "states", + "owners.state" + ], + [ + "states", + "owners.province" + ], + [ + "states", + "owners.region" + ], + [ + "professionals", + "professionals.state" + ] + ], + "linking_list_idx": [ + [ + 0, + "owners.state" + ], + [ + 0, + "owners.province" + ], + [ + 0, + "owners.region" + ], + [ + 1, + "professionals.state" + ] + ], + "linking_list_col": [ + [ + "owners.province", + "owners.region" + ], + [ + "owners.state", + "owners.region" + ], + [ + "owners.province", + "owners.state" + ] + ] + }, + { + "question": "find the #average age of the dogs who went through treatments# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed", + "years_old", + "lifespan" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "average age of the dogs who went through treatments", + "dogs.age" + ], + [ + "average age of the dogs who went through treatments", + "dogs.years_old" + ], + [ + "average age of the dogs who went through treatments", + "dogs.lifespan" + ] + ], + "linking_list_idx": [ + [ + 0, + "dogs.age" + ], + [ + 0, + "dogs.years_old" + ], + [ + 0, + "dogs.lifespan" + ] + ], + "linking_list_col": [ + [ + "dogs.years_old", + "dogs.lifespan" + ], + [ + "dogs.age", + "dogs.lifespan" + ], + [ + "dogs.years_old", + "dogs.age" + ] + ] + }, + { + "question": "which professionals live in the #state# of indiana or have done treatment on more than 2 treatments? list his or her id, #last name# and #cell phone# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number", + "mobile_number", + "phone_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "state", + "professionals.state" + ], + [ + "last name", + "professionals.last_name" + ], + [ + "cell phone", + "professionals.cell_number" + ], + [ + "cell phone", + "professionals.mobile_number" + ], + [ + "cell phone", + "professionals.phone_number" + ] + ], + "linking_list_idx": [ + [ + 0, + "professionals.state" + ], + [ + 1, + "professionals.last_name" + ], + [ + 2, + "professionals.cell_number" + ], + [ + 2, + "professionals.mobile_number" + ], + [ + 2, + "professionals.phone_number" + ] + ], + "linking_list_col": [ + [ + "professionals.mobile_number", + "professionals.phone_number" + ], + [ + "professionals.cell_number", + "professionals.phone_number" + ], + [ + "professionals.mobile_number", + "professionals.cell_number" + ] + ] + }, + { + "question": "find the id, #last name# and #cell phone# of the professionals who live in the #state# of indiana or have performed more than two #treatments# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number", + "mobile_number", + "phone_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "last name", + "professionals.last_name" + ], + [ + "cell phone", + "professionals.cell_number" + ], + [ + "cell phone", + "professionals.mobile_number" + ], + [ + "cell phone", + "professionals.phone_number" + ], + [ + "state", + "professionals.state" + ], + [ + "treatments", + "treatments.professional_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "professionals.last_name" + ], + [ + 1, + "professionals.cell_number" + ], + [ + 1, + "professionals.mobile_number" + ], + [ + 1, + "professionals.phone_number" + ], + [ + 2, + "professionals.state" + ], + [ + 3, + "treatments.professional_id" + ] + ], + "linking_list_col": [ + [ + "professionals.mobile_number", + "professionals.phone_number" + ], + [ + "professionals.cell_number", + "professionals.phone_number" + ], + [ + "professionals.mobile_number", + "professionals.cell_number" + ] + ] + }, + { + "question": "which #first names# are used for professionals or #owners# but are not used as dog names?", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number", + "forename", + "given_name" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "first names", + "professionals.first_name" + ], + [ + "first names", + "professionals.forename" + ], + [ + "first names", + "professionals.given_name" + ], + [ + "owners", + "owners.first_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "professionals.first_name" + ], + [ + 0, + "professionals.forename" + ], + [ + 0, + "professionals.given_name" + ], + [ + 1, + "owners.first_name" + ] + ], + "linking_list_col": [ + [ + "professionals.forename", + "professionals.given_name" + ], + [ + "professionals.first_name", + "professionals.given_name" + ], + [ + "professionals.forename", + "professionals.first_name" + ] + ] + }, + { + "question": "which professional did not operate any treatment on dogs? list the professional's id, #role# and #email# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number", + "e-mail", + "electronic_address" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "role", + "professionals.role_code" + ], + [ + "email", + "professionals.email_address" + ], + [ + "email", + "professionals.e-mail" + ], + [ + "email", + "professionals.electronic_address" + ] + ], + "linking_list_idx": [ + [ + 0, + "professionals.role_code" + ], + [ + 1, + "professionals.email_address" + ], + [ + 1, + "professionals.e-mail" + ], + [ + 1, + "professionals.electronic_address" + ] + ], + "linking_list_col": [ + [ + "professionals.e-mail", + "professionals.electronic_address" + ], + [ + "professionals.email_address", + "professionals.electronic_address" + ], + [ + "professionals.e-mail", + "professionals.email_address" + ] + ] + }, + { + "question": "give me the id, #role# and #email# of the professionals who did not perform any treatment on dogs.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number", + "e-mail", + "electronic_address" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "role", + "professionals.role_code" + ], + [ + "email", + "professionals.email_address" + ], + [ + "email", + "professionals.e-mail" + ], + [ + "email", + "professionals.electronic_address" + ] + ], + "linking_list_idx": [ + [ + 0, + "professionals.role_code" + ], + [ + 1, + "professionals.email_address" + ], + [ + 1, + "professionals.e-mail" + ], + [ + 1, + "professionals.electronic_address" + ] + ], + "linking_list_col": [ + [ + "professionals.e-mail", + "professionals.electronic_address" + ], + [ + "professionals.email_address", + "professionals.electronic_address" + ], + [ + "professionals.e-mail", + "professionals.email_address" + ] + ] + }, + { + "question": "which professionals have done at least two treatments? list the professional's id, #role# , and #first name# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number", + "forename", + "given_name" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "role", + "professionals.role_code" + ], + [ + "first name", + "professionals.first_name" + ], + [ + "first name", + "professionals.forename" + ], + [ + "first name", + "professionals.given_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "professionals.role_code" + ], + [ + 1, + "professionals.first_name" + ], + [ + 1, + "professionals.forename" + ], + [ + 1, + "professionals.given_name" + ] + ], + "linking_list_col": [ + [ + "professionals.forename", + "professionals.given_name" + ], + [ + "professionals.first_name", + "professionals.given_name" + ], + [ + "professionals.forename", + "professionals.first_name" + ] + ] + }, + { + "question": "what are the id, #role# , and #first name# of the professionals who have performed two or more treatments?", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number", + "forename", + "given_name" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "role", + "professionals.role_code" + ], + [ + "first name", + "professionals.first_name" + ], + [ + "first name", + "professionals.forename" + ], + [ + "first name", + "professionals.given_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "professionals.role_code" + ], + [ + 1, + "professionals.first_name" + ], + [ + 1, + "professionals.forename" + ], + [ + 1, + "professionals.given_name" + ] + ], + "linking_list_col": [ + [ + "professionals.forename", + "professionals.given_name" + ], + [ + "professionals.first_name", + "professionals.given_name" + ], + [ + "professionals.forename", + "professionals.first_name" + ] + ] + }, + { + "question": "which breed do the most dogs have? give me the #breed name# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name", + "name", + "title" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "breed name", + "breeds.breed_name" + ], + [ + "breed name", + "breeds.name" + ], + [ + "breed name", + "breeds.title" + ] + ], + "linking_list_idx": [ + [ + 0, + "breeds.breed_name" + ], + [ + 0, + "breeds.name" + ], + [ + 0, + "breeds.title" + ] + ], + "linking_list_col": [ + [ + "breeds.name", + "breeds.title" + ], + [ + "breeds.breed_name", + "breeds.title" + ], + [ + "breeds.name", + "breeds.breed_name" + ] + ] + }, + { + "question": "which owner has paid for the most treatments on his or her dogs? list the #owner id# and #last name# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number", + "person_id", + "client_id" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "owner id", + "owners.owner_id" + ], + [ + "owner id", + "owners.person_id" + ], + [ + "owner id", + "owners.client_id" + ], + [ + "last name", + "owners.last_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "owners.owner_id" + ], + [ + 0, + "owners.person_id" + ], + [ + 0, + "owners.client_id" + ], + [ + 1, + "owners.last_name" + ] + ], + "linking_list_col": [ + [ + "owners.person_id", + "owners.client_id" + ], + [ + "owners.owner_id", + "owners.client_id" + ], + [ + "owners.person_id", + "owners.owner_id" + ] + ] + }, + { + "question": "tell me the #owner id# and #last name# of the owner who spent the most on treatments of his or her dogs.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number", + "person_id", + "client_id" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "owner id", + "owners.owner_id" + ], + [ + "owner id", + "owners.person_id" + ], + [ + "owner id", + "owners.client_id" + ], + [ + "last name", + "owners.last_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "owners.owner_id" + ], + [ + 0, + "owners.person_id" + ], + [ + 0, + "owners.client_id" + ], + [ + 1, + "owners.last_name" + ] + ], + "linking_list_col": [ + [ + "owners.person_id", + "owners.client_id" + ], + [ + "owners.owner_id", + "owners.client_id" + ], + [ + "owners.person_id", + "owners.owner_id" + ] + ] + }, + { + "question": "which owner has paid the largest amount of money in total for their dogs? show the #owner id# and #zip code# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number", + "person_id", + "client_id" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "owner id", + "owners.owner_id" + ], + [ + "owner id", + "owners.person_id" + ], + [ + "owner id", + "owners.client_id" + ], + [ + "zip code", + "owners.zip_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "owners.owner_id" + ], + [ + 0, + "owners.person_id" + ], + [ + 0, + "owners.client_id" + ], + [ + 1, + "owners.zip_code" + ] + ], + "linking_list_col": [ + [ + "owners.person_id", + "owners.client_id" + ], + [ + "owners.owner_id", + "owners.client_id" + ], + [ + "owners.person_id", + "owners.owner_id" + ] + ] + }, + { + "question": "find the #owner id# and #zip code# of the owner who spent the most money in total for his or her dogs.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number", + "person_id", + "client_id" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "owner id", + "owners.owner_id" + ], + [ + "owner id", + "owners.person_id" + ], + [ + "owner id", + "owners.client_id" + ], + [ + "zip code", + "owners.zip_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "owners.owner_id" + ], + [ + 0, + "owners.person_id" + ], + [ + 0, + "owners.client_id" + ], + [ + 1, + "owners.zip_code" + ] + ], + "linking_list_col": [ + [ + "owners.person_id", + "owners.client_id" + ], + [ + "owners.owner_id", + "owners.client_id" + ], + [ + "owners.person_id", + "owners.owner_id" + ] + ] + }, + { + "question": "which professionals have done at least two types of treatments? list the #professional id# and #cell phone# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number", + "mobile_number", + "phone_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "professional id", + "professionals.professional_id" + ], + [ + "cell phone", + "professionals.cell_number" + ], + [ + "cell phone", + "professionals.mobile_number" + ], + [ + "cell phone", + "professionals.phone_number" + ] + ], + "linking_list_idx": [ + [ + 0, + "professionals.professional_id" + ], + [ + 1, + "professionals.cell_number" + ], + [ + 1, + "professionals.mobile_number" + ], + [ + 1, + "professionals.phone_number" + ] + ], + "linking_list_col": [ + [ + "professionals.mobile_number", + "professionals.phone_number" + ], + [ + "professionals.cell_number", + "professionals.phone_number" + ], + [ + "professionals.mobile_number", + "professionals.cell_number" + ] + ] + }, + { + "question": "find the id and #cell phone# of the professionals who operate two or more types of treatments.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number", + "mobile_number", + "phone_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "cell phone", + "professionals.cell_number" + ], + [ + "cell phone", + "professionals.mobile_number" + ], + [ + "cell phone", + "professionals.phone_number" + ] + ], + "linking_list_idx": [ + [ + 0, + "professionals.cell_number" + ], + [ + 0, + "professionals.mobile_number" + ], + [ + 0, + "professionals.phone_number" + ] + ], + "linking_list_col": [ + [ + "professionals.mobile_number", + "professionals.phone_number" + ], + [ + "professionals.cell_number", + "professionals.phone_number" + ], + [ + "professionals.mobile_number", + "professionals.cell_number" + ] + ] + }, + { + "question": "what are the #first name# and #last name# of the professionals who have done treatment with #cost# below average?", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number", + "forename", + "given_name" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "first name", + "professionals.first_name" + ], + [ + "first name", + "professionals.forename" + ], + [ + "first name", + "professionals.given_name" + ], + [ + "last name", + "professionals.last_name" + ], + [ + "cost", + "treatments.cost_of_treatment" + ] + ], + "linking_list_idx": [ + [ + 0, + "professionals.first_name" + ], + [ + 0, + "professionals.forename" + ], + [ + 0, + "professionals.given_name" + ], + [ + 1, + "professionals.last_name" + ], + [ + 2, + "treatments.cost_of_treatment" + ] + ], + "linking_list_col": [ + [ + "professionals.forename", + "professionals.given_name" + ], + [ + "professionals.first_name", + "professionals.given_name" + ], + [ + "professionals.forename", + "professionals.first_name" + ] + ] + }, + { + "question": "what are the #date# and the #operating professional's first name# of each treatment?", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number", + "forename", + "given_name" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "date", + "treatments.date_of_treatment" + ], + [ + "operating professional's first name", + "professionals.first_name" + ], + [ + "operating professional's first name", + "professionals.forename" + ], + [ + "operating professional's first name", + "professionals.given_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "treatments.date_of_treatment" + ], + [ + 1, + "professionals.first_name" + ], + [ + 1, + "professionals.forename" + ], + [ + 1, + "professionals.given_name" + ] + ], + "linking_list_col": [ + [ + "professionals.forename", + "professionals.given_name" + ], + [ + "professionals.first_name", + "professionals.given_name" + ], + [ + "professionals.forename", + "professionals.first_name" + ] + ] + }, + { + "question": "list the cost of each treatment and the corresponding #treatment type description# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description", + "treatment_description", + "type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "treatment type description", + "treatment_types.treatment_type_description" + ], + [ + "treatment type description", + "treatment_types.treatment_description" + ], + [ + "treatment type description", + "treatment_types.type_description" + ] + ], + "linking_list_idx": [ + [ + 0, + "treatment_types.treatment_type_description" + ], + [ + 0, + "treatment_types.treatment_description" + ], + [ + 0, + "treatment_types.type_description" + ] + ], + "linking_list_col": [ + [ + "treatment_types.treatment_description", + "treatment_types.type_description" + ], + [ + "treatment_types.treatment_type_description", + "treatment_types.type_description" + ], + [ + "treatment_types.treatment_description", + "treatment_types.treatment_type_description" + ] + ] + }, + { + "question": "what are the #cost# and #treatment type description# of each treatment?", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description", + "treatment_description", + "type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "cost", + "treatments.cost_of_treatment" + ], + [ + "treatment type description", + "treatment_types.treatment_type_description" + ], + [ + "treatment type description", + "treatment_types.treatment_description" + ], + [ + "treatment type description", + "treatment_types.type_description" + ] + ], + "linking_list_idx": [ + [ + 0, + "treatments.cost_of_treatment" + ], + [ + 1, + "treatment_types.treatment_type_description" + ], + [ + 1, + "treatment_types.treatment_description" + ], + [ + 1, + "treatment_types.type_description" + ] + ], + "linking_list_col": [ + [ + "treatment_types.treatment_description", + "treatment_types.type_description" + ], + [ + "treatment_types.treatment_type_description", + "treatment_types.type_description" + ], + [ + "treatment_types.treatment_description", + "treatment_types.treatment_type_description" + ] + ] + }, + { + "question": "list each #owner's first name# , last name, and the size of his for her dog.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number", + "given_name", + "forename" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "owner's first name", + "owners.first_name" + ], + [ + "owner's first name", + "owners.given_name" + ], + [ + "owner's first name", + "owners.forename" + ] + ], + "linking_list_idx": [ + [ + 0, + "owners.first_name" + ], + [ + 0, + "owners.given_name" + ], + [ + 0, + "owners.forename" + ] + ], + "linking_list_col": [ + [ + "owners.given_name", + "owners.forename" + ], + [ + "owners.first_name", + "owners.forename" + ], + [ + "owners.given_name", + "owners.first_name" + ] + ] + }, + { + "question": "what are each #owner's first name# , last name, and the size of their dog?", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number", + "given_name", + "forename" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "owner's first name", + "owners.first_name" + ], + [ + "owner's first name", + "owners.given_name" + ], + [ + "owner's first name", + "owners.forename" + ] + ], + "linking_list_idx": [ + [ + 0, + "owners.first_name" + ], + [ + 0, + "owners.given_name" + ], + [ + 0, + "owners.forename" + ] + ], + "linking_list_col": [ + [ + "owners.given_name", + "owners.forename" + ], + [ + "owners.first_name", + "owners.forename" + ], + [ + "owners.given_name", + "owners.first_name" + ] + ] + }, + { + "question": "list pairs of the #owner's first name# and the dogs's name.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number", + "given_name", + "forename" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "owner's first name", + "owners.first_name" + ], + [ + "owner's first name", + "owners.given_name" + ], + [ + "owner's first name", + "owners.forename" + ] + ], + "linking_list_idx": [ + [ + 0, + "owners.first_name" + ], + [ + 0, + "owners.given_name" + ], + [ + 0, + "owners.forename" + ] + ], + "linking_list_col": [ + [ + "owners.given_name", + "owners.forename" + ], + [ + "owners.first_name", + "owners.forename" + ], + [ + "owners.given_name", + "owners.first_name" + ] + ] + }, + { + "question": "what are each #owner's first name# and their dogs's name?", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number", + "given_name", + "forename" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "owner's first name", + "owners.first_name" + ], + [ + "owner's first name", + "owners.given_name" + ], + [ + "owner's first name", + "owners.forename" + ] + ], + "linking_list_idx": [ + [ + 0, + "owners.first_name" + ], + [ + 0, + "owners.given_name" + ], + [ + 0, + "owners.forename" + ] + ], + "linking_list_col": [ + [ + "owners.given_name", + "owners.forename" + ], + [ + "owners.first_name", + "owners.forename" + ], + [ + "owners.given_name", + "owners.first_name" + ] + ] + }, + { + "question": "list the names of the dogs of the rarest breed and the #treatment dates# of them.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment", + "treatment_date", + "healing_date" + ] + }, + "linking_list": [ + [ + "treatment dates", + "treatments.date_of_treatment" + ], + [ + "treatment dates", + "treatments.treatment_date" + ], + [ + "treatment dates", + "treatments.healing_date" + ] + ], + "linking_list_idx": [ + [ + 0, + "treatments.date_of_treatment" + ], + [ + 0, + "treatments.treatment_date" + ], + [ + 0, + "treatments.healing_date" + ] + ], + "linking_list_col": [ + [ + "treatments.treatment_date", + "treatments.healing_date" + ], + [ + "treatments.date_of_treatment", + "treatments.healing_date" + ], + [ + "treatments.treatment_date", + "treatments.date_of_treatment" + ] + ] + }, + { + "question": "which dogs are owned by someone who lives in virginia? list the #owner's first name# and the #dog's name# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number", + "given_name", + "forename" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "owner's first name", + "owners.first_name" + ], + [ + "owner's first name", + "owners.given_name" + ], + [ + "owner's first name", + "owners.forename" + ], + [ + "dog's name", + "dogs.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "owners.first_name" + ], + [ + 0, + "owners.given_name" + ], + [ + 0, + "owners.forename" + ], + [ + 1, + "dogs.name" + ] + ], + "linking_list_col": [ + [ + "owners.given_name", + "owners.forename" + ], + [ + "owners.first_name", + "owners.forename" + ], + [ + "owners.given_name", + "owners.first_name" + ] + ] + }, + { + "question": "what are the #arriving date# and the #departing date# of the dogs who have gone through a treatment?", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed", + "exit_date", + "departure_date" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "arriving date", + "dogs.date_arrived" + ], + [ + "departing date", + "dogs.date_departed" + ], + [ + "departing date", + "dogs.exit_date" + ], + [ + "departing date", + "dogs.departure_date" + ] + ], + "linking_list_idx": [ + [ + 0, + "dogs.date_arrived" + ], + [ + 1, + "dogs.date_departed" + ], + [ + 1, + "dogs.exit_date" + ], + [ + 1, + "dogs.departure_date" + ] + ], + "linking_list_col": [ + [ + "dogs.exit_date", + "dogs.departure_date" + ], + [ + "dogs.date_departed", + "dogs.departure_date" + ], + [ + "dogs.exit_date", + "dogs.date_departed" + ] + ] + }, + { + "question": "find the #arriving date# and the #departing date# of the dogs that received a treatment.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed", + "exit_date", + "departure_date" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "arriving date", + "dogs.date_arrived" + ], + [ + "departing date", + "dogs.date_departed" + ], + [ + "departing date", + "dogs.exit_date" + ], + [ + "departing date", + "dogs.departure_date" + ] + ], + "linking_list_idx": [ + [ + 0, + "dogs.date_arrived" + ], + [ + 1, + "dogs.date_departed" + ], + [ + 1, + "dogs.exit_date" + ], + [ + 1, + "dogs.departure_date" + ] + ], + "linking_list_col": [ + [ + "dogs.exit_date", + "dogs.departure_date" + ], + [ + "dogs.date_departed", + "dogs.departure_date" + ], + [ + "dogs.exit_date", + "dogs.date_departed" + ] + ] + }, + { + "question": "list the #last name# of the owner owning the #youngest dog# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number", + "surname", + "family_name" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "last name", + "owners.last_name" + ], + [ + "last name", + "owners.surname" + ], + [ + "last name", + "owners.family_name" + ], + [ + "youngest dog", + "dogs.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "owners.last_name" + ], + [ + 0, + "owners.surname" + ], + [ + 0, + "owners.family_name" + ], + [ + 1, + "dogs.age" + ] + ], + "linking_list_col": [ + [ + "owners.surname", + "owners.family_name" + ], + [ + "owners.last_name", + "owners.family_name" + ], + [ + "owners.surname", + "owners.last_name" + ] + ] + }, + { + "question": "who owns the youngest dog? give me his or her #last name# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number", + "surname", + "family_name" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "last name", + "owners.last_name" + ], + [ + "last name", + "owners.surname" + ], + [ + "last name", + "owners.family_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "owners.last_name" + ], + [ + 0, + "owners.surname" + ], + [ + 0, + "owners.family_name" + ] + ], + "linking_list_col": [ + [ + "owners.surname", + "owners.family_name" + ], + [ + "owners.last_name", + "owners.family_name" + ], + [ + "owners.surname", + "owners.last_name" + ] + ] + }, + { + "question": "what are the #arriving date# and the #departing date# of all the dogs?", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed", + "exit_date", + "departure_date" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "arriving date", + "dogs.date_arrived" + ], + [ + "departing date", + "dogs.date_departed" + ], + [ + "departing date", + "dogs.exit_date" + ], + [ + "departing date", + "dogs.departure_date" + ] + ], + "linking_list_idx": [ + [ + 0, + "dogs.date_arrived" + ], + [ + 1, + "dogs.date_departed" + ], + [ + 1, + "dogs.exit_date" + ], + [ + 1, + "dogs.departure_date" + ] + ], + "linking_list_col": [ + [ + "dogs.exit_date", + "dogs.departure_date" + ], + [ + "dogs.date_departed", + "dogs.departure_date" + ], + [ + "dogs.exit_date", + "dogs.date_departed" + ] + ] + }, + { + "question": "list the #arrival date# and the #departure date# for all the dogs.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed", + "exit_date", + "departure_date" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "arrival date", + "dogs.date_arrived" + ], + [ + "departure date", + "dogs.date_departed" + ], + [ + "departure date", + "dogs.exit_date" + ], + [ + "departure date", + "dogs.departure_date" + ] + ], + "linking_list_idx": [ + [ + 0, + "dogs.date_arrived" + ], + [ + 1, + "dogs.date_departed" + ], + [ + 1, + "dogs.exit_date" + ], + [ + 1, + "dogs.departure_date" + ] + ], + "linking_list_col": [ + [ + "dogs.exit_date", + "dogs.departure_date" + ], + [ + "dogs.date_departed", + "dogs.departure_date" + ], + [ + "dogs.exit_date", + "dogs.date_departed" + ] + ] + }, + { + "question": "how many #dogs# went through any treatments?", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment", + "canine_id", + "puppy_id" + ] + }, + "linking_list": [ + [ + "dogs", + "treatments.dog_id" + ], + [ + "dogs", + "treatments.canine_id" + ], + [ + "dogs", + "treatments.puppy_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "treatments.dog_id" + ], + [ + 0, + "treatments.canine_id" + ], + [ + 0, + "treatments.puppy_id" + ] + ], + "linking_list_col": [ + [ + "treatments.canine_id", + "treatments.puppy_id" + ], + [ + "treatments.dog_id", + "treatments.puppy_id" + ], + [ + "treatments.canine_id", + "treatments.dog_id" + ] + ] + }, + { + "question": "count the #number of dogs# that went through a treatment.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment", + "canine_id", + "puppy_id" + ] + }, + "linking_list": [ + [ + "number of dogs", + "treatments.dog_id" + ], + [ + "number of dogs", + "treatments.canine_id" + ], + [ + "number of dogs", + "treatments.puppy_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "treatments.dog_id" + ], + [ + 0, + "treatments.canine_id" + ], + [ + 0, + "treatments.puppy_id" + ] + ], + "linking_list_col": [ + [ + "treatments.canine_id", + "treatments.puppy_id" + ], + [ + "treatments.dog_id", + "treatments.puppy_id" + ], + [ + "treatments.canine_id", + "treatments.dog_id" + ] + ] + }, + { + "question": "how many #professionals# have performed any treatment to dogs?", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment", + "vet_id", + "doctor_id" + ] + }, + "linking_list": [ + [ + "professionals", + "treatments.professional_id" + ], + [ + "professionals", + "treatments.vet_id" + ], + [ + "professionals", + "treatments.doctor_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "treatments.professional_id" + ], + [ + 0, + "treatments.vet_id" + ], + [ + 0, + "treatments.doctor_id" + ] + ], + "linking_list_col": [ + [ + "treatments.vet_id", + "treatments.doctor_id" + ], + [ + "treatments.professional_id", + "treatments.doctor_id" + ], + [ + "treatments.vet_id", + "treatments.professional_id" + ] + ] + }, + { + "question": "find the #number of professionals# who have ever treated dogs.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment", + "vet_id", + "doctor_id" + ] + }, + "linking_list": [ + [ + "number of professionals", + "treatments.professional_id" + ], + [ + "number of professionals", + "treatments.vet_id" + ], + [ + "number of professionals", + "treatments.doctor_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "treatments.professional_id" + ], + [ + 0, + "treatments.vet_id" + ], + [ + 0, + "treatments.doctor_id" + ] + ], + "linking_list_col": [ + [ + "treatments.vet_id", + "treatments.doctor_id" + ], + [ + "treatments.professional_id", + "treatments.doctor_id" + ], + [ + "treatments.vet_id", + "treatments.professional_id" + ] + ] + }, + { + "question": "which professionals live in a #city# containing the substring 'west'? list his or her #role# , #street# , city and #state# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number", + "province", + "territory" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "city", + "professionals.city" + ], + [ + "role", + "professionals.role_code" + ], + [ + "street", + "professionals.street" + ], + [ + "state", + "professionals.state" + ], + [ + "state", + "professionals.province" + ], + [ + "state", + "professionals.territory" + ] + ], + "linking_list_idx": [ + [ + 0, + "professionals.city" + ], + [ + 1, + "professionals.role_code" + ], + [ + 2, + "professionals.street" + ], + [ + 3, + "professionals.state" + ], + [ + 3, + "professionals.province" + ], + [ + 3, + "professionals.territory" + ] + ], + "linking_list_col": [ + [ + "professionals.province", + "professionals.territory" + ], + [ + "professionals.state", + "professionals.territory" + ], + [ + "professionals.province", + "professionals.state" + ] + ] + }, + { + "question": "find the #role# , #street# , #city# and #state# of the professionals living in a city that contains the substring 'west'.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number", + "province", + "territory" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "role", + "professionals.role_code" + ], + [ + "street", + "professionals.street" + ], + [ + "city", + "professionals.city" + ], + [ + "state", + "professionals.state" + ], + [ + "state", + "professionals.province" + ], + [ + "state", + "professionals.territory" + ] + ], + "linking_list_idx": [ + [ + 0, + "professionals.role_code" + ], + [ + 1, + "professionals.street" + ], + [ + 2, + "professionals.city" + ], + [ + 3, + "professionals.state" + ], + [ + 3, + "professionals.province" + ], + [ + 3, + "professionals.territory" + ] + ], + "linking_list_col": [ + [ + "professionals.province", + "professionals.territory" + ], + [ + "professionals.state", + "professionals.territory" + ], + [ + "professionals.province", + "professionals.state" + ] + ] + }, + { + "question": "which owners live in the state whose name contains the substring 'north'? list his #first name# , #last name# and #email# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number", + "email", + "electronic_mail" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "first name", + "owners.first_name" + ], + [ + "last name", + "owners.last_name" + ], + [ + "email", + "owners.email_address" + ], + [ + "email", + "owners.email" + ], + [ + "email", + "owners.electronic_mail" + ] + ], + "linking_list_idx": [ + [ + 0, + "owners.first_name" + ], + [ + 1, + "owners.last_name" + ], + [ + 2, + "owners.email_address" + ], + [ + 2, + "owners.email" + ], + [ + 2, + "owners.electronic_mail" + ] + ], + "linking_list_col": [ + [ + "owners.email", + "owners.electronic_mail" + ], + [ + "owners.email_address", + "owners.electronic_mail" + ], + [ + "owners.email", + "owners.email_address" + ] + ] + }, + { + "question": "return the #first name# , #last name# and #email# of the owners living in a state whose name contains the substring 'north'.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number", + "email", + "electronic_mail" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "first name", + "owners.first_name" + ], + [ + "last name", + "owners.last_name" + ], + [ + "email", + "owners.email_address" + ], + [ + "email", + "owners.email" + ], + [ + "email", + "owners.electronic_mail" + ] + ], + "linking_list_idx": [ + [ + 0, + "owners.first_name" + ], + [ + 1, + "owners.last_name" + ], + [ + 2, + "owners.email_address" + ], + [ + 2, + "owners.email" + ], + [ + 2, + "owners.electronic_mail" + ] + ], + "linking_list_col": [ + [ + "owners.email", + "owners.electronic_mail" + ], + [ + "owners.email_address", + "owners.electronic_mail" + ], + [ + "owners.email", + "owners.email_address" + ] + ] + }, + { + "question": "list the #dog name# , #age# and #weight# of the dogs who have been abandoned? 1 stands for yes, and 0 stands for no.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed", + "mass", + "heaviness" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "dog name", + "dogs.name" + ], + [ + "age", + "dogs.age" + ], + [ + "weight", + "dogs.weight" + ], + [ + "weight", + "dogs.mass" + ], + [ + "weight", + "dogs.heaviness" + ] + ], + "linking_list_idx": [ + [ + 0, + "dogs.name" + ], + [ + 1, + "dogs.age" + ], + [ + 2, + "dogs.weight" + ], + [ + 2, + "dogs.mass" + ], + [ + 2, + "dogs.heaviness" + ] + ], + "linking_list_col": [ + [ + "dogs.mass", + "dogs.heaviness" + ], + [ + "dogs.weight", + "dogs.heaviness" + ], + [ + "dogs.mass", + "dogs.weight" + ] + ] + }, + { + "question": "what are the #dog name# , #age# and #weight# of the dogs that were abandoned? note that 1 stands for yes, and 0 stands for no in the tables.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed", + "mass", + "heaviness" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "dog name", + "dogs.name" + ], + [ + "age", + "dogs.age" + ], + [ + "weight", + "dogs.weight" + ], + [ + "weight", + "dogs.mass" + ], + [ + "weight", + "dogs.heaviness" + ] + ], + "linking_list_idx": [ + [ + 0, + "dogs.name" + ], + [ + 1, + "dogs.age" + ], + [ + 2, + "dogs.weight" + ], + [ + 2, + "dogs.mass" + ], + [ + 2, + "dogs.heaviness" + ] + ], + "linking_list_col": [ + [ + "dogs.mass", + "dogs.heaviness" + ], + [ + "dogs.weight", + "dogs.heaviness" + ], + [ + "dogs.mass", + "dogs.weight" + ] + ] + }, + { + "question": "what is the #average age# of all the dogs?", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed", + "years_old", + "lifespan" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "average age", + "dogs.age" + ], + [ + "average age", + "dogs.years_old" + ], + [ + "average age", + "dogs.lifespan" + ] + ], + "linking_list_idx": [ + [ + 0, + "dogs.age" + ], + [ + 0, + "dogs.years_old" + ], + [ + 0, + "dogs.lifespan" + ] + ], + "linking_list_col": [ + [ + "dogs.years_old", + "dogs.lifespan" + ], + [ + "dogs.age", + "dogs.lifespan" + ], + [ + "dogs.years_old", + "dogs.age" + ] + ] + }, + { + "question": "compute the #average age# of all the dogs.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed", + "years_old", + "lifespan" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "average age", + "dogs.age" + ], + [ + "average age", + "dogs.years_old" + ], + [ + "average age", + "dogs.lifespan" + ] + ], + "linking_list_idx": [ + [ + 0, + "dogs.age" + ], + [ + 0, + "dogs.years_old" + ], + [ + 0, + "dogs.lifespan" + ] + ], + "linking_list_col": [ + [ + "dogs.years_old", + "dogs.lifespan" + ], + [ + "dogs.age", + "dogs.lifespan" + ], + [ + "dogs.years_old", + "dogs.age" + ] + ] + }, + { + "question": "what is the #age# of the oldest dog?", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed", + "years_old", + "lifespan" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "age", + "dogs.age" + ], + [ + "age", + "dogs.years_old" + ], + [ + "age", + "dogs.lifespan" + ] + ], + "linking_list_idx": [ + [ + 0, + "dogs.age" + ], + [ + 0, + "dogs.years_old" + ], + [ + 0, + "dogs.lifespan" + ] + ], + "linking_list_col": [ + [ + "dogs.years_old", + "dogs.lifespan" + ], + [ + "dogs.age", + "dogs.lifespan" + ], + [ + "dogs.years_old", + "dogs.age" + ] + ] + }, + { + "question": "tell me the #age# of the oldest dog.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed", + "years_old", + "lifespan" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "age", + "dogs.age" + ], + [ + "age", + "dogs.years_old" + ], + [ + "age", + "dogs.lifespan" + ] + ], + "linking_list_idx": [ + [ + 0, + "dogs.age" + ], + [ + 0, + "dogs.years_old" + ], + [ + 0, + "dogs.lifespan" + ] + ], + "linking_list_col": [ + [ + "dogs.years_old", + "dogs.lifespan" + ], + [ + "dogs.age", + "dogs.lifespan" + ], + [ + "dogs.years_old", + "dogs.age" + ] + ] + }, + { + "question": "how much does each #charge type# costs? list both charge type and #amount# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount", + "fee_type", + "charge_category" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "charge type", + "charges.charge_type" + ], + [ + "charge type", + "charges.fee_type" + ], + [ + "charge type", + "charges.charge_category" + ], + [ + "amount", + "charges.charge_amount" + ] + ], + "linking_list_idx": [ + [ + 0, + "charges.charge_type" + ], + [ + 0, + "charges.fee_type" + ], + [ + 0, + "charges.charge_category" + ], + [ + 1, + "charges.charge_amount" + ] + ], + "linking_list_col": [ + [ + "charges.fee_type", + "charges.charge_category" + ], + [ + "charges.charge_type", + "charges.charge_category" + ], + [ + "charges.fee_type", + "charges.charge_type" + ] + ] + }, + { + "question": "list each #charge type# and its #amount# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount", + "fee_type", + "charge_category" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "charge type", + "charges.charge_type" + ], + [ + "charge type", + "charges.fee_type" + ], + [ + "charge type", + "charges.charge_category" + ], + [ + "amount", + "charges.charge_amount" + ] + ], + "linking_list_idx": [ + [ + 0, + "charges.charge_type" + ], + [ + 0, + "charges.fee_type" + ], + [ + 0, + "charges.charge_category" + ], + [ + 1, + "charges.charge_amount" + ] + ], + "linking_list_col": [ + [ + "charges.fee_type", + "charges.charge_category" + ], + [ + "charges.charge_type", + "charges.charge_category" + ], + [ + "charges.fee_type", + "charges.charge_type" + ] + ] + }, + { + "question": "what is the #charge amount# of the most expensive charge type?", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount", + "amount", + "fee" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "charge amount", + "charges.charge_amount" + ], + [ + "charge amount", + "charges.amount" + ], + [ + "charge amount", + "charges.fee" + ] + ], + "linking_list_idx": [ + [ + 0, + "charges.charge_amount" + ], + [ + 0, + "charges.amount" + ], + [ + 0, + "charges.fee" + ] + ], + "linking_list_col": [ + [ + "charges.amount", + "charges.fee" + ], + [ + "charges.charge_amount", + "charges.fee" + ], + [ + "charges.amount", + "charges.charge_amount" + ] + ] + }, + { + "question": "list the #email# , #cell phone# and #home phone# of all the professionals.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number", + "mobile_number", + "phone_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "email", + "professionals.email_address" + ], + [ + "cell phone", + "professionals.cell_number" + ], + [ + "cell phone", + "professionals.mobile_number" + ], + [ + "cell phone", + "professionals.phone_number" + ], + [ + "home phone", + "professionals.home_phone" + ] + ], + "linking_list_idx": [ + [ + 0, + "professionals.email_address" + ], + [ + 1, + "professionals.cell_number" + ], + [ + 1, + "professionals.mobile_number" + ], + [ + 1, + "professionals.phone_number" + ], + [ + 2, + "professionals.home_phone" + ] + ], + "linking_list_col": [ + [ + "professionals.mobile_number", + "professionals.phone_number" + ], + [ + "professionals.cell_number", + "professionals.phone_number" + ], + [ + "professionals.mobile_number", + "professionals.cell_number" + ] + ] + }, + { + "question": "what are the #email# , #cell phone# and #home phone# of each professional?", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number", + "mobile_number", + "phone_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "email", + "professionals.email_address" + ], + [ + "cell phone", + "professionals.cell_number" + ], + [ + "cell phone", + "professionals.mobile_number" + ], + [ + "cell phone", + "professionals.phone_number" + ], + [ + "home phone", + "professionals.home_phone" + ] + ], + "linking_list_idx": [ + [ + 0, + "professionals.email_address" + ], + [ + 1, + "professionals.cell_number" + ], + [ + 1, + "professionals.mobile_number" + ], + [ + 1, + "professionals.phone_number" + ], + [ + 2, + "professionals.home_phone" + ] + ], + "linking_list_col": [ + [ + "professionals.mobile_number", + "professionals.phone_number" + ], + [ + "professionals.cell_number", + "professionals.phone_number" + ], + [ + "professionals.mobile_number", + "professionals.cell_number" + ] + ] + }, + { + "question": "what are all the possible #breed type# and #size type# combinations?", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed", + "race_code", + "pedigree_code" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "breed type", + "dogs.breed_code" + ], + [ + "breed type", + "dogs.race_code" + ], + [ + "breed type", + "dogs.pedigree_code" + ], + [ + "size type", + "dogs.size_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "dogs.breed_code" + ], + [ + 0, + "dogs.race_code" + ], + [ + 0, + "dogs.pedigree_code" + ], + [ + 1, + "dogs.size_code" + ] + ], + "linking_list_col": [ + [ + "dogs.race_code", + "dogs.pedigree_code" + ], + [ + "dogs.breed_code", + "dogs.pedigree_code" + ], + [ + "dogs.race_code", + "dogs.breed_code" + ] + ] + }, + { + "question": "find the distinct #breed type# and #size type# combinations for dogs.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed", + "race_code", + "pedigree_code" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "breed type", + "dogs.breed_code" + ], + [ + "breed type", + "dogs.race_code" + ], + [ + "breed type", + "dogs.pedigree_code" + ], + [ + "size type", + "dogs.size_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "dogs.breed_code" + ], + [ + 0, + "dogs.race_code" + ], + [ + 0, + "dogs.pedigree_code" + ], + [ + 1, + "dogs.size_code" + ] + ], + "linking_list_col": [ + [ + "dogs.race_code", + "dogs.pedigree_code" + ], + [ + "dogs.breed_code", + "dogs.pedigree_code" + ], + [ + "dogs.race_code", + "dogs.breed_code" + ] + ] + }, + { + "question": "list the #first name# of all the professionals along with the description of the treatment they have done.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number", + "forename", + "given_name" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "first name", + "professionals.first_name" + ], + [ + "first name", + "professionals.forename" + ], + [ + "first name", + "professionals.given_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "professionals.first_name" + ], + [ + 0, + "professionals.forename" + ], + [ + 0, + "professionals.given_name" + ] + ], + "linking_list_col": [ + [ + "professionals.forename", + "professionals.given_name" + ], + [ + "professionals.first_name", + "professionals.given_name" + ], + [ + "professionals.forename", + "professionals.first_name" + ] + ] + }, + { + "question": "what are the #birth year# and #citizenship# of singers?", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship", + "date_of_birth", + "year_of_birth" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "linking_list": [ + [ + "birth year", + "singer.birth_year" + ], + [ + "birth year", + "singer.date_of_birth" + ], + [ + "birth year", + "singer.year_of_birth" + ], + [ + "citizenship", + "singer.citizenship" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.birth_year" + ], + [ + 0, + "singer.date_of_birth" + ], + [ + 0, + "singer.year_of_birth" + ], + [ + 1, + "singer.citizenship" + ] + ], + "linking_list_col": [ + [ + "singer.date_of_birth", + "singer.year_of_birth" + ], + [ + "singer.birth_year", + "singer.year_of_birth" + ], + [ + "singer.date_of_birth", + "singer.birth_year" + ] + ] + }, + { + "question": "show different #citizenship# of singers and the #number of singers of each citizenship# .", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship", + "nationality", + "country_of_origin" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "linking_list": [ + [ + "citizenship", + "singer.citizenship" + ], + [ + "citizenship", + "singer.nationality" + ], + [ + "citizenship", + "singer.country_of_origin" + ], + [ + "number of singers of each citizenship", + "singer.citizenship" + ], + [ + "number of singers of each citizenship", + "singer.nationality" + ], + [ + "number of singers of each citizenship", + "singer.country_of_origin" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.citizenship" + ], + [ + 0, + "singer.nationality" + ], + [ + 0, + "singer.country_of_origin" + ], + [ + 1, + "singer.citizenship" + ], + [ + 1, + "singer.nationality" + ], + [ + 1, + "singer.country_of_origin" + ] + ], + "linking_list_col": [ + [ + "singer.nationality", + "singer.country_of_origin" + ], + [ + "singer.citizenship", + "singer.country_of_origin" + ], + [ + "singer.nationality", + "singer.citizenship" + ] + ] + }, + { + "question": "for each #citizenship# , how many singers are from that country?", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship", + "nationality", + "country_of_origin" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "linking_list": [ + [ + "citizenship", + "singer.citizenship" + ], + [ + "citizenship", + "singer.nationality" + ], + [ + "citizenship", + "singer.country_of_origin" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.citizenship" + ], + [ + 0, + "singer.nationality" + ], + [ + 0, + "singer.country_of_origin" + ] + ], + "linking_list_col": [ + [ + "singer.nationality", + "singer.country_of_origin" + ], + [ + "singer.citizenship", + "singer.country_of_origin" + ], + [ + "singer.nationality", + "singer.citizenship" + ] + ] + }, + { + "question": "please show the most common #citizenship# of singers.", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship", + "nationality", + "country_of_origin" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "linking_list": [ + [ + "citizenship", + "singer.citizenship" + ], + [ + "citizenship", + "singer.nationality" + ], + [ + "citizenship", + "singer.country_of_origin" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.citizenship" + ], + [ + 0, + "singer.nationality" + ], + [ + 0, + "singer.country_of_origin" + ] + ], + "linking_list_col": [ + [ + "singer.nationality", + "singer.country_of_origin" + ], + [ + "singer.citizenship", + "singer.country_of_origin" + ], + [ + "singer.nationality", + "singer.citizenship" + ] + ] + }, + { + "question": "show different citizenships and the #maximum net worth# of singers of each #citizenship# .", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship", + "earnings_millions", + "income_millions" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "linking_list": [ + [ + "maximum net worth", + "singer.net_worth_millions" + ], + [ + "maximum net worth", + "singer.earnings_millions" + ], + [ + "maximum net worth", + "singer.income_millions" + ], + [ + "citizenship", + "singer.citizenship" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.net_worth_millions" + ], + [ + 0, + "singer.earnings_millions" + ], + [ + 0, + "singer.income_millions" + ], + [ + 1, + "singer.citizenship" + ] + ], + "linking_list_col": [ + [ + "singer.earnings_millions", + "singer.income_millions" + ], + [ + "singer.net_worth_millions", + "singer.income_millions" + ], + [ + "singer.earnings_millions", + "singer.net_worth_millions" + ] + ] + }, + { + "question": "what are the #song titles# and singer names?", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position", + "name", + "composition_title" + ] + }, + "linking_list": [ + [ + "song titles", + "song.title" + ], + [ + "song titles", + "song.name" + ], + [ + "song titles", + "song.composition_title" + ] + ], + "linking_list_idx": [ + [ + 0, + "song.title" + ], + [ + 0, + "song.name" + ], + [ + 0, + "song.composition_title" + ] + ], + "linking_list_col": [ + [ + "song.name", + "song.composition_title" + ], + [ + "song.title", + "song.composition_title" + ], + [ + "song.name", + "song.title" + ] + ] + }, + { + "question": "show the names of singers and the #total sales# of their songs.", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position", + "revenue", + "income" + ] + }, + "linking_list": [ + [ + "total sales", + "song.sales" + ], + [ + "total sales", + "song.revenue" + ], + [ + "total sales", + "song.income" + ] + ], + "linking_list_idx": [ + [ + 0, + "song.sales" + ], + [ + 0, + "song.revenue" + ], + [ + 0, + "song.income" + ] + ], + "linking_list_col": [ + [ + "song.revenue", + "song.income" + ], + [ + "song.sales", + "song.income" + ], + [ + "song.revenue", + "song.sales" + ] + ] + }, + { + "question": "for each #singer name# , what is the #total sales# for their songs?", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position", + "revenue", + "income" + ] + }, + "linking_list": [ + [ + "singer name", + "singer.name" + ], + [ + "total sales", + "song.sales" + ], + [ + "total sales", + "song.revenue" + ], + [ + "total sales", + "song.income" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 1, + "song.sales" + ], + [ + 1, + "song.revenue" + ], + [ + 1, + "song.income" + ] + ], + "linking_list_col": [ + [ + "song.revenue", + "song.income" + ], + [ + "song.sales", + "song.income" + ], + [ + "song.revenue", + "song.sales" + ] + ] + }, + { + "question": "what is the #sname# of every sing that does not have any song?", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship", + "stage_name", + "artist_name" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "linking_list": [ + [ + "sname", + "singer.name" + ], + [ + "sname", + "singer.stage_name" + ], + [ + "sname", + "singer.artist_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 0, + "singer.stage_name" + ], + [ + 0, + "singer.artist_name" + ] + ], + "linking_list_col": [ + [ + "singer.stage_name", + "singer.artist_name" + ], + [ + "singer.name", + "singer.artist_name" + ], + [ + "singer.stage_name", + "singer.name" + ] + ] + }, + { + "question": "show the #citizenship# shared by singers with #birth year# before 1945 and after 1955.", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship", + "nationality", + "country_of_origin" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "linking_list": [ + [ + "citizenship", + "singer.citizenship" + ], + [ + "citizenship", + "singer.nationality" + ], + [ + "citizenship", + "singer.country_of_origin" + ], + [ + "birth year", + "singer.birth_year" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.citizenship" + ], + [ + 0, + "singer.nationality" + ], + [ + 0, + "singer.country_of_origin" + ], + [ + 1, + "singer.birth_year" + ] + ], + "linking_list_col": [ + [ + "singer.nationality", + "singer.country_of_origin" + ], + [ + "singer.citizenship", + "singer.country_of_origin" + ], + [ + "singer.nationality", + "singer.citizenship" + ] + ] + }, + { + "question": "show #name# , #country# , #age for all singers# ordered by #age# from the oldest to the youngest.", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "artist": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "performer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ] + }, + "linking_list": [ + [ + "name", + "singer.name" + ], + [ + "name", + "artist.name" + ], + [ + "name", + "performer.name" + ], + [ + "country", + "singer.country" + ], + [ + "country", + "artist.country" + ], + [ + "country", + "performer.country" + ], + [ + "age for all singers", + "singer.age" + ], + [ + "age for all singers", + "artist.age" + ], + [ + "age for all singers", + "performer.age" + ], + [ + "age", + "singer.age" + ], + [ + "age", + "artist.age" + ], + [ + "age", + "performer.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 0, + "artist.name" + ], + [ + 0, + "performer.name" + ], + [ + 1, + "singer.country" + ], + [ + 1, + "artist.country" + ], + [ + 1, + "performer.country" + ], + [ + 2, + "singer.age" + ], + [ + 2, + "artist.age" + ], + [ + 2, + "performer.age" + ], + [ + 3, + "singer.age" + ], + [ + 3, + "artist.age" + ], + [ + 3, + "performer.age" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "artist.singer_id" + ], + [ + "singer.singer_id", + "performer.singer_id" + ], + [ + "artist.singer_id", + "performer.singer_id" + ], + [ + "singer.name", + "artist.name" + ], + [ + "singer.name", + "performer.name" + ], + [ + "artist.name", + "performer.name" + ], + [ + "singer.country", + "artist.country" + ], + [ + "singer.country", + "performer.country" + ], + [ + "artist.country", + "performer.country" + ], + [ + "singer.song_name", + "artist.song_name" + ], + [ + "singer.song_name", + "performer.song_name" + ], + [ + "artist.song_name", + "performer.song_name" + ], + [ + "singer.song_release_year", + "artist.song_release_year" + ], + [ + "singer.song_release_year", + "performer.song_release_year" + ], + [ + "artist.song_release_year", + "performer.song_release_year" + ], + [ + "singer.age", + "artist.age" + ], + [ + "singer.age", + "performer.age" + ], + [ + "artist.age", + "performer.age" + ], + [ + "singer.is_male", + "artist.is_male" + ], + [ + "singer.is_male", + "performer.is_male" + ], + [ + "artist.is_male", + "performer.is_male" + ] + ] + }, + { + "question": "what are the #names# , #countries# , and #ages# for every singer in descending order of age?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "artist": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "performer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ] + }, + "linking_list": [ + [ + "names", + "singer.name" + ], + [ + "names", + "artist.name" + ], + [ + "names", + "performer.name" + ], + [ + "countries", + "singer.country" + ], + [ + "countries", + "artist.country" + ], + [ + "countries", + "performer.country" + ], + [ + "ages", + "singer.age" + ], + [ + "ages", + "artist.age" + ], + [ + "ages", + "performer.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 0, + "artist.name" + ], + [ + 0, + "performer.name" + ], + [ + 1, + "singer.country" + ], + [ + 1, + "artist.country" + ], + [ + 1, + "performer.country" + ], + [ + 2, + "singer.age" + ], + [ + 2, + "artist.age" + ], + [ + 2, + "performer.age" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "artist.singer_id" + ], + [ + "singer.singer_id", + "performer.singer_id" + ], + [ + "artist.singer_id", + "performer.singer_id" + ], + [ + "singer.name", + "artist.name" + ], + [ + "singer.name", + "performer.name" + ], + [ + "artist.name", + "performer.name" + ], + [ + "singer.country", + "artist.country" + ], + [ + "singer.country", + "performer.country" + ], + [ + "artist.country", + "performer.country" + ], + [ + "singer.song_name", + "artist.song_name" + ], + [ + "singer.song_name", + "performer.song_name" + ], + [ + "artist.song_name", + "performer.song_name" + ], + [ + "singer.song_release_year", + "artist.song_release_year" + ], + [ + "singer.song_release_year", + "performer.song_release_year" + ], + [ + "artist.song_release_year", + "performer.song_release_year" + ], + [ + "singer.age", + "artist.age" + ], + [ + "singer.age", + "performer.age" + ], + [ + "artist.age", + "performer.age" + ], + [ + "singer.is_male", + "artist.is_male" + ], + [ + "singer.is_male", + "performer.is_male" + ], + [ + "artist.is_male", + "performer.is_male" + ] + ] + }, + { + "question": "what is #the average, minimum, and maximum age# of all singers from france?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "artist": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "performer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ] + }, + "linking_list": [ + [ + "the average, minimum, and maximum age", + "singer.age" + ], + [ + "the average, minimum, and maximum age", + "artist.age" + ], + [ + "the average, minimum, and maximum age", + "performer.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.age" + ], + [ + 0, + "artist.age" + ], + [ + 0, + "performer.age" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "artist.singer_id" + ], + [ + "singer.singer_id", + "performer.singer_id" + ], + [ + "artist.singer_id", + "performer.singer_id" + ], + [ + "singer.name", + "artist.name" + ], + [ + "singer.name", + "performer.name" + ], + [ + "artist.name", + "performer.name" + ], + [ + "singer.country", + "artist.country" + ], + [ + "singer.country", + "performer.country" + ], + [ + "artist.country", + "performer.country" + ], + [ + "singer.song_name", + "artist.song_name" + ], + [ + "singer.song_name", + "performer.song_name" + ], + [ + "artist.song_name", + "performer.song_name" + ], + [ + "singer.song_release_year", + "artist.song_release_year" + ], + [ + "singer.song_release_year", + "performer.song_release_year" + ], + [ + "artist.song_release_year", + "performer.song_release_year" + ], + [ + "singer.age", + "artist.age" + ], + [ + "singer.age", + "performer.age" + ], + [ + "artist.age", + "performer.age" + ], + [ + "singer.is_male", + "artist.is_male" + ], + [ + "singer.is_male", + "performer.is_male" + ], + [ + "artist.is_male", + "performer.is_male" + ] + ] + }, + { + "question": "what is the #average, minimum, and maximum age# for all french singers?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "artist": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "performer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ] + }, + "linking_list": [ + [ + "average, minimum, and maximum age", + "singer.age" + ], + [ + "average, minimum, and maximum age", + "artist.age" + ], + [ + "average, minimum, and maximum age", + "performer.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.age" + ], + [ + 0, + "artist.age" + ], + [ + 0, + "performer.age" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "artist.singer_id" + ], + [ + "singer.singer_id", + "performer.singer_id" + ], + [ + "artist.singer_id", + "performer.singer_id" + ], + [ + "singer.name", + "artist.name" + ], + [ + "singer.name", + "performer.name" + ], + [ + "artist.name", + "performer.name" + ], + [ + "singer.country", + "artist.country" + ], + [ + "singer.country", + "performer.country" + ], + [ + "artist.country", + "performer.country" + ], + [ + "singer.song_name", + "artist.song_name" + ], + [ + "singer.song_name", + "performer.song_name" + ], + [ + "artist.song_name", + "performer.song_name" + ], + [ + "singer.song_release_year", + "artist.song_release_year" + ], + [ + "singer.song_release_year", + "performer.song_release_year" + ], + [ + "artist.song_release_year", + "performer.song_release_year" + ], + [ + "singer.age", + "artist.age" + ], + [ + "singer.age", + "performer.age" + ], + [ + "artist.age", + "performer.age" + ], + [ + "singer.is_male", + "artist.is_male" + ], + [ + "singer.is_male", + "performer.is_male" + ], + [ + "artist.is_male", + "performer.is_male" + ] + ] + }, + { + "question": "show the #name# and the #release year of the song by the youngest singer# .", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "artist": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "performer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ] + }, + "linking_list": [ + [ + "name", + "singer.name" + ], + [ + "name", + "artist.name" + ], + [ + "name", + "performer.name" + ], + [ + "release year of the song by the youngest singer", + "singer.song_release_year" + ], + [ + "release year of the song by the youngest singer", + "artist.song_release_year" + ], + [ + "release year of the song by the youngest singer", + "performer.song_release_year" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 0, + "artist.name" + ], + [ + 0, + "performer.name" + ], + [ + 1, + "singer.song_release_year" + ], + [ + 1, + "artist.song_release_year" + ], + [ + 1, + "performer.song_release_year" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "artist.singer_id" + ], + [ + "singer.singer_id", + "performer.singer_id" + ], + [ + "artist.singer_id", + "performer.singer_id" + ], + [ + "singer.name", + "artist.name" + ], + [ + "singer.name", + "performer.name" + ], + [ + "artist.name", + "performer.name" + ], + [ + "singer.country", + "artist.country" + ], + [ + "singer.country", + "performer.country" + ], + [ + "artist.country", + "performer.country" + ], + [ + "singer.song_name", + "artist.song_name" + ], + [ + "singer.song_name", + "performer.song_name" + ], + [ + "artist.song_name", + "performer.song_name" + ], + [ + "singer.song_release_year", + "artist.song_release_year" + ], + [ + "singer.song_release_year", + "performer.song_release_year" + ], + [ + "artist.song_release_year", + "performer.song_release_year" + ], + [ + "singer.age", + "artist.age" + ], + [ + "singer.age", + "performer.age" + ], + [ + "artist.age", + "performer.age" + ], + [ + "singer.is_male", + "artist.is_male" + ], + [ + "singer.is_male", + "performer.is_male" + ], + [ + "artist.is_male", + "performer.is_male" + ] + ] + }, + { + "question": "what are the #names# and release years for all the songs of the youngest singer?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "artist": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "performer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ] + }, + "linking_list": [ + [ + "names", + "singer.song_name" + ], + [ + "names", + "artist.song_name" + ], + [ + "names", + "performer.song_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.song_name" + ], + [ + 0, + "artist.song_name" + ], + [ + 0, + "performer.song_name" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "artist.singer_id" + ], + [ + "singer.singer_id", + "performer.singer_id" + ], + [ + "artist.singer_id", + "performer.singer_id" + ], + [ + "singer.name", + "artist.name" + ], + [ + "singer.name", + "performer.name" + ], + [ + "artist.name", + "performer.name" + ], + [ + "singer.country", + "artist.country" + ], + [ + "singer.country", + "performer.country" + ], + [ + "artist.country", + "performer.country" + ], + [ + "singer.song_name", + "artist.song_name" + ], + [ + "singer.song_name", + "performer.song_name" + ], + [ + "artist.song_name", + "performer.song_name" + ], + [ + "singer.song_release_year", + "artist.song_release_year" + ], + [ + "singer.song_release_year", + "performer.song_release_year" + ], + [ + "artist.song_release_year", + "performer.song_release_year" + ], + [ + "singer.age", + "artist.age" + ], + [ + "singer.age", + "performer.age" + ], + [ + "artist.age", + "performer.age" + ], + [ + "singer.is_male", + "artist.is_male" + ], + [ + "singer.is_male", + "performer.is_male" + ], + [ + "artist.is_male", + "performer.is_male" + ] + ] + }, + { + "question": "what are all distinct #countries# where singers above #age# 20 are from?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "artist": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "performer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ] + }, + "linking_list": [ + [ + "countries", + "singer.country" + ], + [ + "countries", + "artist.country" + ], + [ + "countries", + "performer.country" + ], + [ + "age", + "singer.age" + ], + [ + "age", + "artist.age" + ], + [ + "age", + "performer.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.country" + ], + [ + 0, + "artist.country" + ], + [ + 0, + "performer.country" + ], + [ + 1, + "singer.age" + ], + [ + 1, + "artist.age" + ], + [ + 1, + "performer.age" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "artist.singer_id" + ], + [ + "singer.singer_id", + "performer.singer_id" + ], + [ + "artist.singer_id", + "performer.singer_id" + ], + [ + "singer.name", + "artist.name" + ], + [ + "singer.name", + "performer.name" + ], + [ + "artist.name", + "performer.name" + ], + [ + "singer.country", + "artist.country" + ], + [ + "singer.country", + "performer.country" + ], + [ + "artist.country", + "performer.country" + ], + [ + "singer.song_name", + "artist.song_name" + ], + [ + "singer.song_name", + "performer.song_name" + ], + [ + "artist.song_name", + "performer.song_name" + ], + [ + "singer.song_release_year", + "artist.song_release_year" + ], + [ + "singer.song_release_year", + "performer.song_release_year" + ], + [ + "artist.song_release_year", + "performer.song_release_year" + ], + [ + "singer.age", + "artist.age" + ], + [ + "singer.age", + "performer.age" + ], + [ + "artist.age", + "performer.age" + ], + [ + "singer.is_male", + "artist.is_male" + ], + [ + "singer.is_male", + "performer.is_male" + ], + [ + "artist.is_male", + "performer.is_male" + ] + ] + }, + { + "question": "what are the different #countries with singers# above #age# 20?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "artist": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "performer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ] + }, + "linking_list": [ + [ + "countries with singers", + "singer.country" + ], + [ + "countries with singers", + "artist.country" + ], + [ + "countries with singers", + "performer.country" + ], + [ + "age", + "singer.age" + ], + [ + "age", + "artist.age" + ], + [ + "age", + "performer.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.country" + ], + [ + 0, + "artist.country" + ], + [ + 0, + "performer.country" + ], + [ + 1, + "singer.age" + ], + [ + 1, + "artist.age" + ], + [ + 1, + "performer.age" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "artist.singer_id" + ], + [ + "singer.singer_id", + "performer.singer_id" + ], + [ + "artist.singer_id", + "performer.singer_id" + ], + [ + "singer.name", + "artist.name" + ], + [ + "singer.name", + "performer.name" + ], + [ + "artist.name", + "performer.name" + ], + [ + "singer.country", + "artist.country" + ], + [ + "singer.country", + "performer.country" + ], + [ + "artist.country", + "performer.country" + ], + [ + "singer.song_name", + "artist.song_name" + ], + [ + "singer.song_name", + "performer.song_name" + ], + [ + "artist.song_name", + "performer.song_name" + ], + [ + "singer.song_release_year", + "artist.song_release_year" + ], + [ + "singer.song_release_year", + "performer.song_release_year" + ], + [ + "artist.song_release_year", + "performer.song_release_year" + ], + [ + "singer.age", + "artist.age" + ], + [ + "singer.age", + "performer.age" + ], + [ + "artist.age", + "performer.age" + ], + [ + "singer.is_male", + "artist.is_male" + ], + [ + "singer.is_male", + "performer.is_male" + ], + [ + "artist.is_male", + "performer.is_male" + ] + ] + }, + { + "question": "show all #countries# and the number of singers in each country.", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "artist": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "performer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ] + }, + "linking_list": [ + [ + "countries", + "singer.country" + ], + [ + "countries", + "artist.country" + ], + [ + "countries", + "performer.country" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.country" + ], + [ + 0, + "artist.country" + ], + [ + 0, + "performer.country" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "artist.singer_id" + ], + [ + "singer.singer_id", + "performer.singer_id" + ], + [ + "artist.singer_id", + "performer.singer_id" + ], + [ + "singer.name", + "artist.name" + ], + [ + "singer.name", + "performer.name" + ], + [ + "artist.name", + "performer.name" + ], + [ + "singer.country", + "artist.country" + ], + [ + "singer.country", + "performer.country" + ], + [ + "artist.country", + "performer.country" + ], + [ + "singer.song_name", + "artist.song_name" + ], + [ + "singer.song_name", + "performer.song_name" + ], + [ + "artist.song_name", + "performer.song_name" + ], + [ + "singer.song_release_year", + "artist.song_release_year" + ], + [ + "singer.song_release_year", + "performer.song_release_year" + ], + [ + "artist.song_release_year", + "performer.song_release_year" + ], + [ + "singer.age", + "artist.age" + ], + [ + "singer.age", + "performer.age" + ], + [ + "artist.age", + "performer.age" + ], + [ + "singer.is_male", + "artist.is_male" + ], + [ + "singer.is_male", + "performer.is_male" + ], + [ + "artist.is_male", + "performer.is_male" + ] + ] + }, + { + "question": "list all #song names by singers# above the #average age# .", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "artist": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "performer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ] + }, + "linking_list": [ + [ + "song names by singers", + "singer.song_name" + ], + [ + "song names by singers", + "artist.song_name" + ], + [ + "song names by singers", + "performer.song_name" + ], + [ + "average age", + "singer.age" + ], + [ + "average age", + "artist.age" + ], + [ + "average age", + "performer.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.song_name" + ], + [ + 0, + "artist.song_name" + ], + [ + 0, + "performer.song_name" + ], + [ + 1, + "singer.age" + ], + [ + 1, + "artist.age" + ], + [ + 1, + "performer.age" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "artist.singer_id" + ], + [ + "singer.singer_id", + "performer.singer_id" + ], + [ + "artist.singer_id", + "performer.singer_id" + ], + [ + "singer.name", + "artist.name" + ], + [ + "singer.name", + "performer.name" + ], + [ + "artist.name", + "performer.name" + ], + [ + "singer.country", + "artist.country" + ], + [ + "singer.country", + "performer.country" + ], + [ + "artist.country", + "performer.country" + ], + [ + "singer.song_name", + "artist.song_name" + ], + [ + "singer.song_name", + "performer.song_name" + ], + [ + "artist.song_name", + "performer.song_name" + ], + [ + "singer.song_release_year", + "artist.song_release_year" + ], + [ + "singer.song_release_year", + "performer.song_release_year" + ], + [ + "artist.song_release_year", + "performer.song_release_year" + ], + [ + "singer.age", + "artist.age" + ], + [ + "singer.age", + "performer.age" + ], + [ + "artist.age", + "performer.age" + ], + [ + "singer.is_male", + "artist.is_male" + ], + [ + "singer.is_male", + "performer.is_male" + ], + [ + "artist.is_male", + "performer.is_male" + ] + ] + }, + { + "question": "what are all the #song names by singers# who are older than average?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "artist": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "performer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ] + }, + "linking_list": [ + [ + "song names by singers", + "singer.song_name" + ], + [ + "song names by singers", + "artist.song_name" + ], + [ + "song names by singers", + "performer.song_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.song_name" + ], + [ + 0, + "artist.song_name" + ], + [ + 0, + "performer.song_name" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "artist.singer_id" + ], + [ + "singer.singer_id", + "performer.singer_id" + ], + [ + "artist.singer_id", + "performer.singer_id" + ], + [ + "singer.name", + "artist.name" + ], + [ + "singer.name", + "performer.name" + ], + [ + "artist.name", + "performer.name" + ], + [ + "singer.country", + "artist.country" + ], + [ + "singer.country", + "performer.country" + ], + [ + "artist.country", + "performer.country" + ], + [ + "singer.song_name", + "artist.song_name" + ], + [ + "singer.song_name", + "performer.song_name" + ], + [ + "artist.song_name", + "performer.song_name" + ], + [ + "singer.song_release_year", + "artist.song_release_year" + ], + [ + "singer.song_release_year", + "performer.song_release_year" + ], + [ + "artist.song_release_year", + "performer.song_release_year" + ], + [ + "singer.age", + "artist.age" + ], + [ + "singer.age", + "performer.age" + ], + [ + "artist.age", + "performer.age" + ], + [ + "singer.is_male", + "artist.is_male" + ], + [ + "singer.is_male", + "performer.is_male" + ], + [ + "artist.is_male", + "performer.is_male" + ] + ] + }, + { + "question": "show #location# and #name for all stadiums with a capacity# between 5000 and 10000.", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "arena": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "venue": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ] + }, + "linking_list": [ + [ + "location", + "stadium.location" + ], + [ + "location", + "arena.location" + ], + [ + "location", + "venue.location" + ], + [ + "name for all stadiums with a capacity", + "stadium.name" + ], + [ + "name for all stadiums with a capacity", + "arena.name" + ], + [ + "name for all stadiums with a capacity", + "venue.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "stadium.location" + ], + [ + 0, + "arena.location" + ], + [ + 0, + "venue.location" + ], + [ + 1, + "stadium.name" + ], + [ + 1, + "arena.name" + ], + [ + 1, + "venue.name" + ] + ], + "linking_list_col": [ + [ + "stadium.stadium_id", + "arena.stadium_id" + ], + [ + "stadium.stadium_id", + "venue.stadium_id" + ], + [ + "arena.stadium_id", + "venue.stadium_id" + ], + [ + "stadium.location", + "arena.location" + ], + [ + "stadium.location", + "venue.location" + ], + [ + "arena.location", + "venue.location" + ], + [ + "stadium.name", + "arena.name" + ], + [ + "stadium.name", + "venue.name" + ], + [ + "arena.name", + "venue.name" + ], + [ + "stadium.capacity", + "arena.capacity" + ], + [ + "stadium.capacity", + "venue.capacity" + ], + [ + "arena.capacity", + "venue.capacity" + ], + [ + "stadium.highest", + "arena.highest" + ], + [ + "stadium.highest", + "venue.highest" + ], + [ + "arena.highest", + "venue.highest" + ], + [ + "stadium.lowest", + "arena.lowest" + ], + [ + "stadium.lowest", + "venue.lowest" + ], + [ + "arena.lowest", + "venue.lowest" + ], + [ + "stadium.average", + "arena.average" + ], + [ + "stadium.average", + "venue.average" + ], + [ + "arena.average", + "venue.average" + ] + ] + }, + { + "question": "what are the #locations# and #names# of all stations with #capacity# between 5000 and 10000?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "arena": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "venue": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ] + }, + "linking_list": [ + [ + "locations", + "stadium.location" + ], + [ + "locations", + "arena.location" + ], + [ + "locations", + "venue.location" + ], + [ + "names", + "stadium.name" + ], + [ + "names", + "arena.name" + ], + [ + "names", + "venue.name" + ], + [ + "capacity", + "stadium.capacity" + ], + [ + "capacity", + "arena.capacity" + ], + [ + "capacity", + "venue.capacity" + ] + ], + "linking_list_idx": [ + [ + 0, + "stadium.location" + ], + [ + 0, + "arena.location" + ], + [ + 0, + "venue.location" + ], + [ + 1, + "stadium.name" + ], + [ + 1, + "arena.name" + ], + [ + 1, + "venue.name" + ], + [ + 2, + "stadium.capacity" + ], + [ + 2, + "arena.capacity" + ], + [ + 2, + "venue.capacity" + ] + ], + "linking_list_col": [ + [ + "stadium.stadium_id", + "arena.stadium_id" + ], + [ + "stadium.stadium_id", + "venue.stadium_id" + ], + [ + "arena.stadium_id", + "venue.stadium_id" + ], + [ + "stadium.location", + "arena.location" + ], + [ + "stadium.location", + "venue.location" + ], + [ + "arena.location", + "venue.location" + ], + [ + "stadium.name", + "arena.name" + ], + [ + "stadium.name", + "venue.name" + ], + [ + "arena.name", + "venue.name" + ], + [ + "stadium.capacity", + "arena.capacity" + ], + [ + "stadium.capacity", + "venue.capacity" + ], + [ + "arena.capacity", + "venue.capacity" + ], + [ + "stadium.highest", + "arena.highest" + ], + [ + "stadium.highest", + "venue.highest" + ], + [ + "arena.highest", + "venue.highest" + ], + [ + "stadium.lowest", + "arena.lowest" + ], + [ + "stadium.lowest", + "venue.lowest" + ], + [ + "arena.lowest", + "venue.lowest" + ], + [ + "stadium.average", + "arena.average" + ], + [ + "stadium.average", + "venue.average" + ], + [ + "arena.average", + "venue.average" + ] + ] + }, + { + "question": "what is the #name# and capacity for the stadium with highest average attendance?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "arena": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "venue": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ] + }, + "linking_list": [ + [ + "name", + "stadium.name" + ], + [ + "name", + "arena.name" + ], + [ + "name", + "venue.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "stadium.name" + ], + [ + 0, + "arena.name" + ], + [ + 0, + "venue.name" + ] + ], + "linking_list_col": [ + [ + "stadium.stadium_id", + "arena.stadium_id" + ], + [ + "stadium.stadium_id", + "venue.stadium_id" + ], + [ + "arena.stadium_id", + "venue.stadium_id" + ], + [ + "stadium.location", + "arena.location" + ], + [ + "stadium.location", + "venue.location" + ], + [ + "arena.location", + "venue.location" + ], + [ + "stadium.name", + "arena.name" + ], + [ + "stadium.name", + "venue.name" + ], + [ + "arena.name", + "venue.name" + ], + [ + "stadium.capacity", + "arena.capacity" + ], + [ + "stadium.capacity", + "venue.capacity" + ], + [ + "arena.capacity", + "venue.capacity" + ], + [ + "stadium.highest", + "arena.highest" + ], + [ + "stadium.highest", + "venue.highest" + ], + [ + "arena.highest", + "venue.highest" + ], + [ + "stadium.lowest", + "arena.lowest" + ], + [ + "stadium.lowest", + "venue.lowest" + ], + [ + "arena.lowest", + "venue.lowest" + ], + [ + "stadium.average", + "arena.average" + ], + [ + "stadium.average", + "venue.average" + ], + [ + "arena.average", + "venue.average" + ] + ] + }, + { + "question": "what is the #name# and capacity for the stadium with the highest average attendance?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "arena": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "venue": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ] + }, + "linking_list": [ + [ + "name", + "stadium.name" + ], + [ + "name", + "arena.name" + ], + [ + "name", + "venue.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "stadium.name" + ], + [ + 0, + "arena.name" + ], + [ + 0, + "venue.name" + ] + ], + "linking_list_col": [ + [ + "stadium.stadium_id", + "arena.stadium_id" + ], + [ + "stadium.stadium_id", + "venue.stadium_id" + ], + [ + "arena.stadium_id", + "venue.stadium_id" + ], + [ + "stadium.location", + "arena.location" + ], + [ + "stadium.location", + "venue.location" + ], + [ + "arena.location", + "venue.location" + ], + [ + "stadium.name", + "arena.name" + ], + [ + "stadium.name", + "venue.name" + ], + [ + "arena.name", + "venue.name" + ], + [ + "stadium.capacity", + "arena.capacity" + ], + [ + "stadium.capacity", + "venue.capacity" + ], + [ + "arena.capacity", + "venue.capacity" + ], + [ + "stadium.highest", + "arena.highest" + ], + [ + "stadium.highest", + "venue.highest" + ], + [ + "arena.highest", + "venue.highest" + ], + [ + "stadium.lowest", + "arena.lowest" + ], + [ + "stadium.lowest", + "venue.lowest" + ], + [ + "arena.lowest", + "venue.lowest" + ], + [ + "stadium.average", + "arena.average" + ], + [ + "stadium.average", + "venue.average" + ], + [ + "arena.average", + "venue.average" + ] + ] + }, + { + "question": "how many concerts are there in #year# 2014 or 2015?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "gig": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "performance": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ] + }, + "linking_list": [ + [ + "year", + "concert.year" + ], + [ + "year", + "gig.year" + ], + [ + "year", + "performance.year" + ] + ], + "linking_list_idx": [ + [ + 0, + "concert.year" + ], + [ + 0, + "gig.year" + ], + [ + 0, + "performance.year" + ] + ], + "linking_list_col": [ + [ + "concert.concert_id", + "gig.concert_id" + ], + [ + "concert.concert_id", + "performance.concert_id" + ], + [ + "gig.concert_id", + "performance.concert_id" + ], + [ + "concert.concert_name", + "gig.concert_name" + ], + [ + "concert.concert_name", + "performance.concert_name" + ], + [ + "gig.concert_name", + "performance.concert_name" + ], + [ + "concert.theme", + "gig.theme" + ], + [ + "concert.theme", + "performance.theme" + ], + [ + "gig.theme", + "performance.theme" + ], + [ + "concert.stadium_id", + "gig.stadium_id" + ], + [ + "concert.stadium_id", + "performance.stadium_id" + ], + [ + "gig.stadium_id", + "performance.stadium_id" + ], + [ + "concert.year", + "gig.year" + ], + [ + "concert.year", + "performance.year" + ], + [ + "gig.year", + "performance.year" + ] + ] + }, + { + "question": "show the #stadium name# and #capacity# with most number of #concerts in year# 2014 or after.", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "gig": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "performance": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ] + }, + "linking_list": [ + [ + "stadium name", + "stadium.name" + ], + [ + "capacity", + "stadium.capacity" + ], + [ + "concerts in year", + "concert.year" + ], + [ + "concerts in year", + "gig.year" + ], + [ + "concerts in year", + "performance.year" + ] + ], + "linking_list_idx": [ + [ + 0, + "stadium.name" + ], + [ + 1, + "stadium.capacity" + ], + [ + 2, + "concert.year" + ], + [ + 2, + "gig.year" + ], + [ + 2, + "performance.year" + ] + ], + "linking_list_col": [ + [ + "concert.concert_id", + "gig.concert_id" + ], + [ + "concert.concert_id", + "performance.concert_id" + ], + [ + "gig.concert_id", + "performance.concert_id" + ], + [ + "concert.concert_name", + "gig.concert_name" + ], + [ + "concert.concert_name", + "performance.concert_name" + ], + [ + "gig.concert_name", + "performance.concert_name" + ], + [ + "concert.theme", + "gig.theme" + ], + [ + "concert.theme", + "performance.theme" + ], + [ + "gig.theme", + "performance.theme" + ], + [ + "concert.stadium_id", + "gig.stadium_id" + ], + [ + "concert.stadium_id", + "performance.stadium_id" + ], + [ + "gig.stadium_id", + "performance.stadium_id" + ], + [ + "concert.year", + "gig.year" + ], + [ + "concert.year", + "performance.year" + ], + [ + "gig.year", + "performance.year" + ] + ] + }, + { + "question": "which #year# has most number of concerts?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "gig": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "performance": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ] + }, + "linking_list": [ + [ + "year", + "concert.year" + ], + [ + "year", + "gig.year" + ], + [ + "year", + "performance.year" + ] + ], + "linking_list_idx": [ + [ + 0, + "concert.year" + ], + [ + 0, + "gig.year" + ], + [ + 0, + "performance.year" + ] + ], + "linking_list_col": [ + [ + "concert.concert_id", + "gig.concert_id" + ], + [ + "concert.concert_id", + "performance.concert_id" + ], + [ + "gig.concert_id", + "performance.concert_id" + ], + [ + "concert.concert_name", + "gig.concert_name" + ], + [ + "concert.concert_name", + "performance.concert_name" + ], + [ + "gig.concert_name", + "performance.concert_name" + ], + [ + "concert.theme", + "gig.theme" + ], + [ + "concert.theme", + "performance.theme" + ], + [ + "gig.theme", + "performance.theme" + ], + [ + "concert.stadium_id", + "gig.stadium_id" + ], + [ + "concert.stadium_id", + "performance.stadium_id" + ], + [ + "gig.stadium_id", + "performance.stadium_id" + ], + [ + "concert.year", + "gig.year" + ], + [ + "concert.year", + "performance.year" + ], + [ + "gig.year", + "performance.year" + ] + ] + }, + { + "question": "what is the #year# that had the most concerts?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "gig": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "performance": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ] + }, + "linking_list": [ + [ + "year", + "concert.year" + ], + [ + "year", + "gig.year" + ], + [ + "year", + "performance.year" + ] + ], + "linking_list_idx": [ + [ + 0, + "concert.year" + ], + [ + 0, + "gig.year" + ], + [ + 0, + "performance.year" + ] + ], + "linking_list_col": [ + [ + "concert.concert_id", + "gig.concert_id" + ], + [ + "concert.concert_id", + "performance.concert_id" + ], + [ + "gig.concert_id", + "performance.concert_id" + ], + [ + "concert.concert_name", + "gig.concert_name" + ], + [ + "concert.concert_name", + "performance.concert_name" + ], + [ + "gig.concert_name", + "performance.concert_name" + ], + [ + "concert.theme", + "gig.theme" + ], + [ + "concert.theme", + "performance.theme" + ], + [ + "gig.theme", + "performance.theme" + ], + [ + "concert.stadium_id", + "gig.stadium_id" + ], + [ + "concert.stadium_id", + "performance.stadium_id" + ], + [ + "gig.stadium_id", + "performance.stadium_id" + ], + [ + "concert.year", + "gig.year" + ], + [ + "concert.year", + "performance.year" + ], + [ + "gig.year", + "performance.year" + ] + ] + }, + { + "question": "show #countries# where a #singer above age 40# and a #singer below 30# are from.", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "artist": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "performer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ] + }, + "linking_list": [ + [ + "countries", + "singer.country" + ], + [ + "countries", + "artist.country" + ], + [ + "countries", + "performer.country" + ], + [ + "singer above age 40", + "singer.age" + ], + [ + "singer above age 40", + "artist.age" + ], + [ + "singer above age 40", + "performer.age" + ], + [ + "singer below 30", + "singer.age" + ], + [ + "singer below 30", + "artist.age" + ], + [ + "singer below 30", + "performer.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.country" + ], + [ + 0, + "artist.country" + ], + [ + 0, + "performer.country" + ], + [ + 1, + "singer.age" + ], + [ + 1, + "artist.age" + ], + [ + 1, + "performer.age" + ], + [ + 2, + "singer.age" + ], + [ + 2, + "artist.age" + ], + [ + 2, + "performer.age" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "artist.singer_id" + ], + [ + "singer.singer_id", + "performer.singer_id" + ], + [ + "artist.singer_id", + "performer.singer_id" + ], + [ + "singer.name", + "artist.name" + ], + [ + "singer.name", + "performer.name" + ], + [ + "artist.name", + "performer.name" + ], + [ + "singer.country", + "artist.country" + ], + [ + "singer.country", + "performer.country" + ], + [ + "artist.country", + "performer.country" + ], + [ + "singer.song_name", + "artist.song_name" + ], + [ + "singer.song_name", + "performer.song_name" + ], + [ + "artist.song_name", + "performer.song_name" + ], + [ + "singer.song_release_year", + "artist.song_release_year" + ], + [ + "singer.song_release_year", + "performer.song_release_year" + ], + [ + "artist.song_release_year", + "performer.song_release_year" + ], + [ + "singer.age", + "artist.age" + ], + [ + "singer.age", + "performer.age" + ], + [ + "artist.age", + "performer.age" + ], + [ + "singer.is_male", + "artist.is_male" + ], + [ + "singer.is_male", + "performer.is_male" + ], + [ + "artist.is_male", + "performer.is_male" + ] + ] + }, + { + "question": "show #names for all stadiums# except for stadiums having a concert in #year# 2014.", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "gig": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "performance": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ] + }, + "linking_list": [ + [ + "names for all stadiums", + "stadium.name" + ], + [ + "year", + "concert.year" + ], + [ + "year", + "gig.year" + ], + [ + "year", + "performance.year" + ] + ], + "linking_list_idx": [ + [ + 0, + "stadium.name" + ], + [ + 1, + "concert.year" + ], + [ + 1, + "gig.year" + ], + [ + 1, + "performance.year" + ] + ], + "linking_list_col": [ + [ + "concert.concert_id", + "gig.concert_id" + ], + [ + "concert.concert_id", + "performance.concert_id" + ], + [ + "gig.concert_id", + "performance.concert_id" + ], + [ + "concert.concert_name", + "gig.concert_name" + ], + [ + "concert.concert_name", + "performance.concert_name" + ], + [ + "gig.concert_name", + "performance.concert_name" + ], + [ + "concert.theme", + "gig.theme" + ], + [ + "concert.theme", + "performance.theme" + ], + [ + "gig.theme", + "performance.theme" + ], + [ + "concert.stadium_id", + "gig.stadium_id" + ], + [ + "concert.stadium_id", + "performance.stadium_id" + ], + [ + "gig.stadium_id", + "performance.stadium_id" + ], + [ + "concert.year", + "gig.year" + ], + [ + "concert.year", + "performance.year" + ], + [ + "gig.year", + "performance.year" + ] + ] + }, + { + "question": "what are the names of the singers and #number of concerts# for each person?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "concert_performer": [ + "concert_id", + "singer_id" + ], + "concert_artist": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "number of concerts", + "singer_in_concert.concert_id" + ], + [ + "number of concerts", + "concert_performer.concert_id" + ], + [ + "number of concerts", + "concert_artist.concert_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer_in_concert.concert_id" + ], + [ + 0, + "concert_performer.concert_id" + ], + [ + 0, + "concert_artist.concert_id" + ] + ], + "linking_list_col": [ + [ + "singer_in_concert.concert_id", + "concert_performer.concert_id" + ], + [ + "singer_in_concert.concert_id", + "concert_artist.concert_id" + ], + [ + "concert_performer.concert_id", + "concert_artist.concert_id" + ], + [ + "singer_in_concert.singer_id", + "concert_performer.singer_id" + ], + [ + "singer_in_concert.singer_id", + "concert_artist.singer_id" + ], + [ + "concert_performer.singer_id", + "concert_artist.singer_id" + ] + ] + }, + { + "question": "what is the #name# and #nation of the singer# who have a song having 'hey' in its name?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "artist": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "performer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ] + }, + "linking_list": [ + [ + "name", + "singer.name" + ], + [ + "name", + "artist.name" + ], + [ + "name", + "performer.name" + ], + [ + "nation of the singer", + "singer.country" + ], + [ + "nation of the singer", + "artist.country" + ], + [ + "nation of the singer", + "performer.country" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 0, + "artist.name" + ], + [ + 0, + "performer.name" + ], + [ + 1, + "singer.country" + ], + [ + 1, + "artist.country" + ], + [ + 1, + "performer.country" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "artist.singer_id" + ], + [ + "singer.singer_id", + "performer.singer_id" + ], + [ + "artist.singer_id", + "performer.singer_id" + ], + [ + "singer.name", + "artist.name" + ], + [ + "singer.name", + "performer.name" + ], + [ + "artist.name", + "performer.name" + ], + [ + "singer.country", + "artist.country" + ], + [ + "singer.country", + "performer.country" + ], + [ + "artist.country", + "performer.country" + ], + [ + "singer.song_name", + "artist.song_name" + ], + [ + "singer.song_name", + "performer.song_name" + ], + [ + "artist.song_name", + "performer.song_name" + ], + [ + "singer.song_release_year", + "artist.song_release_year" + ], + [ + "singer.song_release_year", + "performer.song_release_year" + ], + [ + "artist.song_release_year", + "performer.song_release_year" + ], + [ + "singer.age", + "artist.age" + ], + [ + "singer.age", + "performer.age" + ], + [ + "artist.age", + "performer.age" + ], + [ + "singer.is_male", + "artist.is_male" + ], + [ + "singer.is_male", + "performer.is_male" + ], + [ + "artist.is_male", + "performer.is_male" + ] + ] + }, + { + "question": "what is the #name# and #country of origin# of every singer who has a song with the word 'hey' in its title?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "artist": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "performer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ] + }, + "linking_list": [ + [ + "name", + "singer.name" + ], + [ + "name", + "artist.name" + ], + [ + "name", + "performer.name" + ], + [ + "country of origin", + "singer.country" + ], + [ + "country of origin", + "artist.country" + ], + [ + "country of origin", + "performer.country" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 0, + "artist.name" + ], + [ + 0, + "performer.name" + ], + [ + 1, + "singer.country" + ], + [ + 1, + "artist.country" + ], + [ + 1, + "performer.country" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "artist.singer_id" + ], + [ + "singer.singer_id", + "performer.singer_id" + ], + [ + "artist.singer_id", + "performer.singer_id" + ], + [ + "singer.name", + "artist.name" + ], + [ + "singer.name", + "performer.name" + ], + [ + "artist.name", + "performer.name" + ], + [ + "singer.country", + "artist.country" + ], + [ + "singer.country", + "performer.country" + ], + [ + "artist.country", + "performer.country" + ], + [ + "singer.song_name", + "artist.song_name" + ], + [ + "singer.song_name", + "performer.song_name" + ], + [ + "artist.song_name", + "performer.song_name" + ], + [ + "singer.song_release_year", + "artist.song_release_year" + ], + [ + "singer.song_release_year", + "performer.song_release_year" + ], + [ + "artist.song_release_year", + "performer.song_release_year" + ], + [ + "singer.age", + "artist.age" + ], + [ + "singer.age", + "performer.age" + ], + [ + "artist.age", + "performer.age" + ], + [ + "singer.is_male", + "artist.is_male" + ], + [ + "singer.is_male", + "performer.is_male" + ], + [ + "artist.is_male", + "performer.is_male" + ] + ] + }, + { + "question": "find the #name# and #location of the stadiums# which some concerts happened in the #years# of both 2014 and 2015.", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "gig": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "performance": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ] + }, + "linking_list": [ + [ + "name", + "stadium.name" + ], + [ + "location of the stadiums", + "stadium.location" + ], + [ + "years", + "concert.year" + ], + [ + "years", + "gig.year" + ], + [ + "years", + "performance.year" + ] + ], + "linking_list_idx": [ + [ + 0, + "stadium.name" + ], + [ + 1, + "stadium.location" + ], + [ + 2, + "concert.year" + ], + [ + 2, + "gig.year" + ], + [ + 2, + "performance.year" + ] + ], + "linking_list_col": [ + [ + "concert.concert_id", + "gig.concert_id" + ], + [ + "concert.concert_id", + "performance.concert_id" + ], + [ + "gig.concert_id", + "performance.concert_id" + ], + [ + "concert.concert_name", + "gig.concert_name" + ], + [ + "concert.concert_name", + "performance.concert_name" + ], + [ + "gig.concert_name", + "performance.concert_name" + ], + [ + "concert.theme", + "gig.theme" + ], + [ + "concert.theme", + "performance.theme" + ], + [ + "gig.theme", + "performance.theme" + ], + [ + "concert.stadium_id", + "gig.stadium_id" + ], + [ + "concert.stadium_id", + "performance.stadium_id" + ], + [ + "gig.stadium_id", + "performance.stadium_id" + ], + [ + "concert.year", + "gig.year" + ], + [ + "concert.year", + "performance.year" + ], + [ + "gig.year", + "performance.year" + ] + ] + }, + { + "question": "what are the #names# and #locations of the stadiums# that had concerts that occurred in both #2014# and 2015?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "gig": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "performance": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ] + }, + "linking_list": [ + [ + "names", + "stadium.name" + ], + [ + "locations of the stadiums", + "stadium.location" + ], + [ + "2014", + "concert.year" + ], + [ + "2014", + "gig.year" + ], + [ + "2014", + "performance.year" + ] + ], + "linking_list_idx": [ + [ + 0, + "stadium.name" + ], + [ + 1, + "stadium.location" + ], + [ + 2, + "concert.year" + ], + [ + 2, + "gig.year" + ], + [ + 2, + "performance.year" + ] + ], + "linking_list_col": [ + [ + "concert.concert_id", + "gig.concert_id" + ], + [ + "concert.concert_id", + "performance.concert_id" + ], + [ + "gig.concert_id", + "performance.concert_id" + ], + [ + "concert.concert_name", + "gig.concert_name" + ], + [ + "concert.concert_name", + "performance.concert_name" + ], + [ + "gig.concert_name", + "performance.concert_name" + ], + [ + "concert.theme", + "gig.theme" + ], + [ + "concert.theme", + "performance.theme" + ], + [ + "gig.theme", + "performance.theme" + ], + [ + "concert.stadium_id", + "gig.stadium_id" + ], + [ + "concert.stadium_id", + "performance.stadium_id" + ], + [ + "gig.stadium_id", + "performance.stadium_id" + ], + [ + "concert.year", + "gig.year" + ], + [ + "concert.year", + "performance.year" + ], + [ + "gig.year", + "performance.year" + ] + ] + }, + { + "question": "find the number of pets whose #weight# is heavier than 10.", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "weight", + "pets.weight" + ], + [ + "weight", + "Animals.weight" + ], + [ + "weight", + "Companions.weight" + ] + ], + "linking_list_idx": [ + [ + 0, + "pets.weight" + ], + [ + 0, + "Animals.weight" + ], + [ + 0, + "Companions.weight" + ] + ], + "linking_list_col": [ + [ + "pets.petid", + "animals.petid" + ], + [ + "pets.petid", + "companions.petid" + ], + [ + "animals.petid", + "companions.petid" + ], + [ + "pets.pettype", + "animals.pettype" + ], + [ + "pets.pettype", + "companions.pettype" + ], + [ + "animals.pettype", + "companions.pettype" + ], + [ + "pets.pet_age", + "animals.pet_age" + ], + [ + "pets.pet_age", + "companions.pet_age" + ], + [ + "animals.pet_age", + "companions.pet_age" + ], + [ + "pets.weight", + "animals.weight" + ], + [ + "pets.weight", + "companions.weight" + ], + [ + "animals.weight", + "companions.weight" + ] + ] + }, + { + "question": "how many pets have a greater #weight# than 10?", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "weight", + "pets.weight" + ], + [ + "weight", + "Animals.weight" + ], + [ + "weight", + "Companions.weight" + ] + ], + "linking_list_idx": [ + [ + 0, + "pets.weight" + ], + [ + 0, + "Animals.weight" + ], + [ + 0, + "Companions.weight" + ] + ], + "linking_list_col": [ + [ + "pets.petid", + "animals.petid" + ], + [ + "pets.petid", + "companions.petid" + ], + [ + "animals.petid", + "companions.petid" + ], + [ + "pets.pettype", + "animals.pettype" + ], + [ + "pets.pettype", + "companions.pettype" + ], + [ + "animals.pettype", + "companions.pettype" + ], + [ + "pets.pet_age", + "animals.pet_age" + ], + [ + "pets.pet_age", + "companions.pet_age" + ], + [ + "animals.pet_age", + "companions.pet_age" + ], + [ + "pets.weight", + "animals.weight" + ], + [ + "pets.weight", + "companions.weight" + ], + [ + "animals.weight", + "companions.weight" + ] + ] + }, + { + "question": "find the #maximum weight# for each type of pet. list the maximum weight and #pet type# .", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "maximum weight", + "pets.weight" + ], + [ + "maximum weight", + "Animals.weight" + ], + [ + "maximum weight", + "Companions.weight" + ], + [ + "pet type", + "pets.pettype" + ], + [ + "pet type", + "Animals.pettype" + ], + [ + "pet type", + "Companions.pettype" + ] + ], + "linking_list_idx": [ + [ + 0, + "pets.weight" + ], + [ + 0, + "Animals.weight" + ], + [ + 0, + "Companions.weight" + ], + [ + 1, + "pets.pettype" + ], + [ + 1, + "Animals.pettype" + ], + [ + 1, + "Companions.pettype" + ] + ], + "linking_list_col": [ + [ + "pets.petid", + "animals.petid" + ], + [ + "pets.petid", + "companions.petid" + ], + [ + "animals.petid", + "companions.petid" + ], + [ + "pets.pettype", + "animals.pettype" + ], + [ + "pets.pettype", + "companions.pettype" + ], + [ + "animals.pettype", + "companions.pettype" + ], + [ + "pets.pet_age", + "animals.pet_age" + ], + [ + "pets.pet_age", + "companions.pet_age" + ], + [ + "animals.pet_age", + "companions.pet_age" + ], + [ + "pets.weight", + "animals.weight" + ], + [ + "pets.weight", + "companions.weight" + ], + [ + "animals.weight", + "companions.weight" + ] + ] + }, + { + "question": "list the #maximum weight# and type for each #type of pet# .", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "maximum weight", + "pets.weight" + ], + [ + "maximum weight", + "Animals.weight" + ], + [ + "maximum weight", + "Companions.weight" + ], + [ + "type of pet", + "pets.pettype" + ], + [ + "type of pet", + "Animals.pettype" + ], + [ + "type of pet", + "Companions.pettype" + ] + ], + "linking_list_idx": [ + [ + 0, + "pets.weight" + ], + [ + 0, + "Animals.weight" + ], + [ + 0, + "Companions.weight" + ], + [ + 1, + "pets.pettype" + ], + [ + 1, + "Animals.pettype" + ], + [ + 1, + "Companions.pettype" + ] + ], + "linking_list_col": [ + [ + "pets.petid", + "animals.petid" + ], + [ + "pets.petid", + "companions.petid" + ], + [ + "animals.petid", + "companions.petid" + ], + [ + "pets.pettype", + "animals.pettype" + ], + [ + "pets.pettype", + "companions.pettype" + ], + [ + "animals.pettype", + "companions.pettype" + ], + [ + "pets.pet_age", + "animals.pet_age" + ], + [ + "pets.pet_age", + "companions.pet_age" + ], + [ + "animals.pet_age", + "companions.pet_age" + ], + [ + "pets.weight", + "animals.weight" + ], + [ + "pets.weight", + "companions.weight" + ], + [ + "animals.weight", + "companions.weight" + ] + ] + }, + { + "question": "find #number of pets# owned by students who are #older than 20# .", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "owns": [ + "stuid", + "petid" + ], + "has_animal": [ + "stuid", + "petid" + ] + }, + "linking_list": [ + [ + "number of pets", + "has_pet.petid" + ], + [ + "number of pets", + "owns.petid" + ], + [ + "number of pets", + "has_animal.petid" + ], + [ + "older than 20", + "student.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "has_pet.petid" + ], + [ + 0, + "owns.petid" + ], + [ + 0, + "has_animal.petid" + ], + [ + 1, + "student.age" + ] + ], + "linking_list_col": [ + [ + "has_pet.stuid", + "owns.stuid" + ], + [ + "has_pet.stuid", + "has_animal.stuid" + ], + [ + "owns.stuid", + "has_animal.stuid" + ], + [ + "has_pet.petid", + "owns.petid" + ], + [ + "has_pet.petid", + "has_animal.petid" + ], + [ + "owns.petid", + "has_animal.petid" + ] + ] + }, + { + "question": "how many #pets# are owned by students that have an #age# greater than 20?", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "owns": [ + "stuid", + "petid" + ], + "has_animal": [ + "stuid", + "petid" + ] + }, + "linking_list": [ + [ + "pets", + "has_pet.petid" + ], + [ + "pets", + "owns.petid" + ], + [ + "pets", + "has_animal.petid" + ], + [ + "age", + "student.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "has_pet.petid" + ], + [ + 0, + "owns.petid" + ], + [ + 0, + "has_animal.petid" + ], + [ + 1, + "student.age" + ] + ], + "linking_list_col": [ + [ + "has_pet.stuid", + "owns.stuid" + ], + [ + "has_pet.stuid", + "has_animal.stuid" + ], + [ + "owns.stuid", + "has_animal.stuid" + ], + [ + "has_pet.petid", + "owns.petid" + ], + [ + "has_pet.petid", + "has_animal.petid" + ], + [ + "owns.petid", + "has_animal.petid" + ] + ] + }, + { + "question": "find the number of #dog pets# that are raised by #female students# (with sex f).", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "dog pets", + "pets.pettype" + ], + [ + "dog pets", + "Animals.pettype" + ], + [ + "dog pets", + "Companions.pettype" + ], + [ + "female students", + "student.sex" + ] + ], + "linking_list_idx": [ + [ + 0, + "pets.pettype" + ], + [ + 0, + "Animals.pettype" + ], + [ + 0, + "Companions.pettype" + ], + [ + 1, + "student.sex" + ] + ], + "linking_list_col": [ + [ + "pets.petid", + "animals.petid" + ], + [ + "pets.petid", + "companions.petid" + ], + [ + "animals.petid", + "companions.petid" + ], + [ + "pets.pettype", + "animals.pettype" + ], + [ + "pets.pettype", + "companions.pettype" + ], + [ + "animals.pettype", + "companions.pettype" + ], + [ + "pets.pet_age", + "animals.pet_age" + ], + [ + "pets.pet_age", + "companions.pet_age" + ], + [ + "animals.pet_age", + "companions.pet_age" + ], + [ + "pets.weight", + "animals.weight" + ], + [ + "pets.weight", + "companions.weight" + ], + [ + "animals.weight", + "companions.weight" + ] + ] + }, + { + "question": "how many #dog pets# are raised by female students?", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "dog pets", + "pets.pettype" + ], + [ + "dog pets", + "Animals.pettype" + ], + [ + "dog pets", + "Companions.pettype" + ] + ], + "linking_list_idx": [ + [ + 0, + "pets.pettype" + ], + [ + 0, + "Animals.pettype" + ], + [ + 0, + "Companions.pettype" + ] + ], + "linking_list_col": [ + [ + "pets.petid", + "animals.petid" + ], + [ + "pets.petid", + "companions.petid" + ], + [ + "animals.petid", + "companions.petid" + ], + [ + "pets.pettype", + "animals.pettype" + ], + [ + "pets.pettype", + "companions.pettype" + ], + [ + "animals.pettype", + "companions.pettype" + ], + [ + "pets.pet_age", + "animals.pet_age" + ], + [ + "pets.pet_age", + "companions.pet_age" + ], + [ + "animals.pet_age", + "companions.pet_age" + ], + [ + "pets.weight", + "animals.weight" + ], + [ + "pets.weight", + "companions.weight" + ], + [ + "animals.weight", + "companions.weight" + ] + ] + }, + { + "question": "find the #first name of students# who have #cat# or #dog# pet.", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "first name of students", + "student.fname" + ], + [ + "cat", + "pets.pettype" + ], + [ + "cat", + "Animals.pettype" + ], + [ + "cat", + "Companions.pettype" + ], + [ + "dog", + "pets.pettype" + ], + [ + "dog", + "Animals.pettype" + ], + [ + "dog", + "Companions.pettype" + ] + ], + "linking_list_idx": [ + [ + 0, + "student.fname" + ], + [ + 1, + "pets.pettype" + ], + [ + 1, + "Animals.pettype" + ], + [ + 1, + "Companions.pettype" + ], + [ + 2, + "pets.pettype" + ], + [ + 2, + "Animals.pettype" + ], + [ + 2, + "Companions.pettype" + ] + ], + "linking_list_col": [ + [ + "pets.petid", + "animals.petid" + ], + [ + "pets.petid", + "companions.petid" + ], + [ + "animals.petid", + "companions.petid" + ], + [ + "pets.pettype", + "animals.pettype" + ], + [ + "pets.pettype", + "companions.pettype" + ], + [ + "animals.pettype", + "companions.pettype" + ], + [ + "pets.pet_age", + "animals.pet_age" + ], + [ + "pets.pet_age", + "companions.pet_age" + ], + [ + "animals.pet_age", + "companions.pet_age" + ], + [ + "pets.weight", + "animals.weight" + ], + [ + "pets.weight", + "companions.weight" + ], + [ + "animals.weight", + "companions.weight" + ] + ] + }, + { + "question": "what are the #first names# of every student who has a #cat# or dog as a pet?", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "first names", + "student.fname" + ], + [ + "cat", + "pets.pettype" + ], + [ + "cat", + "Animals.pettype" + ], + [ + "cat", + "Companions.pettype" + ] + ], + "linking_list_idx": [ + [ + 0, + "student.fname" + ], + [ + 1, + "pets.pettype" + ], + [ + 1, + "Animals.pettype" + ], + [ + 1, + "Companions.pettype" + ] + ], + "linking_list_col": [ + [ + "pets.petid", + "animals.petid" + ], + [ + "pets.petid", + "companions.petid" + ], + [ + "animals.petid", + "companions.petid" + ], + [ + "pets.pettype", + "animals.pettype" + ], + [ + "pets.pettype", + "companions.pettype" + ], + [ + "animals.pettype", + "companions.pettype" + ], + [ + "pets.pet_age", + "animals.pet_age" + ], + [ + "pets.pet_age", + "companions.pet_age" + ], + [ + "animals.pet_age", + "companions.pet_age" + ], + [ + "pets.weight", + "animals.weight" + ], + [ + "pets.weight", + "companions.weight" + ], + [ + "animals.weight", + "companions.weight" + ] + ] + }, + { + "question": "what are the #students' first names# who have both #cats# and dogs as pets?", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "cats", + "pets.pettype" + ], + [ + "cats", + "Animals.pettype" + ], + [ + "cats", + "Companions.pettype" + ], + [ + "students' first names", + "student.fname" + ] + ], + "linking_list_idx": [ + [ + 0, + "pets.pettype" + ], + [ + 0, + "Animals.pettype" + ], + [ + 0, + "Companions.pettype" + ], + [ + 1, + "student.fname" + ] + ], + "linking_list_col": [ + [ + "pets.petid", + "animals.petid" + ], + [ + "pets.petid", + "companions.petid" + ], + [ + "animals.petid", + "companions.petid" + ], + [ + "pets.pettype", + "animals.pettype" + ], + [ + "pets.pettype", + "companions.pettype" + ], + [ + "animals.pettype", + "companions.pettype" + ], + [ + "pets.pet_age", + "animals.pet_age" + ], + [ + "pets.pet_age", + "companions.pet_age" + ], + [ + "animals.pet_age", + "companions.pet_age" + ], + [ + "pets.weight", + "animals.weight" + ], + [ + "pets.weight", + "companions.weight" + ], + [ + "animals.weight", + "companions.weight" + ] + ] + }, + { + "question": "find the #major# and #age of students# who do not have a #cat pet# .", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "major", + "student.major" + ], + [ + "age of students", + "student.age" + ], + [ + "cat pet", + "pets.pettype" + ], + [ + "cat pet", + "Animals.pettype" + ], + [ + "cat pet", + "Companions.pettype" + ] + ], + "linking_list_idx": [ + [ + 0, + "student.major" + ], + [ + 1, + "student.age" + ], + [ + 2, + "pets.pettype" + ], + [ + 2, + "Animals.pettype" + ], + [ + 2, + "Companions.pettype" + ] + ], + "linking_list_col": [ + [ + "pets.petid", + "animals.petid" + ], + [ + "pets.petid", + "companions.petid" + ], + [ + "animals.petid", + "companions.petid" + ], + [ + "pets.pettype", + "animals.pettype" + ], + [ + "pets.pettype", + "companions.pettype" + ], + [ + "animals.pettype", + "companions.pettype" + ], + [ + "pets.pet_age", + "animals.pet_age" + ], + [ + "pets.pet_age", + "companions.pet_age" + ], + [ + "animals.pet_age", + "companions.pet_age" + ], + [ + "pets.weight", + "animals.weight" + ], + [ + "pets.weight", + "companions.weight" + ], + [ + "animals.weight", + "companions.weight" + ] + ] + }, + { + "question": "what #major# is every student who does not own a #cat as a pet# , and also how old are they?", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "major", + "student.major" + ], + [ + "cat as a pet", + "pets.pettype" + ], + [ + "cat as a pet", + "Animals.pettype" + ], + [ + "cat as a pet", + "Companions.pettype" + ] + ], + "linking_list_idx": [ + [ + 0, + "student.major" + ], + [ + 1, + "pets.pettype" + ], + [ + 1, + "Animals.pettype" + ], + [ + 1, + "Companions.pettype" + ] + ], + "linking_list_col": [ + [ + "pets.petid", + "animals.petid" + ], + [ + "pets.petid", + "companions.petid" + ], + [ + "animals.petid", + "companions.petid" + ], + [ + "pets.pettype", + "animals.pettype" + ], + [ + "pets.pettype", + "companions.pettype" + ], + [ + "animals.pettype", + "companions.pettype" + ], + [ + "pets.pet_age", + "animals.pet_age" + ], + [ + "pets.pet_age", + "companions.pet_age" + ], + [ + "animals.pet_age", + "companions.pet_age" + ], + [ + "pets.weight", + "animals.weight" + ], + [ + "pets.weight", + "companions.weight" + ], + [ + "animals.weight", + "companions.weight" + ] + ] + }, + { + "question": "find the #id of students# who do not have a #cat pet# .", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "id of students", + "student.stuid" + ], + [ + "cat pet", + "pets.pettype" + ], + [ + "cat pet", + "Animals.pettype" + ], + [ + "cat pet", + "Companions.pettype" + ] + ], + "linking_list_idx": [ + [ + 0, + "student.stuid" + ], + [ + 1, + "pets.pettype" + ], + [ + 1, + "Animals.pettype" + ], + [ + 1, + "Companions.pettype" + ] + ], + "linking_list_col": [ + [ + "pets.petid", + "animals.petid" + ], + [ + "pets.petid", + "companions.petid" + ], + [ + "animals.petid", + "companions.petid" + ], + [ + "pets.pettype", + "animals.pettype" + ], + [ + "pets.pettype", + "companions.pettype" + ], + [ + "animals.pettype", + "companions.pettype" + ], + [ + "pets.pet_age", + "animals.pet_age" + ], + [ + "pets.pet_age", + "companions.pet_age" + ], + [ + "animals.pet_age", + "companions.pet_age" + ], + [ + "pets.weight", + "animals.weight" + ], + [ + "pets.weight", + "companions.weight" + ], + [ + "animals.weight", + "companions.weight" + ] + ] + }, + { + "question": "find the #first name# and #age of students# who have a #dog# but do not have a #cat as a pet# .", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "first name", + "student.fname" + ], + [ + "age of students", + "student.age" + ], + [ + "dog", + "pets.pettype" + ], + [ + "dog", + "Animals.pettype" + ], + [ + "dog", + "Companions.pettype" + ], + [ + "cat as a pet", + "pets.pettype" + ], + [ + "cat as a pet", + "Animals.pettype" + ], + [ + "cat as a pet", + "Companions.pettype" + ] + ], + "linking_list_idx": [ + [ + 0, + "student.fname" + ], + [ + 1, + "student.age" + ], + [ + 2, + "pets.pettype" + ], + [ + 2, + "Animals.pettype" + ], + [ + 2, + "Companions.pettype" + ], + [ + 3, + "pets.pettype" + ], + [ + 3, + "Animals.pettype" + ], + [ + 3, + "Companions.pettype" + ] + ], + "linking_list_col": [ + [ + "pets.petid", + "animals.petid" + ], + [ + "pets.petid", + "companions.petid" + ], + [ + "animals.petid", + "companions.petid" + ], + [ + "pets.pettype", + "animals.pettype" + ], + [ + "pets.pettype", + "companions.pettype" + ], + [ + "animals.pettype", + "companions.pettype" + ], + [ + "pets.pet_age", + "animals.pet_age" + ], + [ + "pets.pet_age", + "companions.pet_age" + ], + [ + "animals.pet_age", + "companions.pet_age" + ], + [ + "pets.weight", + "animals.weight" + ], + [ + "pets.weight", + "companions.weight" + ], + [ + "animals.weight", + "companions.weight" + ] + ] + }, + { + "question": "what is the #first name# of every student who has a #dog# but does not have a cat?", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "first name", + "student.fname" + ], + [ + "dog", + "pets.pettype" + ], + [ + "dog", + "Animals.pettype" + ], + [ + "dog", + "Companions.pettype" + ] + ], + "linking_list_idx": [ + [ + 0, + "student.fname" + ], + [ + 1, + "pets.pettype" + ], + [ + 1, + "Animals.pettype" + ], + [ + 1, + "Companions.pettype" + ] + ], + "linking_list_col": [ + [ + "pets.petid", + "animals.petid" + ], + [ + "pets.petid", + "companions.petid" + ], + [ + "animals.petid", + "companions.petid" + ], + [ + "pets.pettype", + "animals.pettype" + ], + [ + "pets.pettype", + "companions.pettype" + ], + [ + "animals.pettype", + "companions.pettype" + ], + [ + "pets.pet_age", + "animals.pet_age" + ], + [ + "pets.pet_age", + "companions.pet_age" + ], + [ + "animals.pet_age", + "companions.pet_age" + ], + [ + "pets.weight", + "animals.weight" + ], + [ + "pets.weight", + "companions.weight" + ], + [ + "animals.weight", + "companions.weight" + ] + ] + }, + { + "question": "find the #type# and #weight of the youngest pet# .", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "type", + "pets.pettype" + ], + [ + "type", + "Animals.pettype" + ], + [ + "type", + "Companions.pettype" + ], + [ + "weight of the youngest pet", + "pets.weight" + ], + [ + "weight of the youngest pet", + "Animals.weight" + ], + [ + "weight of the youngest pet", + "Companions.weight" + ] + ], + "linking_list_idx": [ + [ + 0, + "pets.pettype" + ], + [ + 0, + "Animals.pettype" + ], + [ + 0, + "Companions.pettype" + ], + [ + 1, + "pets.weight" + ], + [ + 1, + "Animals.weight" + ], + [ + 1, + "Companions.weight" + ] + ], + "linking_list_col": [ + [ + "pets.petid", + "animals.petid" + ], + [ + "pets.petid", + "companions.petid" + ], + [ + "animals.petid", + "companions.petid" + ], + [ + "pets.pettype", + "animals.pettype" + ], + [ + "pets.pettype", + "companions.pettype" + ], + [ + "animals.pettype", + "companions.pettype" + ], + [ + "pets.pet_age", + "animals.pet_age" + ], + [ + "pets.pet_age", + "companions.pet_age" + ], + [ + "animals.pet_age", + "companions.pet_age" + ], + [ + "pets.weight", + "animals.weight" + ], + [ + "pets.weight", + "companions.weight" + ], + [ + "animals.weight", + "companions.weight" + ] + ] + }, + { + "question": "what #type of pet is the youngest animal# , and how much does it weigh?", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "type of pet is the youngest animal", + "pets.pettype" + ], + [ + "type of pet is the youngest animal", + "Animals.pettype" + ], + [ + "type of pet is the youngest animal", + "Companions.pettype" + ] + ], + "linking_list_idx": [ + [ + 0, + "pets.pettype" + ], + [ + 0, + "Animals.pettype" + ], + [ + 0, + "Companions.pettype" + ] + ], + "linking_list_col": [ + [ + "pets.petid", + "animals.petid" + ], + [ + "pets.petid", + "companions.petid" + ], + [ + "animals.petid", + "companions.petid" + ], + [ + "pets.pettype", + "animals.pettype" + ], + [ + "pets.pettype", + "companions.pettype" + ], + [ + "animals.pettype", + "companions.pettype" + ], + [ + "pets.pet_age", + "animals.pet_age" + ], + [ + "pets.pet_age", + "companions.pet_age" + ], + [ + "animals.pet_age", + "companions.pet_age" + ], + [ + "pets.weight", + "animals.weight" + ], + [ + "pets.weight", + "companions.weight" + ], + [ + "animals.weight", + "companions.weight" + ] + ] + }, + { + "question": "find the #id# and #weight# of all pets whose #age# is older than 1.", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "id", + "pets.petid" + ], + [ + "id", + "Animals.petid" + ], + [ + "id", + "Companions.petid" + ], + [ + "weight", + "pets.weight" + ], + [ + "weight", + "Animals.weight" + ], + [ + "weight", + "Companions.weight" + ], + [ + "age", + "pets.pet_age" + ], + [ + "age", + "Animals.pet_age" + ], + [ + "age", + "Companions.pet_age" + ] + ], + "linking_list_idx": [ + [ + 0, + "pets.petid" + ], + [ + 0, + "Animals.petid" + ], + [ + 0, + "Companions.petid" + ], + [ + 1, + "pets.weight" + ], + [ + 1, + "Animals.weight" + ], + [ + 1, + "Companions.weight" + ], + [ + 2, + "pets.pet_age" + ], + [ + 2, + "Animals.pet_age" + ], + [ + 2, + "Companions.pet_age" + ] + ], + "linking_list_col": [ + [ + "pets.petid", + "animals.petid" + ], + [ + "pets.petid", + "companions.petid" + ], + [ + "animals.petid", + "companions.petid" + ], + [ + "pets.pettype", + "animals.pettype" + ], + [ + "pets.pettype", + "companions.pettype" + ], + [ + "animals.pettype", + "companions.pettype" + ], + [ + "pets.pet_age", + "animals.pet_age" + ], + [ + "pets.pet_age", + "companions.pet_age" + ], + [ + "animals.pet_age", + "companions.pet_age" + ], + [ + "pets.weight", + "animals.weight" + ], + [ + "pets.weight", + "companions.weight" + ], + [ + "animals.weight", + "companions.weight" + ] + ] + }, + { + "question": "what is the #id# and #weight# of every pet who is older than 1?", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "id", + "pets.petid" + ], + [ + "id", + "Animals.petid" + ], + [ + "id", + "Companions.petid" + ], + [ + "weight", + "pets.weight" + ], + [ + "weight", + "Animals.weight" + ], + [ + "weight", + "Companions.weight" + ] + ], + "linking_list_idx": [ + [ + 0, + "pets.petid" + ], + [ + 0, + "Animals.petid" + ], + [ + 0, + "Companions.petid" + ], + [ + 1, + "pets.weight" + ], + [ + 1, + "Animals.weight" + ], + [ + 1, + "Companions.weight" + ] + ], + "linking_list_col": [ + [ + "pets.petid", + "animals.petid" + ], + [ + "pets.petid", + "companions.petid" + ], + [ + "animals.petid", + "companions.petid" + ], + [ + "pets.pettype", + "animals.pettype" + ], + [ + "pets.pettype", + "companions.pettype" + ], + [ + "animals.pettype", + "companions.pettype" + ], + [ + "pets.pet_age", + "animals.pet_age" + ], + [ + "pets.pet_age", + "companions.pet_age" + ], + [ + "animals.pet_age", + "companions.pet_age" + ], + [ + "pets.weight", + "animals.weight" + ], + [ + "pets.weight", + "companions.weight" + ], + [ + "animals.weight", + "companions.weight" + ] + ] + }, + { + "question": "find the #average and maximum age for each type of pet# .", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "average and maximum age for each type of pet", + "pets.pet_age" + ], + [ + "average and maximum age for each type of pet", + "Animals.pet_age" + ], + [ + "average and maximum age for each type of pet", + "Companions.pet_age" + ] + ], + "linking_list_idx": [ + [ + 0, + "pets.pet_age" + ], + [ + 0, + "Animals.pet_age" + ], + [ + 0, + "Companions.pet_age" + ] + ], + "linking_list_col": [ + [ + "pets.petid", + "animals.petid" + ], + [ + "pets.petid", + "companions.petid" + ], + [ + "animals.petid", + "companions.petid" + ], + [ + "pets.pettype", + "animals.pettype" + ], + [ + "pets.pettype", + "companions.pettype" + ], + [ + "animals.pettype", + "companions.pettype" + ], + [ + "pets.pet_age", + "animals.pet_age" + ], + [ + "pets.pet_age", + "companions.pet_age" + ], + [ + "animals.pet_age", + "companions.pet_age" + ], + [ + "pets.weight", + "animals.weight" + ], + [ + "pets.weight", + "companions.weight" + ], + [ + "animals.weight", + "companions.weight" + ] + ] + }, + { + "question": "find the #average weight for each pet type# .", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "average weight for each pet type", + "pets.weight" + ], + [ + "average weight for each pet type", + "Animals.weight" + ], + [ + "average weight for each pet type", + "Companions.weight" + ] + ], + "linking_list_idx": [ + [ + 0, + "pets.weight" + ], + [ + 0, + "Animals.weight" + ], + [ + 0, + "Companions.weight" + ] + ], + "linking_list_col": [ + [ + "pets.petid", + "animals.petid" + ], + [ + "pets.petid", + "companions.petid" + ], + [ + "animals.petid", + "companions.petid" + ], + [ + "pets.pettype", + "animals.pettype" + ], + [ + "pets.pettype", + "companions.pettype" + ], + [ + "animals.pettype", + "companions.pettype" + ], + [ + "pets.pet_age", + "animals.pet_age" + ], + [ + "pets.pet_age", + "companions.pet_age" + ], + [ + "animals.pet_age", + "companions.pet_age" + ], + [ + "pets.weight", + "animals.weight" + ], + [ + "pets.weight", + "companions.weight" + ], + [ + "animals.weight", + "companions.weight" + ] + ] + }, + { + "question": "find the #number of pets for each student# who has any pet and student id.", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "owns": [ + "stuid", + "petid" + ], + "has_animal": [ + "stuid", + "petid" + ] + }, + "linking_list": [ + [ + "number of pets for each student", + "has_pet.petid" + ], + [ + "number of pets for each student", + "owns.petid" + ], + [ + "number of pets for each student", + "has_animal.petid" + ] + ], + "linking_list_idx": [ + [ + 0, + "has_pet.petid" + ], + [ + 0, + "owns.petid" + ], + [ + 0, + "has_animal.petid" + ] + ], + "linking_list_col": [ + [ + "has_pet.stuid", + "owns.stuid" + ], + [ + "has_pet.stuid", + "has_animal.stuid" + ], + [ + "owns.stuid", + "has_animal.stuid" + ], + [ + "has_pet.petid", + "owns.petid" + ], + [ + "has_pet.petid", + "has_animal.petid" + ], + [ + "owns.petid", + "has_animal.petid" + ] + ] + }, + { + "question": "find the #last name of the student# who has a #cat that is age# 3.", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "last name of the student", + "student.lname" + ], + [ + "cat that is age", + "pets.pettype" + ], + [ + "cat that is age", + "Animals.pettype" + ], + [ + "cat that is age", + "Companions.pettype" + ] + ], + "linking_list_idx": [ + [ + 0, + "student.lname" + ], + [ + 1, + "pets.pettype" + ], + [ + 1, + "Animals.pettype" + ], + [ + 1, + "Companions.pettype" + ] + ], + "linking_list_col": [ + [ + "pets.petid", + "animals.petid" + ], + [ + "pets.petid", + "companions.petid" + ], + [ + "animals.petid", + "companions.petid" + ], + [ + "pets.pettype", + "animals.pettype" + ], + [ + "pets.pettype", + "companions.pettype" + ], + [ + "animals.pettype", + "companions.pettype" + ], + [ + "pets.pet_age", + "animals.pet_age" + ], + [ + "pets.pet_age", + "companions.pet_age" + ], + [ + "animals.pet_age", + "companions.pet_age" + ], + [ + "pets.weight", + "animals.weight" + ], + [ + "pets.weight", + "companions.weight" + ], + [ + "animals.weight", + "companions.weight" + ] + ] + }, + { + "question": "how many #models# does each car maker produce? list #maker full name# , #id# and the number.", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "car_models": [ + "modelid", + "maker", + "model" + ], + "vehicle_models": [ + "modelid", + "maker", + "model" + ] + }, + "linking_list": [ + [ + "models", + "model_list.model" + ], + [ + "models", + "car_models.model" + ], + [ + "models", + "vehicle_models.model" + ], + [ + "maker full name", + "car_makers.fullname" + ], + [ + "id", + "car_makers.id" + ] + ], + "linking_list_idx": [ + [ + 0, + "model_list.model" + ], + [ + 0, + "car_models.model" + ], + [ + 0, + "vehicle_models.model" + ], + [ + 1, + "car_makers.fullname" + ], + [ + 2, + "car_makers.id" + ] + ], + "linking_list_col": [ + [ + "model_list.modelid", + "car_models.modelid" + ], + [ + "model_list.modelid", + "vehicle_models.modelid" + ], + [ + "car_models.modelid", + "vehicle_models.modelid" + ], + [ + "model_list.maker", + "car_models.maker" + ], + [ + "model_list.maker", + "vehicle_models.maker" + ], + [ + "car_models.maker", + "vehicle_models.maker" + ], + [ + "model_list.model", + "car_models.model" + ], + [ + "model_list.model", + "vehicle_models.model" + ], + [ + "car_models.model", + "vehicle_models.model" + ] + ] + }, + { + "question": "what is the #full name of each car maker# , along with its #id# and how many #models# it produces?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "car_models": [ + "modelid", + "maker", + "model" + ], + "vehicle_models": [ + "modelid", + "maker", + "model" + ] + }, + "linking_list": [ + [ + "full name of each car maker", + "car_makers.fullname" + ], + [ + "id", + "car_makers.id" + ], + [ + "models", + "model_list.model" + ], + [ + "models", + "car_models.model" + ], + [ + "models", + "vehicle_models.model" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_makers.fullname" + ], + [ + 1, + "car_makers.id" + ], + [ + 2, + "model_list.model" + ], + [ + 2, + "car_models.model" + ], + [ + 2, + "vehicle_models.model" + ] + ], + "linking_list_col": [ + [ + "model_list.modelid", + "car_models.modelid" + ], + [ + "model_list.modelid", + "vehicle_models.modelid" + ], + [ + "car_models.modelid", + "vehicle_models.modelid" + ], + [ + "model_list.maker", + "car_models.maker" + ], + [ + "model_list.maker", + "vehicle_models.maker" + ], + [ + "car_models.maker", + "vehicle_models.maker" + ], + [ + "model_list.model", + "car_models.model" + ], + [ + "model_list.model", + "vehicle_models.model" + ], + [ + "car_models.model", + "vehicle_models.model" + ] + ] + }, + { + "question": "find the #model# of the car whose #weight# is below the average weight.", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "model", + "car_names.model" + ], + [ + "weight", + "cars_data.weight" + ], + [ + "weight", + "vehicle_data.weight" + ], + [ + "weight", + "auto_data.weight" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_names.model" + ], + [ + 1, + "cars_data.weight" + ], + [ + 1, + "vehicle_data.weight" + ], + [ + 1, + "auto_data.weight" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "what is the #model# for the car with a #weight# smaller than the average?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "model", + "car_names.model" + ], + [ + "weight", + "cars_data.weight" + ], + [ + "weight", + "vehicle_data.weight" + ], + [ + "weight", + "auto_data.weight" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_names.model" + ], + [ + 1, + "cars_data.weight" + ], + [ + 1, + "vehicle_data.weight" + ], + [ + 1, + "auto_data.weight" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "find the #name of the makers# that produced some cars in the #year# of 1970?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "name of the makers", + "car_makers.maker" + ], + [ + "year", + "cars_data.year" + ], + [ + "year", + "vehicle_data.year" + ], + [ + "year", + "auto_data.year" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_makers.maker" + ], + [ + 1, + "cars_data.year" + ], + [ + 1, + "vehicle_data.year" + ], + [ + 1, + "auto_data.year" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "find the #make# and #production time of the cars# that were produced in the earliest year?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "make", + "car_names.make" + ], + [ + "production time of the cars", + "cars_data.year" + ], + [ + "production time of the cars", + "vehicle_data.year" + ], + [ + "production time of the cars", + "auto_data.year" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_names.make" + ], + [ + 1, + "cars_data.year" + ], + [ + 1, + "vehicle_data.year" + ], + [ + 1, + "auto_data.year" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "what is the #maker# of the carr produced in the earliest #year# and what year was it?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "maker", + "car_names.make" + ], + [ + "year", + "cars_data.year" + ], + [ + "year", + "vehicle_data.year" + ], + [ + "year", + "auto_data.year" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_names.make" + ], + [ + 1, + "cars_data.year" + ], + [ + 1, + "vehicle_data.year" + ], + [ + 1, + "auto_data.year" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "what is the #number of car models# that are produced by each maker and what is the #id# and full name of each maker?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "car_models": [ + "modelid", + "maker", + "model" + ], + "vehicle_models": [ + "modelid", + "maker", + "model" + ] + }, + "linking_list": [ + [ + "number of car models", + "model_list.model" + ], + [ + "number of car models", + "car_models.model" + ], + [ + "number of car models", + "vehicle_models.model" + ], + [ + "id", + "car_makers.id" + ] + ], + "linking_list_idx": [ + [ + 0, + "model_list.model" + ], + [ + 0, + "car_models.model" + ], + [ + 0, + "vehicle_models.model" + ], + [ + 1, + "car_makers.id" + ] + ], + "linking_list_col": [ + [ + "model_list.modelid", + "car_models.modelid" + ], + [ + "model_list.modelid", + "vehicle_models.modelid" + ], + [ + "car_models.modelid", + "vehicle_models.modelid" + ], + [ + "model_list.maker", + "car_models.maker" + ], + [ + "model_list.maker", + "vehicle_models.maker" + ], + [ + "car_models.maker", + "vehicle_models.maker" + ], + [ + "model_list.model", + "car_models.model" + ], + [ + "model_list.model", + "vehicle_models.model" + ], + [ + "car_models.model", + "vehicle_models.model" + ] + ] + }, + { + "question": "what is the #accelerate of the car make# amc hornet sportabout (sw)?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "accelerate of the car make", + "cars_data.accelerate" + ], + [ + "accelerate of the car make", + "vehicle_data.accelerate" + ], + [ + "accelerate of the car make", + "auto_data.accelerate" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.accelerate" + ], + [ + 0, + "vehicle_data.accelerate" + ], + [ + 0, + "auto_data.accelerate" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "how much does the car #accelerate# that makes amc hornet sportabout (sw)?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "accelerate", + "cars_data.accelerate" + ], + [ + "accelerate", + "vehicle_data.accelerate" + ], + [ + "accelerate", + "auto_data.accelerate" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.accelerate" + ], + [ + 0, + "vehicle_data.accelerate" + ], + [ + 0, + "auto_data.accelerate" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "what is the number of #makers# of care in france?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "manufacturers": [ + "id", + "maker", + "fullname", + "country" + ], + "auto_brands": [ + "id", + "maker", + "fullname", + "country" + ] + }, + "linking_list": [ + [ + "makers", + "car_makers.maker" + ], + [ + "makers", + "manufacturers.maker" + ], + [ + "makers", + "auto_brands.maker" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_makers.maker" + ], + [ + 0, + "manufacturers.maker" + ], + [ + 0, + "auto_brands.maker" + ] + ], + "linking_list_col": [ + [ + "car_makers.id", + "manufacturers.id" + ], + [ + "car_makers.id", + "auto_brands.id" + ], + [ + "manufacturers.id", + "auto_brands.id" + ], + [ + "car_makers.maker", + "manufacturers.maker" + ], + [ + "car_makers.maker", + "auto_brands.maker" + ], + [ + "manufacturers.maker", + "auto_brands.maker" + ], + [ + "car_makers.fullname", + "manufacturers.fullname" + ], + [ + "car_makers.fullname", + "auto_brands.fullname" + ], + [ + "manufacturers.fullname", + "auto_brands.fullname" + ], + [ + "car_makers.country", + "manufacturers.country" + ], + [ + "car_makers.country", + "auto_brands.country" + ], + [ + "manufacturers.country", + "auto_brands.country" + ] + ] + }, + { + "question": "how many #car models# are produced in the usa?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "car_models": [ + "modelid", + "maker", + "model" + ], + "vehicle_models": [ + "modelid", + "maker", + "model" + ] + }, + "linking_list": [ + [ + "car models", + "model_list.model" + ], + [ + "car models", + "car_models.model" + ], + [ + "car models", + "vehicle_models.model" + ] + ], + "linking_list_idx": [ + [ + 0, + "model_list.model" + ], + [ + 0, + "car_models.model" + ], + [ + 0, + "vehicle_models.model" + ] + ], + "linking_list_col": [ + [ + "model_list.modelid", + "car_models.modelid" + ], + [ + "model_list.modelid", + "vehicle_models.modelid" + ], + [ + "car_models.modelid", + "vehicle_models.modelid" + ], + [ + "model_list.maker", + "car_models.maker" + ], + [ + "model_list.maker", + "vehicle_models.maker" + ], + [ + "car_models.maker", + "vehicle_models.maker" + ], + [ + "model_list.model", + "car_models.model" + ], + [ + "model_list.model", + "vehicle_models.model" + ], + [ + "car_models.model", + "vehicle_models.model" + ] + ] + }, + { + "question": "what is the #average miles per gallon# of all the cards with 4 cylinders?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "average miles per gallon", + "cars_data.mpg" + ], + [ + "average miles per gallon", + "vehicle_data.mpg" + ], + [ + "average miles per gallon", + "auto_data.mpg" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.mpg" + ], + [ + 0, + "vehicle_data.mpg" + ], + [ + 0, + "auto_data.mpg" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "what is the #number of the cars with horsepower# more than 150?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "number of the cars with horsepower", + "cars_data.id" + ], + [ + "number of the cars with horsepower", + "vehicle_data.id" + ], + [ + "number of the cars with horsepower", + "auto_data.id" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.id" + ], + [ + 0, + "vehicle_data.id" + ], + [ + 0, + "auto_data.id" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "what is the #number of cars with a horsepower# greater than 150?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "number of cars with a horsepower", + "cars_data.id" + ], + [ + "number of cars with a horsepower", + "vehicle_data.id" + ], + [ + "number of cars with a horsepower", + "auto_data.id" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.id" + ], + [ + 0, + "vehicle_data.id" + ], + [ + 0, + "auto_data.id" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "what is the #average weight# and year for each year?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "average weight", + "cars_data.weight" + ], + [ + "average weight", + "vehicle_data.weight" + ], + [ + "average weight", + "auto_data.weight" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.weight" + ], + [ + 0, + "vehicle_data.weight" + ], + [ + 0, + "auto_data.weight" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "what is the #maximum horsepower# and the make of the car models with 3 cylinders?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "maximum horsepower", + "cars_data.horsepower" + ], + [ + "maximum horsepower", + "vehicle_data.horsepower" + ], + [ + "maximum horsepower", + "auto_data.horsepower" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.horsepower" + ], + [ + 0, + "vehicle_data.horsepower" + ], + [ + 0, + "auto_data.horsepower" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "what is the largest amount of #horsepower for the models# with 3 #cylinders# and what #make# is it?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "horsepower for the models", + "cars_data.horsepower" + ], + [ + "horsepower for the models", + "vehicle_data.horsepower" + ], + [ + "horsepower for the models", + "auto_data.horsepower" + ], + [ + "cylinders", + "cars_data.cylinders" + ], + [ + "cylinders", + "vehicle_data.cylinders" + ], + [ + "cylinders", + "auto_data.cylinders" + ], + [ + "make", + "car_names.make" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.horsepower" + ], + [ + 0, + "vehicle_data.horsepower" + ], + [ + 0, + "auto_data.horsepower" + ], + [ + 1, + "cars_data.cylinders" + ], + [ + 1, + "vehicle_data.cylinders" + ], + [ + 1, + "auto_data.cylinders" + ], + [ + 2, + "car_names.make" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "which #model# saves the most gasoline? that is to say, have the maximum #miles per gallon# .", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "model", + "car_names.model" + ], + [ + "miles per gallon", + "cars_data.mpg" + ], + [ + "miles per gallon", + "vehicle_data.mpg" + ], + [ + "miles per gallon", + "auto_data.mpg" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_names.model" + ], + [ + 1, + "cars_data.mpg" + ], + [ + 1, + "vehicle_data.mpg" + ], + [ + 1, + "auto_data.mpg" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "what is the #average edispl of the cars of model# volvo?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "average edispl of the cars of model", + "cars_data.edispl" + ], + [ + "average edispl of the cars of model", + "vehicle_data.edispl" + ], + [ + "average edispl of the cars of model", + "auto_data.edispl" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.edispl" + ], + [ + 0, + "vehicle_data.edispl" + ], + [ + 0, + "auto_data.edispl" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "what is the #maximum accelerate# for different number of cylinders?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "maximum accelerate", + "cars_data.accelerate" + ], + [ + "maximum accelerate", + "vehicle_data.accelerate" + ], + [ + "maximum accelerate", + "auto_data.accelerate" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.accelerate" + ], + [ + 0, + "vehicle_data.accelerate" + ], + [ + 0, + "auto_data.accelerate" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "what is the #maximum accelerate# for all the different cylinders?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "maximum accelerate", + "cars_data.accelerate" + ], + [ + "maximum accelerate", + "vehicle_data.accelerate" + ], + [ + "maximum accelerate", + "auto_data.accelerate" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.accelerate" + ], + [ + 0, + "vehicle_data.accelerate" + ], + [ + 0, + "auto_data.accelerate" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "which #model# has the most version(make) of cars?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "car_models": [ + "makeid", + "model", + "make" + ], + "vehicle_names": [ + "makeid", + "model", + "make" + ] + }, + "linking_list": [ + [ + "model", + "car_names.model" + ], + [ + "model", + "car_models.model" + ], + [ + "model", + "vehicle_names.model" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_names.model" + ], + [ + 0, + "car_models.model" + ], + [ + 0, + "vehicle_names.model" + ] + ], + "linking_list_col": [ + [ + "car_names.makeid", + "car_models.makeid" + ], + [ + "car_names.makeid", + "vehicle_names.makeid" + ], + [ + "car_models.makeid", + "vehicle_names.makeid" + ], + [ + "car_names.model", + "car_models.model" + ], + [ + "car_names.model", + "vehicle_names.model" + ], + [ + "car_models.model", + "vehicle_names.model" + ], + [ + "car_names.make", + "car_models.make" + ], + [ + "car_names.make", + "vehicle_names.make" + ], + [ + "car_models.make", + "vehicle_names.make" + ] + ] + }, + { + "question": "what #model# has the most different versions?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "car_models": [ + "makeid", + "model", + "make" + ], + "vehicle_names": [ + "makeid", + "model", + "make" + ] + }, + "linking_list": [ + [ + "model", + "car_names.model" + ], + [ + "model", + "car_models.model" + ], + [ + "model", + "vehicle_names.model" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_names.model" + ], + [ + 0, + "car_models.model" + ], + [ + 0, + "vehicle_names.model" + ] + ], + "linking_list_col": [ + [ + "car_names.makeid", + "car_models.makeid" + ], + [ + "car_names.makeid", + "vehicle_names.makeid" + ], + [ + "car_models.makeid", + "vehicle_names.makeid" + ], + [ + "car_names.model", + "car_models.model" + ], + [ + "car_names.model", + "vehicle_names.model" + ], + [ + "car_models.model", + "vehicle_names.model" + ], + [ + "car_names.make", + "car_models.make" + ], + [ + "car_names.make", + "vehicle_names.make" + ], + [ + "car_models.make", + "vehicle_names.make" + ] + ] + }, + { + "question": "what is the #number of cars# with more than 4 cylinders?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "number of cars", + "cars_data.id" + ], + [ + "number of cars", + "vehicle_data.id" + ], + [ + "number of cars", + "auto_data.id" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.id" + ], + [ + 0, + "vehicle_data.id" + ], + [ + 0, + "auto_data.id" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "in #1980# , how many cars were made?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "1980", + "cars_data.year" + ], + [ + "1980", + "vehicle_data.year" + ], + [ + "1980", + "auto_data.year" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.year" + ], + [ + 0, + "vehicle_data.year" + ], + [ + 0, + "auto_data.year" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "how many #car models# were produced by the #maker with full name# american motor company?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "car_models": [ + "modelid", + "maker", + "model" + ], + "vehicle_models": [ + "modelid", + "maker", + "model" + ] + }, + "linking_list": [ + [ + "car models", + "model_list.model" + ], + [ + "car models", + "car_models.model" + ], + [ + "car models", + "vehicle_models.model" + ], + [ + "maker with full name", + "car_makers.maker" + ] + ], + "linking_list_idx": [ + [ + 0, + "model_list.model" + ], + [ + 0, + "car_models.model" + ], + [ + 0, + "vehicle_models.model" + ], + [ + 1, + "car_makers.maker" + ] + ], + "linking_list_col": [ + [ + "model_list.modelid", + "car_models.modelid" + ], + [ + "model_list.modelid", + "vehicle_models.modelid" + ], + [ + "car_models.modelid", + "vehicle_models.modelid" + ], + [ + "model_list.maker", + "car_models.maker" + ], + [ + "model_list.maker", + "vehicle_models.maker" + ], + [ + "car_models.maker", + "vehicle_models.maker" + ], + [ + "model_list.model", + "car_models.model" + ], + [ + "model_list.model", + "vehicle_models.model" + ], + [ + "car_models.model", + "vehicle_models.model" + ] + ] + }, + { + "question": "what is the number of #car models# created by the #car maker# american motor company?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "car_models": [ + "modelid", + "maker", + "model" + ], + "vehicle_models": [ + "modelid", + "maker", + "model" + ] + }, + "linking_list": [ + [ + "car models", + "model_list.model" + ], + [ + "car models", + "car_models.model" + ], + [ + "car models", + "vehicle_models.model" + ], + [ + "car maker", + "car_makers.fullname" + ] + ], + "linking_list_idx": [ + [ + 0, + "model_list.model" + ], + [ + 0, + "car_models.model" + ], + [ + 0, + "vehicle_models.model" + ], + [ + 1, + "car_makers.fullname" + ] + ], + "linking_list_col": [ + [ + "model_list.modelid", + "car_models.modelid" + ], + [ + "model_list.modelid", + "vehicle_models.modelid" + ], + [ + "car_models.modelid", + "vehicle_models.modelid" + ], + [ + "model_list.maker", + "car_models.maker" + ], + [ + "model_list.maker", + "vehicle_models.maker" + ], + [ + "car_models.maker", + "vehicle_models.maker" + ], + [ + "model_list.model", + "car_models.model" + ], + [ + "model_list.model", + "vehicle_models.model" + ], + [ + "car_models.model", + "vehicle_models.model" + ] + ] + }, + { + "question": "what is the #horsepower of the car# with the largest accelerate?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "horsepower of the car", + "cars_data.horsepower" + ], + [ + "horsepower of the car", + "vehicle_data.horsepower" + ], + [ + "horsepower of the car", + "auto_data.horsepower" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.horsepower" + ], + [ + 0, + "vehicle_data.horsepower" + ], + [ + 0, + "auto_data.horsepower" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "what is the #horsepower# of the car with the greatest accelerate?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "horsepower", + "cars_data.horsepower" + ], + [ + "horsepower", + "vehicle_data.horsepower" + ], + [ + "horsepower", + "auto_data.horsepower" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.horsepower" + ], + [ + 0, + "vehicle_data.horsepower" + ], + [ + 0, + "auto_data.horsepower" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "for #model# volvo, how many #cylinders# does the car with the least #accelerate# have?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "model", + "car_names.model" + ], + [ + "cylinders", + "cars_data.cylinders" + ], + [ + "cylinders", + "vehicle_data.cylinders" + ], + [ + "cylinders", + "auto_data.cylinders" + ], + [ + "accelerate", + "cars_data.accelerate" + ], + [ + "accelerate", + "vehicle_data.accelerate" + ], + [ + "accelerate", + "auto_data.accelerate" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_names.model" + ], + [ + 1, + "cars_data.cylinders" + ], + [ + 1, + "vehicle_data.cylinders" + ], + [ + 1, + "auto_data.cylinders" + ], + [ + 2, + "cars_data.accelerate" + ], + [ + 2, + "vehicle_data.accelerate" + ], + [ + 2, + "auto_data.accelerate" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "for a #volvo model# , how many #cylinders# does the version with #least accelerate# have?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "volvo model", + "car_names.model" + ], + [ + "cylinders", + "cars_data.cylinders" + ], + [ + "cylinders", + "vehicle_data.cylinders" + ], + [ + "cylinders", + "auto_data.cylinders" + ], + [ + "least accelerate", + "cars_data.accelerate" + ], + [ + "least accelerate", + "vehicle_data.accelerate" + ], + [ + "least accelerate", + "auto_data.accelerate" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_names.model" + ], + [ + 1, + "cars_data.cylinders" + ], + [ + 1, + "vehicle_data.cylinders" + ], + [ + 1, + "auto_data.cylinders" + ], + [ + 2, + "cars_data.accelerate" + ], + [ + 2, + "vehicle_data.accelerate" + ], + [ + 2, + "auto_data.accelerate" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "how many cars have a larger #accelerate# than the car with the largest horsepower?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "accelerate", + "cars_data.accelerate" + ], + [ + "accelerate", + "vehicle_data.accelerate" + ], + [ + "accelerate", + "auto_data.accelerate" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.accelerate" + ], + [ + 0, + "vehicle_data.accelerate" + ], + [ + 0, + "auto_data.accelerate" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "what is the #number of cars# with a greater #accelerate# than the one with the most horsepower?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "number of cars", + "cars_data.id" + ], + [ + "number of cars", + "vehicle_data.id" + ], + [ + "number of cars", + "auto_data.id" + ], + [ + "accelerate", + "cars_data.accelerate" + ], + [ + "accelerate", + "vehicle_data.accelerate" + ], + [ + "accelerate", + "auto_data.accelerate" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.id" + ], + [ + 0, + "vehicle_data.id" + ], + [ + 0, + "auto_data.id" + ], + [ + 1, + "cars_data.accelerate" + ], + [ + 1, + "vehicle_data.accelerate" + ], + [ + 1, + "auto_data.accelerate" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "for the cars with 4 #cylinders# , which #model# has the largest horsepower?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "cylinders", + "cars_data.cylinders" + ], + [ + "cylinders", + "vehicle_data.cylinders" + ], + [ + "cylinders", + "auto_data.cylinders" + ], + [ + "model", + "car_names.model" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.cylinders" + ], + [ + 0, + "vehicle_data.cylinders" + ], + [ + 0, + "auto_data.cylinders" + ], + [ + 1, + "car_names.model" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "for all of the 4 #cylinder cars# , which #model# has the most horsepower?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "cylinder cars", + "cars_data.cylinders" + ], + [ + "cylinder cars", + "vehicle_data.cylinders" + ], + [ + "cylinder cars", + "auto_data.cylinders" + ], + [ + "model", + "car_names.model" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.cylinders" + ], + [ + 0, + "vehicle_data.cylinders" + ], + [ + 0, + "auto_data.cylinders" + ], + [ + 1, + "car_names.model" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "among the cars with more than #lowest horsepower# , which ones do not have more than 3 cylinders? list the #car makeid# and #make name# .", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "lowest horsepower", + "cars_data.horsepower" + ], + [ + "lowest horsepower", + "vehicle_data.horsepower" + ], + [ + "lowest horsepower", + "auto_data.horsepower" + ], + [ + "car makeid", + "car_names.makeid" + ], + [ + "make name", + "car_names.make" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.horsepower" + ], + [ + 0, + "vehicle_data.horsepower" + ], + [ + 0, + "auto_data.horsepower" + ], + [ + 1, + "car_names.makeid" + ], + [ + 2, + "car_names.make" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "which #models# are #lighter than 3500# but not #built by# the 'ford motor company'?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "models", + "model_list.model" + ], + [ + "lighter than 3500", + "cars_data.weight" + ], + [ + "lighter than 3500", + "vehicle_data.weight" + ], + [ + "lighter than 3500", + "auto_data.weight" + ], + [ + "built by", + "car_makers.fullname" + ] + ], + "linking_list_idx": [ + [ + 0, + "model_list.model" + ], + [ + 1, + "cars_data.weight" + ], + [ + 1, + "vehicle_data.weight" + ], + [ + 1, + "auto_data.weight" + ], + [ + 2, + "car_makers.fullname" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "what are the #different models# wthat are #lighter than 3500# but were not built by the ford motor company?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "different models", + "model_list.model" + ], + [ + "lighter than 3500", + "cars_data.weight" + ], + [ + "lighter than 3500", + "vehicle_data.weight" + ], + [ + "lighter than 3500", + "auto_data.weight" + ] + ], + "linking_list_idx": [ + [ + 0, + "model_list.model" + ], + [ + 1, + "cars_data.weight" + ], + [ + 1, + "vehicle_data.weight" + ], + [ + 1, + "auto_data.weight" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "which #country# does #airline# \"jetblue airways\" belong to?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "linking_list": [ + [ + "country", + "airlines.country" + ], + [ + "country", + "carriers.country" + ], + [ + "country", + "aviation_companies.country" + ], + [ + "Airline", + "airlines.airline" + ], + [ + "Airline", + "carriers.airline" + ], + [ + "Airline", + "aviation_companies.airline" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.country" + ], + [ + 0, + "carriers.country" + ], + [ + 0, + "aviation_companies.country" + ], + [ + 1, + "airlines.airline" + ], + [ + 1, + "carriers.airline" + ], + [ + 1, + "aviation_companies.airline" + ] + ], + "linking_list_col": [ + [ + "airlines.uid", + "carriers.uid" + ], + [ + "airlines.uid", + "aviation_companies.uid" + ], + [ + "carriers.uid", + "aviation_companies.uid" + ], + [ + "airlines.airline", + "carriers.airline" + ], + [ + "airlines.airline", + "aviation_companies.airline" + ], + [ + "carriers.airline", + "aviation_companies.airline" + ], + [ + "airlines.abbreviation", + "carriers.abbreviation" + ], + [ + "airlines.abbreviation", + "aviation_companies.abbreviation" + ], + [ + "carriers.abbreviation", + "aviation_companies.abbreviation" + ], + [ + "airlines.country", + "carriers.country" + ], + [ + "airlines.country", + "aviation_companies.country" + ], + [ + "carriers.country", + "aviation_companies.country" + ] + ] + }, + { + "question": "what #country is jetblue airways# affiliated with?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "linking_list": [ + [ + "country is Jetblue Airways", + "airlines.country" + ], + [ + "country is Jetblue Airways", + "carriers.country" + ], + [ + "country is Jetblue Airways", + "aviation_companies.country" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.country" + ], + [ + 0, + "carriers.country" + ], + [ + 0, + "aviation_companies.country" + ] + ], + "linking_list_col": [ + [ + "airlines.uid", + "carriers.uid" + ], + [ + "airlines.uid", + "aviation_companies.uid" + ], + [ + "carriers.uid", + "aviation_companies.uid" + ], + [ + "airlines.airline", + "carriers.airline" + ], + [ + "airlines.airline", + "aviation_companies.airline" + ], + [ + "carriers.airline", + "aviation_companies.airline" + ], + [ + "airlines.abbreviation", + "carriers.abbreviation" + ], + [ + "airlines.abbreviation", + "aviation_companies.abbreviation" + ], + [ + "carriers.abbreviation", + "aviation_companies.abbreviation" + ], + [ + "airlines.country", + "carriers.country" + ], + [ + "airlines.country", + "aviation_companies.country" + ], + [ + "carriers.country", + "aviation_companies.country" + ] + ] + }, + { + "question": "what is the #abbreviation of airline# \"jetblue airways\"?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "linking_list": [ + [ + "abbreviation of Airline", + "airlines.abbreviation" + ], + [ + "abbreviation of Airline", + "carriers.abbreviation" + ], + [ + "abbreviation of Airline", + "aviation_companies.abbreviation" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.abbreviation" + ], + [ + 0, + "carriers.abbreviation" + ], + [ + 0, + "aviation_companies.abbreviation" + ] + ], + "linking_list_col": [ + [ + "airlines.uid", + "carriers.uid" + ], + [ + "airlines.uid", + "aviation_companies.uid" + ], + [ + "carriers.uid", + "aviation_companies.uid" + ], + [ + "airlines.airline", + "carriers.airline" + ], + [ + "airlines.airline", + "aviation_companies.airline" + ], + [ + "carriers.airline", + "aviation_companies.airline" + ], + [ + "airlines.abbreviation", + "carriers.abbreviation" + ], + [ + "airlines.abbreviation", + "aviation_companies.abbreviation" + ], + [ + "carriers.abbreviation", + "aviation_companies.abbreviation" + ], + [ + "airlines.country", + "carriers.country" + ], + [ + "airlines.country", + "aviation_companies.country" + ], + [ + "carriers.country", + "aviation_companies.country" + ] + ] + }, + { + "question": "which #abbreviation# corresponds to jetblue airways?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "linking_list": [ + [ + "abbreviation", + "airlines.abbreviation" + ], + [ + "abbreviation", + "carriers.abbreviation" + ], + [ + "abbreviation", + "aviation_companies.abbreviation" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.abbreviation" + ], + [ + 0, + "carriers.abbreviation" + ], + [ + 0, + "aviation_companies.abbreviation" + ] + ], + "linking_list_col": [ + [ + "airlines.uid", + "carriers.uid" + ], + [ + "airlines.uid", + "aviation_companies.uid" + ], + [ + "carriers.uid", + "aviation_companies.uid" + ], + [ + "airlines.airline", + "carriers.airline" + ], + [ + "airlines.airline", + "aviation_companies.airline" + ], + [ + "carriers.airline", + "aviation_companies.airline" + ], + [ + "airlines.abbreviation", + "carriers.abbreviation" + ], + [ + "airlines.abbreviation", + "aviation_companies.abbreviation" + ], + [ + "carriers.abbreviation", + "aviation_companies.abbreviation" + ], + [ + "airlines.country", + "carriers.country" + ], + [ + "airlines.country", + "aviation_companies.country" + ], + [ + "carriers.country", + "aviation_companies.country" + ] + ] + }, + { + "question": "list all #airline names# and their abbreviations in \"usa\".", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "linking_list": [ + [ + "airline names", + "airlines.airline" + ], + [ + "airline names", + "carriers.airline" + ], + [ + "airline names", + "aviation_companies.airline" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 0, + "carriers.airline" + ], + [ + 0, + "aviation_companies.airline" + ] + ], + "linking_list_col": [ + [ + "airlines.uid", + "carriers.uid" + ], + [ + "airlines.uid", + "aviation_companies.uid" + ], + [ + "carriers.uid", + "aviation_companies.uid" + ], + [ + "airlines.airline", + "carriers.airline" + ], + [ + "airlines.airline", + "aviation_companies.airline" + ], + [ + "carriers.airline", + "aviation_companies.airline" + ], + [ + "airlines.abbreviation", + "carriers.abbreviation" + ], + [ + "airlines.abbreviation", + "aviation_companies.abbreviation" + ], + [ + "carriers.abbreviation", + "aviation_companies.abbreviation" + ], + [ + "airlines.country", + "carriers.country" + ], + [ + "airlines.country", + "aviation_companies.country" + ], + [ + "carriers.country", + "aviation_companies.country" + ] + ] + }, + { + "question": "what are the #airline names# and abbreviations for airlines in the usa?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "linking_list": [ + [ + "airline names", + "airlines.airline" + ], + [ + "airline names", + "carriers.airline" + ], + [ + "airline names", + "aviation_companies.airline" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 0, + "carriers.airline" + ], + [ + 0, + "aviation_companies.airline" + ] + ], + "linking_list_col": [ + [ + "airlines.uid", + "carriers.uid" + ], + [ + "airlines.uid", + "aviation_companies.uid" + ], + [ + "carriers.uid", + "aviation_companies.uid" + ], + [ + "airlines.airline", + "carriers.airline" + ], + [ + "airlines.airline", + "aviation_companies.airline" + ], + [ + "carriers.airline", + "aviation_companies.airline" + ], + [ + "airlines.abbreviation", + "carriers.abbreviation" + ], + [ + "airlines.abbreviation", + "aviation_companies.abbreviation" + ], + [ + "carriers.abbreviation", + "aviation_companies.abbreviation" + ], + [ + "airlines.country", + "carriers.country" + ], + [ + "airlines.country", + "aviation_companies.country" + ], + [ + "carriers.country", + "aviation_companies.country" + ] + ] + }, + { + "question": "list the #airport code# and #name in the city# of anthony.", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "departure_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "arrival_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ] + }, + "linking_list": [ + [ + "airport code", + "airports.airportcode" + ], + [ + "airport code", + "departure_points.airportcode" + ], + [ + "airport code", + "arrival_points.airportcode" + ], + [ + "name in the city", + "airports.airportname" + ], + [ + "name in the city", + "departure_points.airportname" + ], + [ + "name in the city", + "arrival_points.airportname" + ] + ], + "linking_list_idx": [ + [ + 0, + "airports.airportcode" + ], + [ + 0, + "departure_points.airportcode" + ], + [ + 0, + "arrival_points.airportcode" + ], + [ + 1, + "airports.airportname" + ], + [ + 1, + "departure_points.airportname" + ], + [ + 1, + "arrival_points.airportname" + ] + ], + "linking_list_col": [ + [ + "airports.city", + "departure_points.city" + ], + [ + "airports.city", + "arrival_points.city" + ], + [ + "departure_points.city", + "arrival_points.city" + ], + [ + "airports.airportcode", + "departure_points.airportcode" + ], + [ + "airports.airportcode", + "arrival_points.airportcode" + ], + [ + "departure_points.airportcode", + "arrival_points.airportcode" + ], + [ + "airports.airportname", + "departure_points.airportname" + ], + [ + "airports.airportname", + "arrival_points.airportname" + ], + [ + "departure_points.airportname", + "arrival_points.airportname" + ], + [ + "airports.country", + "departure_points.country" + ], + [ + "airports.country", + "arrival_points.country" + ], + [ + "departure_points.country", + "arrival_points.country" + ], + [ + "airports.countryabbrev", + "departure_points.countryabbrev" + ], + [ + "airports.countryabbrev", + "arrival_points.countryabbrev" + ], + [ + "departure_points.countryabbrev", + "arrival_points.countryabbrev" + ] + ] + }, + { + "question": "give the #airport code# and #airport name# corresonding to the #city# anthony.", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "departure_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "arrival_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ] + }, + "linking_list": [ + [ + "airport code", + "airports.airportcode" + ], + [ + "airport code", + "departure_points.airportcode" + ], + [ + "airport code", + "arrival_points.airportcode" + ], + [ + "airport name", + "airports.airportname" + ], + [ + "airport name", + "departure_points.airportname" + ], + [ + "airport name", + "arrival_points.airportname" + ], + [ + "city", + "airports.city" + ], + [ + "city", + "departure_points.city" + ], + [ + "city", + "arrival_points.city" + ] + ], + "linking_list_idx": [ + [ + 0, + "airports.airportcode" + ], + [ + 0, + "departure_points.airportcode" + ], + [ + 0, + "arrival_points.airportcode" + ], + [ + 1, + "airports.airportname" + ], + [ + 1, + "departure_points.airportname" + ], + [ + 1, + "arrival_points.airportname" + ], + [ + 2, + "airports.city" + ], + [ + 2, + "departure_points.city" + ], + [ + 2, + "arrival_points.city" + ] + ], + "linking_list_col": [ + [ + "airports.city", + "departure_points.city" + ], + [ + "airports.city", + "arrival_points.city" + ], + [ + "departure_points.city", + "arrival_points.city" + ], + [ + "airports.airportcode", + "departure_points.airportcode" + ], + [ + "airports.airportcode", + "arrival_points.airportcode" + ], + [ + "departure_points.airportcode", + "arrival_points.airportcode" + ], + [ + "airports.airportname", + "departure_points.airportname" + ], + [ + "airports.airportname", + "arrival_points.airportname" + ], + [ + "departure_points.airportname", + "arrival_points.airportname" + ], + [ + "airports.country", + "departure_points.country" + ], + [ + "airports.country", + "arrival_points.country" + ], + [ + "departure_points.country", + "arrival_points.country" + ], + [ + "airports.countryabbrev", + "departure_points.countryabbrev" + ], + [ + "airports.countryabbrev", + "arrival_points.countryabbrev" + ], + [ + "departure_points.countryabbrev", + "arrival_points.countryabbrev" + ] + ] + }, + { + "question": "which #airline# has #abbreviation# 'ual'?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "linking_list": [ + [ + "airline", + "airlines.airline" + ], + [ + "airline", + "carriers.airline" + ], + [ + "airline", + "aviation_companies.airline" + ], + [ + "abbreviation", + "airlines.abbreviation" + ], + [ + "abbreviation", + "carriers.abbreviation" + ], + [ + "abbreviation", + "aviation_companies.abbreviation" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 0, + "carriers.airline" + ], + [ + 0, + "aviation_companies.airline" + ], + [ + 1, + "airlines.abbreviation" + ], + [ + 1, + "carriers.abbreviation" + ], + [ + 1, + "aviation_companies.abbreviation" + ] + ], + "linking_list_col": [ + [ + "airlines.uid", + "carriers.uid" + ], + [ + "airlines.uid", + "aviation_companies.uid" + ], + [ + "carriers.uid", + "aviation_companies.uid" + ], + [ + "airlines.airline", + "carriers.airline" + ], + [ + "airlines.airline", + "aviation_companies.airline" + ], + [ + "carriers.airline", + "aviation_companies.airline" + ], + [ + "airlines.abbreviation", + "carriers.abbreviation" + ], + [ + "airlines.abbreviation", + "aviation_companies.abbreviation" + ], + [ + "carriers.abbreviation", + "aviation_companies.abbreviation" + ], + [ + "airlines.country", + "carriers.country" + ], + [ + "airlines.country", + "aviation_companies.country" + ], + [ + "carriers.country", + "aviation_companies.country" + ] + ] + }, + { + "question": "give the #airline with abbreviation# 'ual'.", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "linking_list": [ + [ + "airline with abbreviation", + "airlines.airline" + ], + [ + "airline with abbreviation", + "carriers.airline" + ], + [ + "airline with abbreviation", + "aviation_companies.airline" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 0, + "carriers.airline" + ], + [ + 0, + "aviation_companies.airline" + ] + ], + "linking_list_col": [ + [ + "airlines.uid", + "carriers.uid" + ], + [ + "airlines.uid", + "aviation_companies.uid" + ], + [ + "carriers.uid", + "aviation_companies.uid" + ], + [ + "airlines.airline", + "carriers.airline" + ], + [ + "airlines.airline", + "aviation_companies.airline" + ], + [ + "carriers.airline", + "aviation_companies.airline" + ], + [ + "airlines.abbreviation", + "carriers.abbreviation" + ], + [ + "airlines.abbreviation", + "aviation_companies.abbreviation" + ], + [ + "carriers.abbreviation", + "aviation_companies.abbreviation" + ], + [ + "airlines.country", + "carriers.country" + ], + [ + "airlines.country", + "aviation_companies.country" + ], + [ + "carriers.country", + "aviation_companies.country" + ] + ] + }, + { + "question": "which #city# and #country is the alton airport# at?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "departure_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "arrival_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ] + }, + "linking_list": [ + [ + "city", + "airports.city" + ], + [ + "city", + "departure_points.city" + ], + [ + "city", + "arrival_points.city" + ], + [ + "country is the Alton airport", + "airports.country" + ], + [ + "country is the Alton airport", + "departure_points.country" + ], + [ + "country is the Alton airport", + "arrival_points.country" + ] + ], + "linking_list_idx": [ + [ + 0, + "airports.city" + ], + [ + 0, + "departure_points.city" + ], + [ + 0, + "arrival_points.city" + ], + [ + 1, + "airports.country" + ], + [ + 1, + "departure_points.country" + ], + [ + 1, + "arrival_points.country" + ] + ], + "linking_list_col": [ + [ + "airports.city", + "departure_points.city" + ], + [ + "airports.city", + "arrival_points.city" + ], + [ + "departure_points.city", + "arrival_points.city" + ], + [ + "airports.airportcode", + "departure_points.airportcode" + ], + [ + "airports.airportcode", + "arrival_points.airportcode" + ], + [ + "departure_points.airportcode", + "arrival_points.airportcode" + ], + [ + "airports.airportname", + "departure_points.airportname" + ], + [ + "airports.airportname", + "arrival_points.airportname" + ], + [ + "departure_points.airportname", + "arrival_points.airportname" + ], + [ + "airports.country", + "departure_points.country" + ], + [ + "airports.country", + "arrival_points.country" + ], + [ + "departure_points.country", + "arrival_points.country" + ], + [ + "airports.countryabbrev", + "departure_points.countryabbrev" + ], + [ + "airports.countryabbrev", + "arrival_points.countryabbrev" + ], + [ + "departure_points.countryabbrev", + "arrival_points.countryabbrev" + ] + ] + }, + { + "question": "give the #city# and #country for the alton airport# .", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "departure_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "arrival_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ] + }, + "linking_list": [ + [ + "city", + "airports.city" + ], + [ + "city", + "departure_points.city" + ], + [ + "city", + "arrival_points.city" + ], + [ + "country for the Alton airport", + "airports.country" + ], + [ + "country for the Alton airport", + "departure_points.country" + ], + [ + "country for the Alton airport", + "arrival_points.country" + ] + ], + "linking_list_idx": [ + [ + 0, + "airports.city" + ], + [ + 0, + "departure_points.city" + ], + [ + 0, + "arrival_points.city" + ], + [ + 1, + "airports.country" + ], + [ + 1, + "departure_points.country" + ], + [ + 1, + "arrival_points.country" + ] + ], + "linking_list_col": [ + [ + "airports.city", + "departure_points.city" + ], + [ + "airports.city", + "arrival_points.city" + ], + [ + "departure_points.city", + "arrival_points.city" + ], + [ + "airports.airportcode", + "departure_points.airportcode" + ], + [ + "airports.airportcode", + "arrival_points.airportcode" + ], + [ + "departure_points.airportcode", + "arrival_points.airportcode" + ], + [ + "airports.airportname", + "departure_points.airportname" + ], + [ + "airports.airportname", + "arrival_points.airportname" + ], + [ + "departure_points.airportname", + "arrival_points.airportname" + ], + [ + "airports.country", + "departure_points.country" + ], + [ + "airports.country", + "arrival_points.country" + ], + [ + "departure_points.country", + "arrival_points.country" + ], + [ + "airports.countryabbrev", + "departure_points.countryabbrev" + ], + [ + "airports.countryabbrev", + "arrival_points.countryabbrev" + ], + [ + "departure_points.countryabbrev", + "arrival_points.countryabbrev" + ] + ] + }, + { + "question": "return the #name of the airport with code# 'ako'.", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "departure_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "arrival_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ] + }, + "linking_list": [ + [ + "name of the airport with code", + "airports.airportname" + ], + [ + "name of the airport with code", + "departure_points.airportname" + ], + [ + "name of the airport with code", + "arrival_points.airportname" + ] + ], + "linking_list_idx": [ + [ + 0, + "airports.airportname" + ], + [ + 0, + "departure_points.airportname" + ], + [ + 0, + "arrival_points.airportname" + ] + ], + "linking_list_col": [ + [ + "airports.city", + "departure_points.city" + ], + [ + "airports.city", + "arrival_points.city" + ], + [ + "departure_points.city", + "arrival_points.city" + ], + [ + "airports.airportcode", + "departure_points.airportcode" + ], + [ + "airports.airportcode", + "arrival_points.airportcode" + ], + [ + "departure_points.airportcode", + "arrival_points.airportcode" + ], + [ + "airports.airportname", + "departure_points.airportname" + ], + [ + "airports.airportname", + "arrival_points.airportname" + ], + [ + "departure_points.airportname", + "arrival_points.airportname" + ], + [ + "airports.country", + "departure_points.country" + ], + [ + "airports.country", + "arrival_points.country" + ], + [ + "departure_points.country", + "arrival_points.country" + ], + [ + "airports.countryabbrev", + "departure_points.countryabbrev" + ], + [ + "airports.countryabbrev", + "arrival_points.countryabbrev" + ], + [ + "departure_points.countryabbrev", + "arrival_points.countryabbrev" + ] + ] + }, + { + "question": "what are #airport names at city# 'aberdeen'?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "departure_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "arrival_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ] + }, + "linking_list": [ + [ + "airport names at City", + "airports.airportname" + ], + [ + "airport names at City", + "departure_points.airportname" + ], + [ + "airport names at City", + "arrival_points.airportname" + ] + ], + "linking_list_idx": [ + [ + 0, + "airports.airportname" + ], + [ + 0, + "departure_points.airportname" + ], + [ + 0, + "arrival_points.airportname" + ] + ], + "linking_list_col": [ + [ + "airports.city", + "departure_points.city" + ], + [ + "airports.city", + "arrival_points.city" + ], + [ + "departure_points.city", + "arrival_points.city" + ], + [ + "airports.airportcode", + "departure_points.airportcode" + ], + [ + "airports.airportcode", + "arrival_points.airportcode" + ], + [ + "departure_points.airportcode", + "arrival_points.airportcode" + ], + [ + "airports.airportname", + "departure_points.airportname" + ], + [ + "airports.airportname", + "arrival_points.airportname" + ], + [ + "departure_points.airportname", + "arrival_points.airportname" + ], + [ + "airports.country", + "departure_points.country" + ], + [ + "airports.country", + "arrival_points.country" + ], + [ + "departure_points.country", + "arrival_points.country" + ], + [ + "airports.countryabbrev", + "departure_points.countryabbrev" + ], + [ + "airports.countryabbrev", + "arrival_points.countryabbrev" + ], + [ + "departure_points.countryabbrev", + "arrival_points.countryabbrev" + ] + ] + }, + { + "question": "how many flights have #destination# ato?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "destination", + "flights.destairport" + ], + [ + "destination", + "journeys.destairport" + ], + [ + "destination", + "routes.destairport" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.destairport" + ], + [ + 0, + "journeys.destairport" + ], + [ + 0, + "routes.destairport" + ] + ], + "linking_list_col": [ + [ + "flights.airline", + "journeys.airline" + ], + [ + "flights.airline", + "routes.airline" + ], + [ + "journeys.airline", + "routes.airline" + ], + [ + "flights.flightno", + "journeys.flightno" + ], + [ + "flights.flightno", + "routes.flightno" + ], + [ + "journeys.flightno", + "routes.flightno" + ], + [ + "flights.sourceairport", + "journeys.sourceairport" + ], + [ + "flights.sourceairport", + "routes.sourceairport" + ], + [ + "journeys.sourceairport", + "routes.sourceairport" + ], + [ + "flights.destairport", + "journeys.destairport" + ], + [ + "flights.destairport", + "routes.destairport" + ], + [ + "journeys.destairport", + "routes.destairport" + ] + ] + }, + { + "question": "which #airlines# have a flight with #source airport# ahd?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airlines", + "airlines.airline" + ], + [ + "source airport", + "flights.sourceairport" + ], + [ + "source airport", + "journeys.sourceairport" + ], + [ + "source airport", + "routes.sourceairport" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 1, + "flights.sourceairport" + ], + [ + 1, + "journeys.sourceairport" + ], + [ + 1, + "routes.sourceairport" + ] + ], + "linking_list_col": [ + [ + "flights.airline", + "journeys.airline" + ], + [ + "flights.airline", + "routes.airline" + ], + [ + "journeys.airline", + "routes.airline" + ], + [ + "flights.flightno", + "journeys.flightno" + ], + [ + "flights.flightno", + "routes.flightno" + ], + [ + "journeys.flightno", + "routes.flightno" + ], + [ + "flights.sourceairport", + "journeys.sourceairport" + ], + [ + "flights.sourceairport", + "routes.sourceairport" + ], + [ + "journeys.sourceairport", + "routes.sourceairport" + ], + [ + "flights.destairport", + "journeys.destairport" + ], + [ + "flights.destairport", + "routes.destairport" + ], + [ + "journeys.destairport", + "routes.destairport" + ] + ] + }, + { + "question": "what are #airlines# that have flights arriving at #airport# 'ahd'?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airlines", + "airlines.airline" + ], + [ + "airport", + "flights.destairport" + ], + [ + "airport", + "journeys.destairport" + ], + [ + "airport", + "routes.destairport" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 1, + "flights.destairport" + ], + [ + 1, + "journeys.destairport" + ], + [ + 1, + "routes.destairport" + ] + ], + "linking_list_col": [ + [ + "flights.airline", + "journeys.airline" + ], + [ + "flights.airline", + "routes.airline" + ], + [ + "journeys.airline", + "routes.airline" + ], + [ + "flights.flightno", + "journeys.flightno" + ], + [ + "flights.flightno", + "routes.flightno" + ], + [ + "journeys.flightno", + "routes.flightno" + ], + [ + "flights.sourceairport", + "journeys.sourceairport" + ], + [ + "flights.sourceairport", + "routes.sourceairport" + ], + [ + "journeys.sourceairport", + "routes.sourceairport" + ], + [ + "flights.destairport", + "journeys.destairport" + ], + [ + "flights.destairport", + "routes.destairport" + ], + [ + "journeys.destairport", + "routes.destairport" + ] + ] + }, + { + "question": "which #airlines# have a flight with #destination airport# ahd?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airlines", + "airlines.airline" + ], + [ + "destination airport", + "flights.destairport" + ], + [ + "destination airport", + "journeys.destairport" + ], + [ + "destination airport", + "routes.destairport" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 1, + "flights.destairport" + ], + [ + 1, + "journeys.destairport" + ], + [ + 1, + "routes.destairport" + ] + ], + "linking_list_col": [ + [ + "flights.airline", + "journeys.airline" + ], + [ + "flights.airline", + "routes.airline" + ], + [ + "journeys.airline", + "routes.airline" + ], + [ + "flights.flightno", + "journeys.flightno" + ], + [ + "flights.flightno", + "routes.flightno" + ], + [ + "journeys.flightno", + "routes.flightno" + ], + [ + "flights.sourceairport", + "journeys.sourceairport" + ], + [ + "flights.sourceairport", + "routes.sourceairport" + ], + [ + "journeys.sourceairport", + "routes.sourceairport" + ], + [ + "flights.destairport", + "journeys.destairport" + ], + [ + "flights.destairport", + "routes.destairport" + ], + [ + "journeys.destairport", + "routes.destairport" + ] + ] + }, + { + "question": "find all airlines that have #flights# from both airports 'apg' and 'cvo'.", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "flights", + "flights.sourceairport" + ], + [ + "flights", + "journeys.sourceairport" + ], + [ + "flights", + "routes.sourceairport" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.sourceairport" + ], + [ + 0, + "journeys.sourceairport" + ], + [ + 0, + "routes.sourceairport" + ] + ], + "linking_list_col": [ + [ + "flights.airline", + "journeys.airline" + ], + [ + "flights.airline", + "routes.airline" + ], + [ + "journeys.airline", + "routes.airline" + ], + [ + "flights.flightno", + "journeys.flightno" + ], + [ + "flights.flightno", + "routes.flightno" + ], + [ + "journeys.flightno", + "routes.flightno" + ], + [ + "flights.sourceairport", + "journeys.sourceairport" + ], + [ + "flights.sourceairport", + "routes.sourceairport" + ], + [ + "journeys.sourceairport", + "routes.sourceairport" + ], + [ + "flights.destairport", + "journeys.destairport" + ], + [ + "flights.destairport", + "routes.destairport" + ], + [ + "journeys.destairport", + "routes.destairport" + ] + ] + }, + { + "question": "which #airlines# have #departing flights# from both #apg# and #cvo# airports?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airlines", + "airlines.airline" + ], + [ + "departing flights", + "flights.sourceairport" + ], + [ + "departing flights", + "journeys.sourceairport" + ], + [ + "departing flights", + "routes.sourceairport" + ], + [ + "APG", + "flights.sourceairport" + ], + [ + "APG", + "journeys.sourceairport" + ], + [ + "APG", + "routes.sourceairport" + ], + [ + "CVO", + "flights.sourceairport" + ], + [ + "CVO", + "journeys.sourceairport" + ], + [ + "CVO", + "routes.sourceairport" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 1, + "flights.sourceairport" + ], + [ + 1, + "journeys.sourceairport" + ], + [ + 1, + "routes.sourceairport" + ], + [ + 2, + "flights.sourceairport" + ], + [ + 2, + "journeys.sourceairport" + ], + [ + 2, + "routes.sourceairport" + ], + [ + 3, + "flights.sourceairport" + ], + [ + 3, + "journeys.sourceairport" + ], + [ + 3, + "routes.sourceairport" + ] + ], + "linking_list_col": [ + [ + "flights.airline", + "journeys.airline" + ], + [ + "flights.airline", + "routes.airline" + ], + [ + "journeys.airline", + "routes.airline" + ], + [ + "flights.flightno", + "journeys.flightno" + ], + [ + "flights.flightno", + "routes.flightno" + ], + [ + "journeys.flightno", + "routes.flightno" + ], + [ + "flights.sourceairport", + "journeys.sourceairport" + ], + [ + "flights.sourceairport", + "routes.sourceairport" + ], + [ + "journeys.sourceairport", + "routes.sourceairport" + ], + [ + "flights.destairport", + "journeys.destairport" + ], + [ + "flights.destairport", + "routes.destairport" + ], + [ + "journeys.destairport", + "routes.destairport" + ] + ] + }, + { + "question": "which #airlines# have departures from cvo but not from #apg# airports?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airlines", + "airlines.airline" + ], + [ + "APG", + "flights.sourceairport" + ], + [ + "APG", + "journeys.sourceairport" + ], + [ + "APG", + "routes.sourceairport" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 1, + "flights.sourceairport" + ], + [ + 1, + "journeys.sourceairport" + ], + [ + 1, + "routes.sourceairport" + ] + ], + "linking_list_col": [ + [ + "flights.airline", + "journeys.airline" + ], + [ + "flights.airline", + "routes.airline" + ], + [ + "journeys.airline", + "routes.airline" + ], + [ + "flights.flightno", + "journeys.flightno" + ], + [ + "flights.flightno", + "routes.flightno" + ], + [ + "journeys.flightno", + "routes.flightno" + ], + [ + "flights.sourceairport", + "journeys.sourceairport" + ], + [ + "flights.sourceairport", + "routes.sourceairport" + ], + [ + "journeys.sourceairport", + "routes.sourceairport" + ], + [ + "flights.destairport", + "journeys.destairport" + ], + [ + "flights.destairport", + "routes.destairport" + ], + [ + "journeys.destairport", + "routes.destairport" + ] + ] + }, + { + "question": "what are #flight numbers of airline# \"united airlines\"?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "flight numbers of Airline", + "flights.flightno" + ], + [ + "flight numbers of Airline", + "journeys.flightno" + ], + [ + "flight numbers of Airline", + "routes.flightno" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.flightno" + ], + [ + 0, + "journeys.flightno" + ], + [ + 0, + "routes.flightno" + ] + ], + "linking_list_col": [ + [ + "flights.airline", + "journeys.airline" + ], + [ + "flights.airline", + "routes.airline" + ], + [ + "journeys.airline", + "routes.airline" + ], + [ + "flights.flightno", + "journeys.flightno" + ], + [ + "flights.flightno", + "routes.flightno" + ], + [ + "journeys.flightno", + "routes.flightno" + ], + [ + "flights.sourceairport", + "journeys.sourceairport" + ], + [ + "flights.sourceairport", + "routes.sourceairport" + ], + [ + "journeys.sourceairport", + "routes.sourceairport" + ], + [ + "flights.destairport", + "journeys.destairport" + ], + [ + "flights.destairport", + "routes.destairport" + ], + [ + "journeys.destairport", + "routes.destairport" + ] + ] + }, + { + "question": "which #flight numbers# correspond to united airlines flights?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "flight numbers", + "flights.flightno" + ], + [ + "flight numbers", + "journeys.flightno" + ], + [ + "flight numbers", + "routes.flightno" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.flightno" + ], + [ + 0, + "journeys.flightno" + ], + [ + 0, + "routes.flightno" + ] + ], + "linking_list_col": [ + [ + "flights.airline", + "journeys.airline" + ], + [ + "flights.airline", + "routes.airline" + ], + [ + "journeys.airline", + "routes.airline" + ], + [ + "flights.flightno", + "journeys.flightno" + ], + [ + "flights.flightno", + "routes.flightno" + ], + [ + "journeys.flightno", + "routes.flightno" + ], + [ + "flights.sourceairport", + "journeys.sourceairport" + ], + [ + "flights.sourceairport", + "routes.sourceairport" + ], + [ + "journeys.sourceairport", + "routes.sourceairport" + ], + [ + "flights.destairport", + "journeys.destairport" + ], + [ + "flights.destairport", + "routes.destairport" + ], + [ + "journeys.destairport", + "routes.destairport" + ] + ] + }, + { + "question": "what are #flight numbers# of flights departing from airport \"apg\"?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "flight numbers", + "flights.flightno" + ], + [ + "flight numbers", + "journeys.flightno" + ], + [ + "flight numbers", + "routes.flightno" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.flightno" + ], + [ + 0, + "journeys.flightno" + ], + [ + 0, + "routes.flightno" + ] + ], + "linking_list_col": [ + [ + "flights.airline", + "journeys.airline" + ], + [ + "flights.airline", + "routes.airline" + ], + [ + "journeys.airline", + "routes.airline" + ], + [ + "flights.flightno", + "journeys.flightno" + ], + [ + "flights.flightno", + "routes.flightno" + ], + [ + "journeys.flightno", + "routes.flightno" + ], + [ + "flights.sourceairport", + "journeys.sourceairport" + ], + [ + "flights.sourceairport", + "routes.sourceairport" + ], + [ + "journeys.sourceairport", + "routes.sourceairport" + ], + [ + "flights.destairport", + "journeys.destairport" + ], + [ + "flights.destairport", + "routes.destairport" + ], + [ + "journeys.destairport", + "routes.destairport" + ] + ] + }, + { + "question": "give the #flight numbers# of flights #leaving from# apg.", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "flight numbers", + "flights.flightno" + ], + [ + "flight numbers", + "journeys.flightno" + ], + [ + "flight numbers", + "routes.flightno" + ], + [ + "leaving from", + "flights.sourceairport" + ], + [ + "leaving from", + "journeys.sourceairport" + ], + [ + "leaving from", + "routes.sourceairport" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.flightno" + ], + [ + 0, + "journeys.flightno" + ], + [ + 0, + "routes.flightno" + ], + [ + 1, + "flights.sourceairport" + ], + [ + 1, + "journeys.sourceairport" + ], + [ + 1, + "routes.sourceairport" + ] + ], + "linking_list_col": [ + [ + "flights.airline", + "journeys.airline" + ], + [ + "flights.airline", + "routes.airline" + ], + [ + "journeys.airline", + "routes.airline" + ], + [ + "flights.flightno", + "journeys.flightno" + ], + [ + "flights.flightno", + "routes.flightno" + ], + [ + "journeys.flightno", + "routes.flightno" + ], + [ + "flights.sourceairport", + "journeys.sourceairport" + ], + [ + "flights.sourceairport", + "routes.sourceairport" + ], + [ + "journeys.sourceairport", + "routes.sourceairport" + ], + [ + "flights.destairport", + "journeys.destairport" + ], + [ + "flights.destairport", + "routes.destairport" + ], + [ + "journeys.destairport", + "routes.destairport" + ] + ] + }, + { + "question": "give the #flight numbers of flights landing# at apg.", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "flight numbers of flights landing", + "flights.flightno" + ], + [ + "flight numbers of flights landing", + "journeys.flightno" + ], + [ + "flight numbers of flights landing", + "routes.flightno" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.flightno" + ], + [ + 0, + "journeys.flightno" + ], + [ + 0, + "routes.flightno" + ] + ], + "linking_list_col": [ + [ + "flights.airline", + "journeys.airline" + ], + [ + "flights.airline", + "routes.airline" + ], + [ + "journeys.airline", + "routes.airline" + ], + [ + "flights.flightno", + "journeys.flightno" + ], + [ + "flights.flightno", + "routes.flightno" + ], + [ + "journeys.flightno", + "routes.flightno" + ], + [ + "flights.sourceairport", + "journeys.sourceairport" + ], + [ + "flights.sourceairport", + "routes.sourceairport" + ], + [ + "journeys.sourceairport", + "routes.sourceairport" + ], + [ + "flights.destairport", + "journeys.destairport" + ], + [ + "flights.destairport", + "routes.destairport" + ], + [ + "journeys.destairport", + "routes.destairport" + ] + ] + }, + { + "question": "what are #flight numbers# of flights #departing from city# \"aberdeen \"?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "flight numbers", + "flights.flightno" + ], + [ + "flight numbers", + "journeys.flightno" + ], + [ + "flight numbers", + "routes.flightno" + ], + [ + "departing from City", + "airports.city" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.flightno" + ], + [ + 0, + "journeys.flightno" + ], + [ + 0, + "routes.flightno" + ], + [ + 1, + "airports.city" + ] + ], + "linking_list_col": [ + [ + "flights.airline", + "journeys.airline" + ], + [ + "flights.airline", + "routes.airline" + ], + [ + "journeys.airline", + "routes.airline" + ], + [ + "flights.flightno", + "journeys.flightno" + ], + [ + "flights.flightno", + "routes.flightno" + ], + [ + "journeys.flightno", + "routes.flightno" + ], + [ + "flights.sourceairport", + "journeys.sourceairport" + ], + [ + "flights.sourceairport", + "routes.sourceairport" + ], + [ + "journeys.sourceairport", + "routes.sourceairport" + ], + [ + "flights.destairport", + "journeys.destairport" + ], + [ + "flights.destairport", + "routes.destairport" + ], + [ + "journeys.destairport", + "routes.destairport" + ] + ] + }, + { + "question": "give the #flight numbers# of flights leaving from aberdeen.", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "flight numbers", + "flights.flightno" + ], + [ + "flight numbers", + "journeys.flightno" + ], + [ + "flight numbers", + "routes.flightno" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.flightno" + ], + [ + 0, + "journeys.flightno" + ], + [ + 0, + "routes.flightno" + ] + ], + "linking_list_col": [ + [ + "flights.airline", + "journeys.airline" + ], + [ + "flights.airline", + "routes.airline" + ], + [ + "journeys.airline", + "routes.airline" + ], + [ + "flights.flightno", + "journeys.flightno" + ], + [ + "flights.flightno", + "routes.flightno" + ], + [ + "journeys.flightno", + "routes.flightno" + ], + [ + "flights.sourceairport", + "journeys.sourceairport" + ], + [ + "flights.sourceairport", + "routes.sourceairport" + ], + [ + "journeys.sourceairport", + "routes.sourceairport" + ], + [ + "flights.destairport", + "journeys.destairport" + ], + [ + "flights.destairport", + "routes.destairport" + ], + [ + "journeys.destairport", + "routes.destairport" + ] + ] + }, + { + "question": "give the #flight numbers# of flights #arriving in aberdeen# .", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "flight numbers", + "flights.flightno" + ], + [ + "flight numbers", + "journeys.flightno" + ], + [ + "flight numbers", + "routes.flightno" + ], + [ + "arriving in Aberdeen", + "airports.city" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.flightno" + ], + [ + 0, + "journeys.flightno" + ], + [ + 0, + "routes.flightno" + ], + [ + 1, + "airports.city" + ] + ], + "linking_list_col": [ + [ + "flights.airline", + "journeys.airline" + ], + [ + "flights.airline", + "routes.airline" + ], + [ + "journeys.airline", + "routes.airline" + ], + [ + "flights.flightno", + "journeys.flightno" + ], + [ + "flights.flightno", + "routes.flightno" + ], + [ + "journeys.flightno", + "routes.flightno" + ], + [ + "flights.sourceairport", + "journeys.sourceairport" + ], + [ + "flights.sourceairport", + "routes.sourceairport" + ], + [ + "journeys.sourceairport", + "routes.sourceairport" + ], + [ + "flights.destairport", + "journeys.destairport" + ], + [ + "flights.destairport", + "routes.destairport" + ], + [ + "journeys.destairport", + "routes.destairport" + ] + ] + }, + { + "question": "sort #employee names# by their #age# in ascending order.", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ], + "staff": [ + "employee_id", + "name", + "age", + "city" + ], + "worker": [ + "employee_id", + "name", + "age", + "city" + ] + }, + "linking_list": [ + [ + "employee names", + "employee.name" + ], + [ + "employee names", + "staff.name" + ], + [ + "employee names", + "worker.name" + ], + [ + "age", + "employee.age" + ], + [ + "age", + "staff.age" + ], + [ + "age", + "worker.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "employee.name" + ], + [ + 0, + "staff.name" + ], + [ + 0, + "worker.name" + ], + [ + 1, + "employee.age" + ], + [ + 1, + "staff.age" + ], + [ + 1, + "worker.age" + ] + ], + "linking_list_col": [ + [ + "employee.employee_id", + "staff.employee_id" + ], + [ + "employee.employee_id", + "worker.employee_id" + ], + [ + "staff.employee_id", + "worker.employee_id" + ], + [ + "employee.name", + "staff.name" + ], + [ + "employee.name", + "worker.name" + ], + [ + "staff.name", + "worker.name" + ], + [ + "employee.age", + "staff.age" + ], + [ + "employee.age", + "worker.age" + ], + [ + "staff.age", + "worker.age" + ], + [ + "employee.city", + "staff.city" + ], + [ + "employee.city", + "worker.city" + ], + [ + "staff.city", + "worker.city" + ] + ] + }, + { + "question": "list the #names of employees# and sort in ascending order of #age# .", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ], + "staff": [ + "employee_id", + "name", + "age", + "city" + ], + "worker": [ + "employee_id", + "name", + "age", + "city" + ] + }, + "linking_list": [ + [ + "names of employees", + "employee.name" + ], + [ + "names of employees", + "staff.name" + ], + [ + "names of employees", + "worker.name" + ], + [ + "age", + "employee.age" + ], + [ + "age", + "staff.age" + ], + [ + "age", + "worker.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "employee.name" + ], + [ + 0, + "staff.name" + ], + [ + 0, + "worker.name" + ], + [ + 1, + "employee.age" + ], + [ + 1, + "staff.age" + ], + [ + 1, + "worker.age" + ] + ], + "linking_list_col": [ + [ + "employee.employee_id", + "staff.employee_id" + ], + [ + "employee.employee_id", + "worker.employee_id" + ], + [ + "staff.employee_id", + "worker.employee_id" + ], + [ + "employee.name", + "staff.name" + ], + [ + "employee.name", + "worker.name" + ], + [ + "staff.name", + "worker.name" + ], + [ + "employee.age", + "staff.age" + ], + [ + "employee.age", + "worker.age" + ], + [ + "staff.age", + "worker.age" + ], + [ + "employee.city", + "staff.city" + ], + [ + "employee.city", + "worker.city" + ], + [ + "staff.city", + "worker.city" + ] + ] + }, + { + "question": "what is the #number of employees# from each city?", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ], + "staff": [ + "employee_id", + "name", + "age", + "city" + ], + "worker": [ + "employee_id", + "name", + "age", + "city" + ] + }, + "linking_list": [ + [ + "number of employees", + "employee.employee_id" + ], + [ + "number of employees", + "staff.employee_id" + ], + [ + "number of employees", + "worker.employee_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "employee.employee_id" + ], + [ + 0, + "staff.employee_id" + ], + [ + 0, + "worker.employee_id" + ] + ], + "linking_list_col": [ + [ + "employee.employee_id", + "staff.employee_id" + ], + [ + "employee.employee_id", + "worker.employee_id" + ], + [ + "staff.employee_id", + "worker.employee_id" + ], + [ + "employee.name", + "staff.name" + ], + [ + "employee.name", + "worker.name" + ], + [ + "staff.name", + "worker.name" + ], + [ + "employee.age", + "staff.age" + ], + [ + "employee.age", + "worker.age" + ], + [ + "staff.age", + "worker.age" + ], + [ + "employee.city", + "staff.city" + ], + [ + "employee.city", + "worker.city" + ], + [ + "staff.city", + "worker.city" + ] + ] + }, + { + "question": "which #cities# do more than one employee under #age# 30 come from?", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ], + "staff": [ + "employee_id", + "name", + "age", + "city" + ], + "worker": [ + "employee_id", + "name", + "age", + "city" + ] + }, + "linking_list": [ + [ + "cities", + "employee.city" + ], + [ + "cities", + "staff.city" + ], + [ + "cities", + "worker.city" + ], + [ + "age", + "employee.age" + ], + [ + "age", + "staff.age" + ], + [ + "age", + "worker.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "employee.city" + ], + [ + 0, + "staff.city" + ], + [ + 0, + "worker.city" + ], + [ + 1, + "employee.age" + ], + [ + 1, + "staff.age" + ], + [ + 1, + "worker.age" + ] + ], + "linking_list_col": [ + [ + "employee.employee_id", + "staff.employee_id" + ], + [ + "employee.employee_id", + "worker.employee_id" + ], + [ + "staff.employee_id", + "worker.employee_id" + ], + [ + "employee.name", + "staff.name" + ], + [ + "employee.name", + "worker.name" + ], + [ + "staff.name", + "worker.name" + ], + [ + "employee.age", + "staff.age" + ], + [ + "employee.age", + "worker.age" + ], + [ + "staff.age", + "worker.age" + ], + [ + "employee.city", + "staff.city" + ], + [ + "employee.city", + "worker.city" + ], + [ + "staff.city", + "worker.city" + ] + ] + }, + { + "question": "find the #cities# that have more than one employee under #age# 30.", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ], + "staff": [ + "employee_id", + "name", + "age", + "city" + ], + "worker": [ + "employee_id", + "name", + "age", + "city" + ] + }, + "linking_list": [ + [ + "cities", + "employee.city" + ], + [ + "cities", + "staff.city" + ], + [ + "cities", + "worker.city" + ], + [ + "age", + "employee.age" + ], + [ + "age", + "staff.age" + ], + [ + "age", + "worker.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "employee.city" + ], + [ + 0, + "staff.city" + ], + [ + 0, + "worker.city" + ], + [ + 1, + "employee.age" + ], + [ + 1, + "staff.age" + ], + [ + 1, + "worker.age" + ] + ], + "linking_list_col": [ + [ + "employee.employee_id", + "staff.employee_id" + ], + [ + "employee.employee_id", + "worker.employee_id" + ], + [ + "staff.employee_id", + "worker.employee_id" + ], + [ + "employee.name", + "staff.name" + ], + [ + "employee.name", + "worker.name" + ], + [ + "staff.name", + "worker.name" + ], + [ + "employee.age", + "staff.age" + ], + [ + "employee.age", + "worker.age" + ], + [ + "staff.age", + "worker.age" + ], + [ + "employee.city", + "staff.city" + ], + [ + "employee.city", + "worker.city" + ], + [ + "staff.city", + "worker.city" + ] + ] + }, + { + "question": "find the #number of shops in each location# .", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ], + "store": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "boutique": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ] + }, + "linking_list": [ + [ + "number of shops in each location", + "shop.location" + ], + [ + "number of shops in each location", + "store.location" + ], + [ + "number of shops in each location", + "boutique.location" + ] + ], + "linking_list_idx": [ + [ + 0, + "shop.location" + ], + [ + 0, + "store.location" + ], + [ + 0, + "boutique.location" + ] + ], + "linking_list_col": [ + [ + "shop.shop_id", + "store.shop_id" + ], + [ + "shop.shop_id", + "boutique.shop_id" + ], + [ + "store.shop_id", + "boutique.shop_id" + ], + [ + "shop.name", + "store.name" + ], + [ + "shop.name", + "boutique.name" + ], + [ + "store.name", + "boutique.name" + ], + [ + "shop.location", + "store.location" + ], + [ + "shop.location", + "boutique.location" + ], + [ + "store.location", + "boutique.location" + ], + [ + "shop.district", + "store.district" + ], + [ + "shop.district", + "boutique.district" + ], + [ + "store.district", + "boutique.district" + ], + [ + "shop.number_products", + "store.number_products" + ], + [ + "shop.number_products", + "boutique.number_products" + ], + [ + "store.number_products", + "boutique.number_products" + ], + [ + "shop.manager_name", + "store.manager_name" + ], + [ + "shop.manager_name", + "boutique.manager_name" + ], + [ + "store.manager_name", + "boutique.manager_name" + ] + ] + }, + { + "question": "find the #manager name# and #district of the shop# whose #number of products# is the largest.", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ], + "store": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "boutique": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ] + }, + "linking_list": [ + [ + "manager name", + "shop.manager_name" + ], + [ + "manager name", + "store.manager_name" + ], + [ + "manager name", + "boutique.manager_name" + ], + [ + "district of the shop", + "shop.district" + ], + [ + "district of the shop", + "store.district" + ], + [ + "district of the shop", + "boutique.district" + ], + [ + "number of products", + "shop.number_products" + ], + [ + "number of products", + "store.number_products" + ], + [ + "number of products", + "boutique.number_products" + ] + ], + "linking_list_idx": [ + [ + 0, + "shop.manager_name" + ], + [ + 0, + "store.manager_name" + ], + [ + 0, + "boutique.manager_name" + ], + [ + 1, + "shop.district" + ], + [ + 1, + "store.district" + ], + [ + 1, + "boutique.district" + ], + [ + 2, + "shop.number_products" + ], + [ + 2, + "store.number_products" + ], + [ + 2, + "boutique.number_products" + ] + ], + "linking_list_col": [ + [ + "shop.shop_id", + "store.shop_id" + ], + [ + "shop.shop_id", + "boutique.shop_id" + ], + [ + "store.shop_id", + "boutique.shop_id" + ], + [ + "shop.name", + "store.name" + ], + [ + "shop.name", + "boutique.name" + ], + [ + "store.name", + "boutique.name" + ], + [ + "shop.location", + "store.location" + ], + [ + "shop.location", + "boutique.location" + ], + [ + "store.location", + "boutique.location" + ], + [ + "shop.district", + "store.district" + ], + [ + "shop.district", + "boutique.district" + ], + [ + "store.district", + "boutique.district" + ], + [ + "shop.number_products", + "store.number_products" + ], + [ + "shop.number_products", + "boutique.number_products" + ], + [ + "store.number_products", + "boutique.number_products" + ], + [ + "shop.manager_name", + "store.manager_name" + ], + [ + "shop.manager_name", + "boutique.manager_name" + ], + [ + "store.manager_name", + "boutique.manager_name" + ] + ] + }, + { + "question": "what are the #manager name# and #district of the shop# that sells the largest number of products?", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ], + "store": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "boutique": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ] + }, + "linking_list": [ + [ + "manager name", + "shop.manager_name" + ], + [ + "manager name", + "store.manager_name" + ], + [ + "manager name", + "boutique.manager_name" + ], + [ + "district of the shop", + "shop.district" + ], + [ + "district of the shop", + "store.district" + ], + [ + "district of the shop", + "boutique.district" + ] + ], + "linking_list_idx": [ + [ + 0, + "shop.manager_name" + ], + [ + 0, + "store.manager_name" + ], + [ + 0, + "boutique.manager_name" + ], + [ + 1, + "shop.district" + ], + [ + 1, + "store.district" + ], + [ + 1, + "boutique.district" + ] + ], + "linking_list_col": [ + [ + "shop.shop_id", + "store.shop_id" + ], + [ + "shop.shop_id", + "boutique.shop_id" + ], + [ + "store.shop_id", + "boutique.shop_id" + ], + [ + "shop.name", + "store.name" + ], + [ + "shop.name", + "boutique.name" + ], + [ + "store.name", + "boutique.name" + ], + [ + "shop.location", + "store.location" + ], + [ + "shop.location", + "boutique.location" + ], + [ + "store.location", + "boutique.location" + ], + [ + "shop.district", + "store.district" + ], + [ + "shop.district", + "boutique.district" + ], + [ + "store.district", + "boutique.district" + ], + [ + "shop.number_products", + "store.number_products" + ], + [ + "shop.number_products", + "boutique.number_products" + ], + [ + "store.number_products", + "boutique.number_products" + ], + [ + "shop.manager_name", + "store.manager_name" + ], + [ + "shop.manager_name", + "boutique.manager_name" + ], + [ + "store.manager_name", + "boutique.manager_name" + ] + ] + }, + { + "question": "return the #name# , #location# and #district of all shops# in descending order of #number of products# .", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ], + "store": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "boutique": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ] + }, + "linking_list": [ + [ + "name", + "shop.name" + ], + [ + "name", + "store.name" + ], + [ + "name", + "boutique.name" + ], + [ + "location", + "shop.location" + ], + [ + "location", + "store.location" + ], + [ + "location", + "boutique.location" + ], + [ + "district of all shops", + "shop.district" + ], + [ + "district of all shops", + "store.district" + ], + [ + "district of all shops", + "boutique.district" + ], + [ + "number of products", + "shop.number_products" + ], + [ + "number of products", + "store.number_products" + ], + [ + "number of products", + "boutique.number_products" + ] + ], + "linking_list_idx": [ + [ + 0, + "shop.name" + ], + [ + 0, + "store.name" + ], + [ + 0, + "boutique.name" + ], + [ + 1, + "shop.location" + ], + [ + 1, + "store.location" + ], + [ + 1, + "boutique.location" + ], + [ + 2, + "shop.district" + ], + [ + 2, + "store.district" + ], + [ + 2, + "boutique.district" + ], + [ + 3, + "shop.number_products" + ], + [ + 3, + "store.number_products" + ], + [ + 3, + "boutique.number_products" + ] + ], + "linking_list_col": [ + [ + "shop.shop_id", + "store.shop_id" + ], + [ + "shop.shop_id", + "boutique.shop_id" + ], + [ + "store.shop_id", + "boutique.shop_id" + ], + [ + "shop.name", + "store.name" + ], + [ + "shop.name", + "boutique.name" + ], + [ + "store.name", + "boutique.name" + ], + [ + "shop.location", + "store.location" + ], + [ + "shop.location", + "boutique.location" + ], + [ + "store.location", + "boutique.location" + ], + [ + "shop.district", + "store.district" + ], + [ + "shop.district", + "boutique.district" + ], + [ + "store.district", + "boutique.district" + ], + [ + "shop.number_products", + "store.number_products" + ], + [ + "shop.number_products", + "boutique.number_products" + ], + [ + "store.number_products", + "boutique.number_products" + ], + [ + "shop.manager_name", + "store.manager_name" + ], + [ + "shop.manager_name", + "boutique.manager_name" + ], + [ + "store.manager_name", + "boutique.manager_name" + ] + ] + }, + { + "question": "sort all the #shops by number products# in descending order, and return the #name# , #location# and #district# of each shop.", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ], + "store": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "boutique": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ] + }, + "linking_list": [ + [ + "shops by number products", + "shop.number_products" + ], + [ + "shops by number products", + "store.number_products" + ], + [ + "shops by number products", + "boutique.number_products" + ], + [ + "name", + "shop.name" + ], + [ + "name", + "store.name" + ], + [ + "name", + "boutique.name" + ], + [ + "location", + "shop.location" + ], + [ + "location", + "store.location" + ], + [ + "location", + "boutique.location" + ], + [ + "district", + "shop.district" + ], + [ + "district", + "store.district" + ], + [ + "district", + "boutique.district" + ] + ], + "linking_list_idx": [ + [ + 0, + "shop.number_products" + ], + [ + 0, + "store.number_products" + ], + [ + 0, + "boutique.number_products" + ], + [ + 1, + "shop.name" + ], + [ + 1, + "store.name" + ], + [ + 1, + "boutique.name" + ], + [ + 2, + "shop.location" + ], + [ + 2, + "store.location" + ], + [ + 2, + "boutique.location" + ], + [ + 3, + "shop.district" + ], + [ + 3, + "store.district" + ], + [ + 3, + "boutique.district" + ] + ], + "linking_list_col": [ + [ + "shop.shop_id", + "store.shop_id" + ], + [ + "shop.shop_id", + "boutique.shop_id" + ], + [ + "store.shop_id", + "boutique.shop_id" + ], + [ + "shop.name", + "store.name" + ], + [ + "shop.name", + "boutique.name" + ], + [ + "store.name", + "boutique.name" + ], + [ + "shop.location", + "store.location" + ], + [ + "shop.location", + "boutique.location" + ], + [ + "store.location", + "boutique.location" + ], + [ + "shop.district", + "store.district" + ], + [ + "shop.district", + "boutique.district" + ], + [ + "store.district", + "boutique.district" + ], + [ + "shop.number_products", + "store.number_products" + ], + [ + "shop.number_products", + "boutique.number_products" + ], + [ + "store.number_products", + "boutique.number_products" + ], + [ + "shop.manager_name", + "store.manager_name" + ], + [ + "shop.manager_name", + "boutique.manager_name" + ], + [ + "store.manager_name", + "boutique.manager_name" + ] + ] + }, + { + "question": "find the #names of stores# whose #number products# is more than the average number of products.", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ], + "store": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "boutique": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ] + }, + "linking_list": [ + [ + "names of stores", + "shop.name" + ], + [ + "names of stores", + "store.name" + ], + [ + "names of stores", + "boutique.name" + ], + [ + "number products", + "shop.number_products" + ], + [ + "number products", + "store.number_products" + ], + [ + "number products", + "boutique.number_products" + ] + ], + "linking_list_idx": [ + [ + 0, + "shop.name" + ], + [ + 0, + "store.name" + ], + [ + 0, + "boutique.name" + ], + [ + 1, + "shop.number_products" + ], + [ + 1, + "store.number_products" + ], + [ + 1, + "boutique.number_products" + ] + ], + "linking_list_col": [ + [ + "shop.shop_id", + "store.shop_id" + ], + [ + "shop.shop_id", + "boutique.shop_id" + ], + [ + "store.shop_id", + "boutique.shop_id" + ], + [ + "shop.name", + "store.name" + ], + [ + "shop.name", + "boutique.name" + ], + [ + "store.name", + "boutique.name" + ], + [ + "shop.location", + "store.location" + ], + [ + "shop.location", + "boutique.location" + ], + [ + "store.location", + "boutique.location" + ], + [ + "shop.district", + "store.district" + ], + [ + "shop.district", + "boutique.district" + ], + [ + "store.district", + "boutique.district" + ], + [ + "shop.number_products", + "store.number_products" + ], + [ + "shop.number_products", + "boutique.number_products" + ], + [ + "store.number_products", + "boutique.number_products" + ], + [ + "shop.manager_name", + "store.manager_name" + ], + [ + "shop.manager_name", + "boutique.manager_name" + ], + [ + "store.manager_name", + "boutique.manager_name" + ] + ] + }, + { + "question": "which #shops' number products# is above the average? give me the #shop names# .", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ], + "store": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "boutique": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ] + }, + "linking_list": [ + [ + "shop names", + "shop.name" + ], + [ + "shop names", + "store.name" + ], + [ + "shop names", + "boutique.name" + ], + [ + "shops' number products", + "shop.number_products" + ], + [ + "shops' number products", + "store.number_products" + ], + [ + "shops' number products", + "boutique.number_products" + ] + ], + "linking_list_idx": [ + [ + 0, + "shop.name" + ], + [ + 0, + "store.name" + ], + [ + 0, + "boutique.name" + ], + [ + 1, + "shop.number_products" + ], + [ + 1, + "store.number_products" + ], + [ + 1, + "boutique.number_products" + ] + ], + "linking_list_col": [ + [ + "shop.shop_id", + "store.shop_id" + ], + [ + "shop.shop_id", + "boutique.shop_id" + ], + [ + "store.shop_id", + "boutique.shop_id" + ], + [ + "shop.name", + "store.name" + ], + [ + "shop.name", + "boutique.name" + ], + [ + "store.name", + "boutique.name" + ], + [ + "shop.location", + "store.location" + ], + [ + "shop.location", + "boutique.location" + ], + [ + "store.location", + "boutique.location" + ], + [ + "shop.district", + "store.district" + ], + [ + "shop.district", + "boutique.district" + ], + [ + "store.district", + "boutique.district" + ], + [ + "shop.number_products", + "store.number_products" + ], + [ + "shop.number_products", + "boutique.number_products" + ], + [ + "store.number_products", + "boutique.number_products" + ], + [ + "shop.manager_name", + "store.manager_name" + ], + [ + "shop.manager_name", + "boutique.manager_name" + ], + [ + "store.manager_name", + "boutique.manager_name" + ] + ] + }, + { + "question": "find the #name of the employee# who got the highest one time #bonus# .", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ], + "appraisal": [ + "employee_id", + "year_awarded", + "bonus" + ], + "assessment": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "linking_list": [ + [ + "name of the employee", + "employee.name" + ], + [ + "bonus", + "evaluation.bonus" + ], + [ + "bonus", + "appraisal.bonus" + ], + [ + "bonus", + "assessment.bonus" + ] + ], + "linking_list_idx": [ + [ + 0, + "employee.name" + ], + [ + 1, + "evaluation.bonus" + ], + [ + 1, + "appraisal.bonus" + ], + [ + 1, + "assessment.bonus" + ] + ], + "linking_list_col": [ + [ + "evaluation.employee_id", + "appraisal.employee_id" + ], + [ + "evaluation.employee_id", + "assessment.employee_id" + ], + [ + "appraisal.employee_id", + "assessment.employee_id" + ], + [ + "evaluation.year_awarded", + "appraisal.year_awarded" + ], + [ + "evaluation.year_awarded", + "assessment.year_awarded" + ], + [ + "appraisal.year_awarded", + "assessment.year_awarded" + ], + [ + "evaluation.bonus", + "appraisal.bonus" + ], + [ + "evaluation.bonus", + "assessment.bonus" + ], + [ + "appraisal.bonus", + "assessment.bonus" + ] + ] + }, + { + "question": "for each shop, return the #number of employees# working there and the name of the shop.", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ], + "recruitment": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "onboarding": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ] + }, + "linking_list": [ + [ + "number of employees", + "hiring.employee_id" + ], + [ + "number of employees", + "recruitment.employee_id" + ], + [ + "number of employees", + "onboarding.employee_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "hiring.employee_id" + ], + [ + 0, + "recruitment.employee_id" + ], + [ + 0, + "onboarding.employee_id" + ] + ], + "linking_list_col": [ + [ + "hiring.shop_id", + "recruitment.shop_id" + ], + [ + "hiring.shop_id", + "onboarding.shop_id" + ], + [ + "recruitment.shop_id", + "onboarding.shop_id" + ], + [ + "hiring.employee_id", + "recruitment.employee_id" + ], + [ + "hiring.employee_id", + "onboarding.employee_id" + ], + [ + "recruitment.employee_id", + "onboarding.employee_id" + ], + [ + "hiring.start_from", + "recruitment.start_from" + ], + [ + "hiring.start_from", + "onboarding.start_from" + ], + [ + "recruitment.start_from", + "onboarding.start_from" + ], + [ + "hiring.is_full_time", + "recruitment.is_full_time" + ], + [ + "hiring.is_full_time", + "onboarding.is_full_time" + ], + [ + "recruitment.is_full_time", + "onboarding.is_full_time" + ] + ] + }, + { + "question": "which #district# has both #stores with less than 3000 products# and stores with more than 10000 products?", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ], + "store": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "boutique": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ] + }, + "linking_list": [ + [ + "district", + "shop.district" + ], + [ + "district", + "store.district" + ], + [ + "district", + "boutique.district" + ], + [ + "stores with less than 3000 products", + "shop.number_products" + ], + [ + "stores with less than 3000 products", + "store.number_products" + ], + [ + "stores with less than 3000 products", + "boutique.number_products" + ] + ], + "linking_list_idx": [ + [ + 0, + "shop.district" + ], + [ + 0, + "store.district" + ], + [ + 0, + "boutique.district" + ], + [ + 1, + "shop.number_products" + ], + [ + 1, + "store.number_products" + ], + [ + 1, + "boutique.number_products" + ] + ], + "linking_list_col": [ + [ + "shop.shop_id", + "store.shop_id" + ], + [ + "shop.shop_id", + "boutique.shop_id" + ], + [ + "store.shop_id", + "boutique.shop_id" + ], + [ + "shop.name", + "store.name" + ], + [ + "shop.name", + "boutique.name" + ], + [ + "store.name", + "boutique.name" + ], + [ + "shop.location", + "store.location" + ], + [ + "shop.location", + "boutique.location" + ], + [ + "store.location", + "boutique.location" + ], + [ + "shop.district", + "store.district" + ], + [ + "shop.district", + "boutique.district" + ], + [ + "store.district", + "boutique.district" + ], + [ + "shop.number_products", + "store.number_products" + ], + [ + "shop.number_products", + "boutique.number_products" + ], + [ + "store.number_products", + "boutique.number_products" + ], + [ + "shop.manager_name", + "store.manager_name" + ], + [ + "shop.manager_name", + "boutique.manager_name" + ], + [ + "store.manager_name", + "boutique.manager_name" + ] + ] + }, + { + "question": "find the #districts# in which there are both shops selling #less than 3000 products# and shops selling #more than 10000 products# .", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ], + "store": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "boutique": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ] + }, + "linking_list": [ + [ + "districts", + "shop.district" + ], + [ + "districts", + "store.district" + ], + [ + "districts", + "boutique.district" + ], + [ + "less than 3000 products", + "shop.number_products" + ], + [ + "less than 3000 products", + "store.number_products" + ], + [ + "less than 3000 products", + "boutique.number_products" + ], + [ + "more than 10000 products", + "shop.number_products" + ], + [ + "more than 10000 products", + "store.number_products" + ], + [ + "more than 10000 products", + "boutique.number_products" + ] + ], + "linking_list_idx": [ + [ + 0, + "shop.district" + ], + [ + 0, + "store.district" + ], + [ + 0, + "boutique.district" + ], + [ + 1, + "shop.number_products" + ], + [ + 1, + "store.number_products" + ], + [ + 1, + "boutique.number_products" + ], + [ + 2, + "shop.number_products" + ], + [ + 2, + "store.number_products" + ], + [ + 2, + "boutique.number_products" + ] + ], + "linking_list_col": [ + [ + "shop.shop_id", + "store.shop_id" + ], + [ + "shop.shop_id", + "boutique.shop_id" + ], + [ + "store.shop_id", + "boutique.shop_id" + ], + [ + "shop.name", + "store.name" + ], + [ + "shop.name", + "boutique.name" + ], + [ + "store.name", + "boutique.name" + ], + [ + "shop.location", + "store.location" + ], + [ + "shop.location", + "boutique.location" + ], + [ + "store.location", + "boutique.location" + ], + [ + "shop.district", + "store.district" + ], + [ + "shop.district", + "boutique.district" + ], + [ + "store.district", + "boutique.district" + ], + [ + "shop.number_products", + "store.number_products" + ], + [ + "shop.number_products", + "boutique.number_products" + ], + [ + "store.number_products", + "boutique.number_products" + ], + [ + "shop.manager_name", + "store.manager_name" + ], + [ + "shop.manager_name", + "boutique.manager_name" + ], + [ + "store.manager_name", + "boutique.manager_name" + ] + ] + }, + { + "question": "what is the #document name# and #template id for document with description# with the letter 'w' in it?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Files": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "Records": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ] + }, + "linking_list": [ + [ + "document name", + "documents.document_name" + ], + [ + "document name", + "Files.document_name" + ], + [ + "document name", + "Records.document_name" + ], + [ + "template id for document with description", + "documents.template_id" + ], + [ + "template id for document with description", + "Files.template_id" + ], + [ + "template id for document with description", + "Records.template_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "documents.document_name" + ], + [ + 0, + "Files.document_name" + ], + [ + 0, + "Records.document_name" + ], + [ + 1, + "documents.template_id" + ], + [ + 1, + "Files.template_id" + ], + [ + 1, + "Records.template_id" + ] + ], + "linking_list_col": [ + [ + "documents.document_id", + "files.document_id" + ], + [ + "documents.document_id", + "records.document_id" + ], + [ + "files.document_id", + "records.document_id" + ], + [ + "documents.template_id", + "files.template_id" + ], + [ + "documents.template_id", + "records.template_id" + ], + [ + "files.template_id", + "records.template_id" + ], + [ + "documents.document_name", + "files.document_name" + ], + [ + "documents.document_name", + "records.document_name" + ], + [ + "files.document_name", + "records.document_name" + ], + [ + "documents.document_description", + "files.document_description" + ], + [ + "documents.document_description", + "records.document_description" + ], + [ + "files.document_description", + "records.document_description" + ], + [ + "documents.other_details", + "files.other_details" + ], + [ + "documents.other_details", + "records.other_details" + ], + [ + "files.other_details", + "records.other_details" + ] + ] + }, + { + "question": "return the #names# and #template ids# for documents that contain the letter w in their #description# .", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Files": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "Records": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ] + }, + "linking_list": [ + [ + "names", + "documents.document_name" + ], + [ + "names", + "Files.document_name" + ], + [ + "names", + "Records.document_name" + ], + [ + "template ids", + "documents.template_id" + ], + [ + "template ids", + "Files.template_id" + ], + [ + "template ids", + "Records.template_id" + ], + [ + "description", + "documents.document_description" + ], + [ + "description", + "Files.document_description" + ], + [ + "description", + "Records.document_description" + ] + ], + "linking_list_idx": [ + [ + 0, + "documents.document_name" + ], + [ + 0, + "Files.document_name" + ], + [ + 0, + "Records.document_name" + ], + [ + 1, + "documents.template_id" + ], + [ + 1, + "Files.template_id" + ], + [ + 1, + "Records.template_id" + ], + [ + 2, + "documents.document_description" + ], + [ + 2, + "Files.document_description" + ], + [ + 2, + "Records.document_description" + ] + ], + "linking_list_col": [ + [ + "documents.document_id", + "files.document_id" + ], + [ + "documents.document_id", + "records.document_id" + ], + [ + "files.document_id", + "records.document_id" + ], + [ + "documents.template_id", + "files.template_id" + ], + [ + "documents.template_id", + "records.template_id" + ], + [ + "files.template_id", + "records.template_id" + ], + [ + "documents.document_name", + "files.document_name" + ], + [ + "documents.document_name", + "records.document_name" + ], + [ + "files.document_name", + "records.document_name" + ], + [ + "documents.document_description", + "files.document_description" + ], + [ + "documents.document_description", + "records.document_description" + ], + [ + "files.document_description", + "records.document_description" + ], + [ + "documents.other_details", + "files.other_details" + ], + [ + "documents.other_details", + "records.other_details" + ], + [ + "files.other_details", + "records.other_details" + ] + ] + }, + { + "question": "what is the #document id# , #template id# and #description for document named# \"robbin cv\"?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Files": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "Records": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ] + }, + "linking_list": [ + [ + "document id", + "documents.document_id" + ], + [ + "document id", + "Files.document_id" + ], + [ + "document id", + "Records.document_id" + ], + [ + "template id", + "documents.template_id" + ], + [ + "template id", + "Files.template_id" + ], + [ + "template id", + "Records.template_id" + ], + [ + "description for document named", + "documents.document_description" + ], + [ + "description for document named", + "Files.document_description" + ], + [ + "description for document named", + "Records.document_description" + ] + ], + "linking_list_idx": [ + [ + 0, + "documents.document_id" + ], + [ + 0, + "Files.document_id" + ], + [ + 0, + "Records.document_id" + ], + [ + 1, + "documents.template_id" + ], + [ + 1, + "Files.template_id" + ], + [ + 1, + "Records.template_id" + ], + [ + 2, + "documents.document_description" + ], + [ + 2, + "Files.document_description" + ], + [ + 2, + "Records.document_description" + ] + ], + "linking_list_col": [ + [ + "documents.document_id", + "files.document_id" + ], + [ + "documents.document_id", + "records.document_id" + ], + [ + "files.document_id", + "records.document_id" + ], + [ + "documents.template_id", + "files.template_id" + ], + [ + "documents.template_id", + "records.template_id" + ], + [ + "files.template_id", + "records.template_id" + ], + [ + "documents.document_name", + "files.document_name" + ], + [ + "documents.document_name", + "records.document_name" + ], + [ + "files.document_name", + "records.document_name" + ], + [ + "documents.document_description", + "files.document_description" + ], + [ + "documents.document_description", + "records.document_description" + ], + [ + "files.document_description", + "records.document_description" + ], + [ + "documents.other_details", + "files.other_details" + ], + [ + "documents.other_details", + "records.other_details" + ], + [ + "files.other_details", + "records.other_details" + ] + ] + }, + { + "question": "return the #document id# , #template id# , and #description for the document with the name# robbin cv.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Files": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "Records": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ] + }, + "linking_list": [ + [ + "document id", + "documents.document_id" + ], + [ + "document id", + "Files.document_id" + ], + [ + "document id", + "Records.document_id" + ], + [ + "template id", + "documents.template_id" + ], + [ + "template id", + "Files.template_id" + ], + [ + "template id", + "Records.template_id" + ], + [ + "description for the document with the name", + "documents.document_description" + ], + [ + "description for the document with the name", + "Files.document_description" + ], + [ + "description for the document with the name", + "Records.document_description" + ] + ], + "linking_list_idx": [ + [ + 0, + "documents.document_id" + ], + [ + 0, + "Files.document_id" + ], + [ + 0, + "Records.document_id" + ], + [ + 1, + "documents.template_id" + ], + [ + 1, + "Files.template_id" + ], + [ + 1, + "Records.template_id" + ], + [ + 2, + "documents.document_description" + ], + [ + 2, + "Files.document_description" + ], + [ + 2, + "Records.document_description" + ] + ], + "linking_list_col": [ + [ + "documents.document_id", + "files.document_id" + ], + [ + "documents.document_id", + "records.document_id" + ], + [ + "files.document_id", + "records.document_id" + ], + [ + "documents.template_id", + "files.template_id" + ], + [ + "documents.template_id", + "records.template_id" + ], + [ + "files.template_id", + "records.template_id" + ], + [ + "documents.document_name", + "files.document_name" + ], + [ + "documents.document_name", + "records.document_name" + ], + [ + "files.document_name", + "records.document_name" + ], + [ + "documents.document_description", + "files.document_description" + ], + [ + "documents.document_description", + "records.document_description" + ], + [ + "files.document_description", + "records.document_description" + ], + [ + "documents.other_details", + "files.other_details" + ], + [ + "documents.other_details", + "records.other_details" + ], + [ + "files.other_details", + "records.other_details" + ] + ] + }, + { + "question": "count the #number of documents# that use the #ppt template type# .", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Files": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "Records": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ] + }, + "linking_list": [ + [ + "number of documents", + "documents.document_id" + ], + [ + "number of documents", + "Files.document_id" + ], + [ + "number of documents", + "Records.document_id" + ], + [ + "PPT template type", + "templates.template_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "documents.document_id" + ], + [ + 0, + "Files.document_id" + ], + [ + 0, + "Records.document_id" + ], + [ + 1, + "templates.template_type_code" + ] + ], + "linking_list_col": [ + [ + "documents.document_id", + "files.document_id" + ], + [ + "documents.document_id", + "records.document_id" + ], + [ + "files.document_id", + "records.document_id" + ], + [ + "documents.template_id", + "files.template_id" + ], + [ + "documents.template_id", + "records.template_id" + ], + [ + "files.template_id", + "records.template_id" + ], + [ + "documents.document_name", + "files.document_name" + ], + [ + "documents.document_name", + "records.document_name" + ], + [ + "files.document_name", + "records.document_name" + ], + [ + "documents.document_description", + "files.document_description" + ], + [ + "documents.document_description", + "records.document_description" + ], + [ + "files.document_description", + "records.document_description" + ], + [ + "documents.other_details", + "files.other_details" + ], + [ + "documents.other_details", + "records.other_details" + ], + [ + "files.other_details", + "records.other_details" + ] + ] + }, + { + "question": "show all #template ids# and number of documents using each template.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Files": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "Records": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ] + }, + "linking_list": [ + [ + "template ids", + "documents.template_id" + ], + [ + "template ids", + "Files.template_id" + ], + [ + "template ids", + "Records.template_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "documents.template_id" + ], + [ + 0, + "Files.template_id" + ], + [ + 0, + "Records.template_id" + ] + ], + "linking_list_col": [ + [ + "documents.document_id", + "files.document_id" + ], + [ + "documents.document_id", + "records.document_id" + ], + [ + "files.document_id", + "records.document_id" + ], + [ + "documents.template_id", + "files.template_id" + ], + [ + "documents.template_id", + "records.template_id" + ], + [ + "files.template_id", + "records.template_id" + ], + [ + "documents.document_name", + "files.document_name" + ], + [ + "documents.document_name", + "records.document_name" + ], + [ + "files.document_name", + "records.document_name" + ], + [ + "documents.document_description", + "files.document_description" + ], + [ + "documents.document_description", + "records.document_description" + ], + [ + "files.document_description", + "records.document_description" + ], + [ + "documents.other_details", + "files.other_details" + ], + [ + "documents.other_details", + "records.other_details" + ], + [ + "files.other_details", + "records.other_details" + ] + ] + }, + { + "question": "what are all different #template ids# used for documents, and how many times were each of them used?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Files": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "Records": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ] + }, + "linking_list": [ + [ + "template ids", + "documents.template_id" + ], + [ + "template ids", + "Files.template_id" + ], + [ + "template ids", + "Records.template_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "documents.template_id" + ], + [ + 0, + "Files.template_id" + ], + [ + 0, + "Records.template_id" + ] + ], + "linking_list_col": [ + [ + "documents.document_id", + "files.document_id" + ], + [ + "documents.document_id", + "records.document_id" + ], + [ + "files.document_id", + "records.document_id" + ], + [ + "documents.template_id", + "files.template_id" + ], + [ + "documents.template_id", + "records.template_id" + ], + [ + "files.template_id", + "records.template_id" + ], + [ + "documents.document_name", + "files.document_name" + ], + [ + "documents.document_name", + "records.document_name" + ], + [ + "files.document_name", + "records.document_name" + ], + [ + "documents.document_description", + "files.document_description" + ], + [ + "documents.document_description", + "records.document_description" + ], + [ + "files.document_description", + "records.document_description" + ], + [ + "documents.other_details", + "files.other_details" + ], + [ + "documents.other_details", + "records.other_details" + ], + [ + "files.other_details", + "records.other_details" + ] + ] + }, + { + "question": "what is the #id# and #type code for the template# used by the most documents?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Files": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "Records": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ] + }, + "linking_list": [ + [ + "id", + "documents.template_id" + ], + [ + "id", + "Files.template_id" + ], + [ + "id", + "Records.template_id" + ], + [ + "type code for the template", + "templates.template_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "documents.template_id" + ], + [ + 0, + "Files.template_id" + ], + [ + 0, + "Records.template_id" + ], + [ + 1, + "templates.template_type_code" + ] + ], + "linking_list_col": [ + [ + "documents.document_id", + "files.document_id" + ], + [ + "documents.document_id", + "records.document_id" + ], + [ + "files.document_id", + "records.document_id" + ], + [ + "documents.template_id", + "files.template_id" + ], + [ + "documents.template_id", + "records.template_id" + ], + [ + "files.template_id", + "records.template_id" + ], + [ + "documents.document_name", + "files.document_name" + ], + [ + "documents.document_name", + "records.document_name" + ], + [ + "files.document_name", + "records.document_name" + ], + [ + "documents.document_description", + "files.document_description" + ], + [ + "documents.document_description", + "records.document_description" + ], + [ + "files.document_description", + "records.document_description" + ], + [ + "documents.other_details", + "files.other_details" + ], + [ + "documents.other_details", + "records.other_details" + ], + [ + "files.other_details", + "records.other_details" + ] + ] + }, + { + "question": "return the #id# and #type code of the template# that is used for the greatest number of documents.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Files": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "Records": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ] + }, + "linking_list": [ + [ + "id", + "documents.template_id" + ], + [ + "id", + "Files.template_id" + ], + [ + "id", + "Records.template_id" + ], + [ + "type code of the template", + "templates.template_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "documents.template_id" + ], + [ + 0, + "Files.template_id" + ], + [ + 0, + "Records.template_id" + ], + [ + 1, + "templates.template_type_code" + ] + ], + "linking_list_col": [ + [ + "documents.document_id", + "files.document_id" + ], + [ + "documents.document_id", + "records.document_id" + ], + [ + "files.document_id", + "records.document_id" + ], + [ + "documents.template_id", + "files.template_id" + ], + [ + "documents.template_id", + "records.template_id" + ], + [ + "files.template_id", + "records.template_id" + ], + [ + "documents.document_name", + "files.document_name" + ], + [ + "documents.document_name", + "records.document_name" + ], + [ + "files.document_name", + "records.document_name" + ], + [ + "documents.document_description", + "files.document_description" + ], + [ + "documents.document_description", + "records.document_description" + ], + [ + "files.document_description", + "records.document_description" + ], + [ + "documents.other_details", + "files.other_details" + ], + [ + "documents.other_details", + "records.other_details" + ], + [ + "files.other_details", + "records.other_details" + ] + ] + }, + { + "question": "what are the #template ids# of any templates used in more than a single document?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Files": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "Records": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ] + }, + "linking_list": [ + [ + "template ids", + "documents.template_id" + ], + [ + "template ids", + "Files.template_id" + ], + [ + "template ids", + "Records.template_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "documents.template_id" + ], + [ + 0, + "Files.template_id" + ], + [ + 0, + "Records.template_id" + ] + ], + "linking_list_col": [ + [ + "documents.document_id", + "files.document_id" + ], + [ + "documents.document_id", + "records.document_id" + ], + [ + "files.document_id", + "records.document_id" + ], + [ + "documents.template_id", + "files.template_id" + ], + [ + "documents.template_id", + "records.template_id" + ], + [ + "files.template_id", + "records.template_id" + ], + [ + "documents.document_name", + "files.document_name" + ], + [ + "documents.document_name", + "records.document_name" + ], + [ + "files.document_name", + "records.document_name" + ], + [ + "documents.document_description", + "files.document_description" + ], + [ + "documents.document_description", + "records.document_description" + ], + [ + "files.document_description", + "records.document_description" + ], + [ + "documents.other_details", + "files.other_details" + ], + [ + "documents.other_details", + "records.other_details" + ], + [ + "files.other_details", + "records.other_details" + ] + ] + }, + { + "question": "show #ids for all templates# not used by any document.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Forms": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "Drafts": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ] + }, + "linking_list": [ + [ + "ids for all templates", + "templates.template_id" + ], + [ + "ids for all templates", + "Forms.template_id" + ], + [ + "ids for all templates", + "Drafts.template_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.template_id" + ], + [ + 0, + "Forms.template_id" + ], + [ + 0, + "Drafts.template_id" + ] + ], + "linking_list_col": [ + [ + "templates.template_id", + "forms.template_id" + ], + [ + "templates.template_id", + "drafts.template_id" + ], + [ + "forms.template_id", + "drafts.template_id" + ], + [ + "templates.version_number", + "forms.version_number" + ], + [ + "templates.version_number", + "drafts.version_number" + ], + [ + "forms.version_number", + "drafts.version_number" + ], + [ + "templates.template_type_code", + "forms.template_type_code" + ], + [ + "templates.template_type_code", + "drafts.template_type_code" + ], + [ + "forms.template_type_code", + "drafts.template_type_code" + ], + [ + "templates.date_effective_from", + "forms.date_effective_from" + ], + [ + "templates.date_effective_from", + "drafts.date_effective_from" + ], + [ + "forms.date_effective_from", + "drafts.date_effective_from" + ], + [ + "templates.date_effective_to", + "forms.date_effective_to" + ], + [ + "templates.date_effective_to", + "drafts.date_effective_to" + ], + [ + "forms.date_effective_to", + "drafts.date_effective_to" + ], + [ + "templates.template_details", + "forms.template_details" + ], + [ + "templates.template_details", + "drafts.template_details" + ], + [ + "forms.template_details", + "drafts.template_details" + ] + ] + }, + { + "question": "what are the #ids for templates# that are not used in any documents?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Forms": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "Drafts": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ] + }, + "linking_list": [ + [ + "ids for templates", + "templates.template_id" + ], + [ + "ids for templates", + "Forms.template_id" + ], + [ + "ids for templates", + "Drafts.template_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.template_id" + ], + [ + 0, + "Forms.template_id" + ], + [ + 0, + "Drafts.template_id" + ] + ], + "linking_list_col": [ + [ + "templates.template_id", + "forms.template_id" + ], + [ + "templates.template_id", + "drafts.template_id" + ], + [ + "forms.template_id", + "drafts.template_id" + ], + [ + "templates.version_number", + "forms.version_number" + ], + [ + "templates.version_number", + "drafts.version_number" + ], + [ + "forms.version_number", + "drafts.version_number" + ], + [ + "templates.template_type_code", + "forms.template_type_code" + ], + [ + "templates.template_type_code", + "drafts.template_type_code" + ], + [ + "forms.template_type_code", + "drafts.template_type_code" + ], + [ + "templates.date_effective_from", + "forms.date_effective_from" + ], + [ + "templates.date_effective_from", + "drafts.date_effective_from" + ], + [ + "forms.date_effective_from", + "drafts.date_effective_from" + ], + [ + "templates.date_effective_to", + "forms.date_effective_to" + ], + [ + "templates.date_effective_to", + "drafts.date_effective_to" + ], + [ + "forms.date_effective_to", + "drafts.date_effective_to" + ], + [ + "templates.template_details", + "forms.template_details" + ], + [ + "templates.template_details", + "drafts.template_details" + ], + [ + "forms.template_details", + "drafts.template_details" + ] + ] + }, + { + "question": "what are the #ids of templates with template type code# pp or ppt?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Forms": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "Drafts": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ] + }, + "linking_list": [ + [ + "ids of templates with template type code", + "templates.template_id" + ], + [ + "ids of templates with template type code", + "Forms.template_id" + ], + [ + "ids of templates with template type code", + "Drafts.template_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.template_id" + ], + [ + 0, + "Forms.template_id" + ], + [ + 0, + "Drafts.template_id" + ] + ], + "linking_list_col": [ + [ + "templates.template_id", + "forms.template_id" + ], + [ + "templates.template_id", + "drafts.template_id" + ], + [ + "forms.template_id", + "drafts.template_id" + ], + [ + "templates.version_number", + "forms.version_number" + ], + [ + "templates.version_number", + "drafts.version_number" + ], + [ + "forms.version_number", + "drafts.version_number" + ], + [ + "templates.template_type_code", + "forms.template_type_code" + ], + [ + "templates.template_type_code", + "drafts.template_type_code" + ], + [ + "forms.template_type_code", + "drafts.template_type_code" + ], + [ + "templates.date_effective_from", + "forms.date_effective_from" + ], + [ + "templates.date_effective_from", + "drafts.date_effective_from" + ], + [ + "forms.date_effective_from", + "drafts.date_effective_from" + ], + [ + "templates.date_effective_to", + "forms.date_effective_to" + ], + [ + "templates.date_effective_to", + "drafts.date_effective_to" + ], + [ + "forms.date_effective_to", + "drafts.date_effective_to" + ], + [ + "templates.template_details", + "forms.template_details" + ], + [ + "templates.template_details", + "drafts.template_details" + ], + [ + "forms.template_details", + "drafts.template_details" + ] + ] + }, + { + "question": "return the #ids of templates# that have the #code# pp or ppt.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Forms": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "Drafts": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ] + }, + "linking_list": [ + [ + "ids of templates", + "templates.template_id" + ], + [ + "ids of templates", + "Forms.template_id" + ], + [ + "ids of templates", + "Drafts.template_id" + ], + [ + "code", + "templates.template_type_code" + ], + [ + "code", + "Forms.template_type_code" + ], + [ + "code", + "Drafts.template_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.template_id" + ], + [ + 0, + "Forms.template_id" + ], + [ + 0, + "Drafts.template_id" + ], + [ + 1, + "templates.template_type_code" + ], + [ + 1, + "Forms.template_type_code" + ], + [ + 1, + "Drafts.template_type_code" + ] + ], + "linking_list_col": [ + [ + "templates.template_id", + "forms.template_id" + ], + [ + "templates.template_id", + "drafts.template_id" + ], + [ + "forms.template_id", + "drafts.template_id" + ], + [ + "templates.version_number", + "forms.version_number" + ], + [ + "templates.version_number", + "drafts.version_number" + ], + [ + "forms.version_number", + "drafts.version_number" + ], + [ + "templates.template_type_code", + "forms.template_type_code" + ], + [ + "templates.template_type_code", + "drafts.template_type_code" + ], + [ + "forms.template_type_code", + "drafts.template_type_code" + ], + [ + "templates.date_effective_from", + "forms.date_effective_from" + ], + [ + "templates.date_effective_from", + "drafts.date_effective_from" + ], + [ + "forms.date_effective_from", + "drafts.date_effective_from" + ], + [ + "templates.date_effective_to", + "forms.date_effective_to" + ], + [ + "templates.date_effective_to", + "drafts.date_effective_to" + ], + [ + "forms.date_effective_to", + "drafts.date_effective_to" + ], + [ + "templates.template_details", + "forms.template_details" + ], + [ + "templates.template_details", + "drafts.template_details" + ], + [ + "forms.template_details", + "drafts.template_details" + ] + ] + }, + { + "question": "how many templates have #template type code# cv?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Forms": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "Drafts": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ] + }, + "linking_list": [ + [ + "template type code", + "templates.template_type_code" + ], + [ + "template type code", + "Forms.template_type_code" + ], + [ + "template type code", + "Drafts.template_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.template_type_code" + ], + [ + 0, + "Forms.template_type_code" + ], + [ + 0, + "Drafts.template_type_code" + ] + ], + "linking_list_col": [ + [ + "templates.template_id", + "forms.template_id" + ], + [ + "templates.template_id", + "drafts.template_id" + ], + [ + "forms.template_id", + "drafts.template_id" + ], + [ + "templates.version_number", + "forms.version_number" + ], + [ + "templates.version_number", + "drafts.version_number" + ], + [ + "forms.version_number", + "drafts.version_number" + ], + [ + "templates.template_type_code", + "forms.template_type_code" + ], + [ + "templates.template_type_code", + "drafts.template_type_code" + ], + [ + "forms.template_type_code", + "drafts.template_type_code" + ], + [ + "templates.date_effective_from", + "forms.date_effective_from" + ], + [ + "templates.date_effective_from", + "drafts.date_effective_from" + ], + [ + "forms.date_effective_from", + "drafts.date_effective_from" + ], + [ + "templates.date_effective_to", + "forms.date_effective_to" + ], + [ + "templates.date_effective_to", + "drafts.date_effective_to" + ], + [ + "forms.date_effective_to", + "drafts.date_effective_to" + ], + [ + "templates.template_details", + "forms.template_details" + ], + [ + "templates.template_details", + "drafts.template_details" + ], + [ + "forms.template_details", + "drafts.template_details" + ] + ] + }, + { + "question": "count the #number of templates of the type# cv.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Forms": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "Drafts": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ] + }, + "linking_list": [ + [ + "number of templates of the type", + "templates.template_type_code" + ], + [ + "number of templates of the type", + "Forms.template_type_code" + ], + [ + "number of templates of the type", + "Drafts.template_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.template_type_code" + ], + [ + 0, + "Forms.template_type_code" + ], + [ + 0, + "Drafts.template_type_code" + ] + ], + "linking_list_col": [ + [ + "templates.template_id", + "forms.template_id" + ], + [ + "templates.template_id", + "drafts.template_id" + ], + [ + "forms.template_id", + "drafts.template_id" + ], + [ + "templates.version_number", + "forms.version_number" + ], + [ + "templates.version_number", + "drafts.version_number" + ], + [ + "forms.version_number", + "drafts.version_number" + ], + [ + "templates.template_type_code", + "forms.template_type_code" + ], + [ + "templates.template_type_code", + "drafts.template_type_code" + ], + [ + "forms.template_type_code", + "drafts.template_type_code" + ], + [ + "templates.date_effective_from", + "forms.date_effective_from" + ], + [ + "templates.date_effective_from", + "drafts.date_effective_from" + ], + [ + "forms.date_effective_from", + "drafts.date_effective_from" + ], + [ + "templates.date_effective_to", + "forms.date_effective_to" + ], + [ + "templates.date_effective_to", + "drafts.date_effective_to" + ], + [ + "forms.date_effective_to", + "drafts.date_effective_to" + ], + [ + "templates.template_details", + "forms.template_details" + ], + [ + "templates.template_details", + "drafts.template_details" + ], + [ + "forms.template_details", + "drafts.template_details" + ] + ] + }, + { + "question": "what is the #version number# and template type code for the #template with version number# later than 5?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Forms": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "Drafts": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ] + }, + "linking_list": [ + [ + "version number", + "templates.version_number" + ], + [ + "version number", + "Forms.version_number" + ], + [ + "version number", + "Drafts.version_number" + ], + [ + "template with version number", + "templates.version_number" + ], + [ + "template with version number", + "Forms.version_number" + ], + [ + "template with version number", + "Drafts.version_number" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.version_number" + ], + [ + 0, + "Forms.version_number" + ], + [ + 0, + "Drafts.version_number" + ], + [ + 1, + "templates.version_number" + ], + [ + 1, + "Forms.version_number" + ], + [ + 1, + "Drafts.version_number" + ] + ], + "linking_list_col": [ + [ + "templates.template_id", + "forms.template_id" + ], + [ + "templates.template_id", + "drafts.template_id" + ], + [ + "forms.template_id", + "drafts.template_id" + ], + [ + "templates.version_number", + "forms.version_number" + ], + [ + "templates.version_number", + "drafts.version_number" + ], + [ + "forms.version_number", + "drafts.version_number" + ], + [ + "templates.template_type_code", + "forms.template_type_code" + ], + [ + "templates.template_type_code", + "drafts.template_type_code" + ], + [ + "forms.template_type_code", + "drafts.template_type_code" + ], + [ + "templates.date_effective_from", + "forms.date_effective_from" + ], + [ + "templates.date_effective_from", + "drafts.date_effective_from" + ], + [ + "forms.date_effective_from", + "drafts.date_effective_from" + ], + [ + "templates.date_effective_to", + "forms.date_effective_to" + ], + [ + "templates.date_effective_to", + "drafts.date_effective_to" + ], + [ + "forms.date_effective_to", + "drafts.date_effective_to" + ], + [ + "templates.template_details", + "forms.template_details" + ], + [ + "templates.template_details", + "drafts.template_details" + ], + [ + "forms.template_details", + "drafts.template_details" + ] + ] + }, + { + "question": "return the #version numbers# and #template type codes# of templates with a #version number# greater than 5.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Forms": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "Drafts": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ] + }, + "linking_list": [ + [ + "version numbers", + "templates.version_number" + ], + [ + "version numbers", + "Forms.version_number" + ], + [ + "version numbers", + "Drafts.version_number" + ], + [ + "template type codes", + "templates.template_type_code" + ], + [ + "template type codes", + "Forms.template_type_code" + ], + [ + "template type codes", + "Drafts.template_type_code" + ], + [ + "version number", + "templates.version_number" + ], + [ + "version number", + "Forms.version_number" + ], + [ + "version number", + "Drafts.version_number" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.version_number" + ], + [ + 0, + "Forms.version_number" + ], + [ + 0, + "Drafts.version_number" + ], + [ + 1, + "templates.template_type_code" + ], + [ + 1, + "Forms.template_type_code" + ], + [ + 1, + "Drafts.template_type_code" + ], + [ + 2, + "templates.version_number" + ], + [ + 2, + "Forms.version_number" + ], + [ + 2, + "Drafts.version_number" + ] + ], + "linking_list_col": [ + [ + "templates.template_id", + "forms.template_id" + ], + [ + "templates.template_id", + "drafts.template_id" + ], + [ + "forms.template_id", + "drafts.template_id" + ], + [ + "templates.version_number", + "forms.version_number" + ], + [ + "templates.version_number", + "drafts.version_number" + ], + [ + "forms.version_number", + "drafts.version_number" + ], + [ + "templates.template_type_code", + "forms.template_type_code" + ], + [ + "templates.template_type_code", + "drafts.template_type_code" + ], + [ + "forms.template_type_code", + "drafts.template_type_code" + ], + [ + "templates.date_effective_from", + "forms.date_effective_from" + ], + [ + "templates.date_effective_from", + "drafts.date_effective_from" + ], + [ + "forms.date_effective_from", + "drafts.date_effective_from" + ], + [ + "templates.date_effective_to", + "forms.date_effective_to" + ], + [ + "templates.date_effective_to", + "drafts.date_effective_to" + ], + [ + "forms.date_effective_to", + "drafts.date_effective_to" + ], + [ + "templates.template_details", + "forms.template_details" + ], + [ + "templates.template_details", + "drafts.template_details" + ], + [ + "forms.template_details", + "drafts.template_details" + ] + ] + }, + { + "question": "show all #template type codes# and number of templates for each.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Forms": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "Drafts": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ] + }, + "linking_list": [ + [ + "template type codes", + "templates.template_type_code" + ], + [ + "template type codes", + "Forms.template_type_code" + ], + [ + "template type codes", + "Drafts.template_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.template_type_code" + ], + [ + 0, + "Forms.template_type_code" + ], + [ + 0, + "Drafts.template_type_code" + ] + ], + "linking_list_col": [ + [ + "templates.template_id", + "forms.template_id" + ], + [ + "templates.template_id", + "drafts.template_id" + ], + [ + "forms.template_id", + "drafts.template_id" + ], + [ + "templates.version_number", + "forms.version_number" + ], + [ + "templates.version_number", + "drafts.version_number" + ], + [ + "forms.version_number", + "drafts.version_number" + ], + [ + "templates.template_type_code", + "forms.template_type_code" + ], + [ + "templates.template_type_code", + "drafts.template_type_code" + ], + [ + "forms.template_type_code", + "drafts.template_type_code" + ], + [ + "templates.date_effective_from", + "forms.date_effective_from" + ], + [ + "templates.date_effective_from", + "drafts.date_effective_from" + ], + [ + "forms.date_effective_from", + "drafts.date_effective_from" + ], + [ + "templates.date_effective_to", + "forms.date_effective_to" + ], + [ + "templates.date_effective_to", + "drafts.date_effective_to" + ], + [ + "forms.date_effective_to", + "drafts.date_effective_to" + ], + [ + "templates.template_details", + "forms.template_details" + ], + [ + "templates.template_details", + "drafts.template_details" + ], + [ + "forms.template_details", + "drafts.template_details" + ] + ] + }, + { + "question": "what are the different #template type codes# , and how many templates correspond to each?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Forms": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "Drafts": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ] + }, + "linking_list": [ + [ + "template type codes", + "templates.template_type_code" + ], + [ + "template type codes", + "Forms.template_type_code" + ], + [ + "template type codes", + "Drafts.template_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.template_type_code" + ], + [ + 0, + "Forms.template_type_code" + ], + [ + 0, + "Drafts.template_type_code" + ] + ], + "linking_list_col": [ + [ + "templates.template_id", + "forms.template_id" + ], + [ + "templates.template_id", + "drafts.template_id" + ], + [ + "forms.template_id", + "drafts.template_id" + ], + [ + "templates.version_number", + "forms.version_number" + ], + [ + "templates.version_number", + "drafts.version_number" + ], + [ + "forms.version_number", + "drafts.version_number" + ], + [ + "templates.template_type_code", + "forms.template_type_code" + ], + [ + "templates.template_type_code", + "drafts.template_type_code" + ], + [ + "forms.template_type_code", + "drafts.template_type_code" + ], + [ + "templates.date_effective_from", + "forms.date_effective_from" + ], + [ + "templates.date_effective_from", + "drafts.date_effective_from" + ], + [ + "forms.date_effective_from", + "drafts.date_effective_from" + ], + [ + "templates.date_effective_to", + "forms.date_effective_to" + ], + [ + "templates.date_effective_to", + "drafts.date_effective_to" + ], + [ + "forms.date_effective_to", + "drafts.date_effective_to" + ], + [ + "templates.template_details", + "forms.template_details" + ], + [ + "templates.template_details", + "drafts.template_details" + ], + [ + "forms.template_details", + "drafts.template_details" + ] + ] + }, + { + "question": "which #template type code# has most number of templates?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Forms": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "Drafts": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ] + }, + "linking_list": [ + [ + "template type code", + "templates.template_type_code" + ], + [ + "template type code", + "Forms.template_type_code" + ], + [ + "template type code", + "Drafts.template_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.template_type_code" + ], + [ + 0, + "Forms.template_type_code" + ], + [ + 0, + "Drafts.template_type_code" + ] + ], + "linking_list_col": [ + [ + "templates.template_id", + "forms.template_id" + ], + [ + "templates.template_id", + "drafts.template_id" + ], + [ + "forms.template_id", + "drafts.template_id" + ], + [ + "templates.version_number", + "forms.version_number" + ], + [ + "templates.version_number", + "drafts.version_number" + ], + [ + "forms.version_number", + "drafts.version_number" + ], + [ + "templates.template_type_code", + "forms.template_type_code" + ], + [ + "templates.template_type_code", + "drafts.template_type_code" + ], + [ + "forms.template_type_code", + "drafts.template_type_code" + ], + [ + "templates.date_effective_from", + "forms.date_effective_from" + ], + [ + "templates.date_effective_from", + "drafts.date_effective_from" + ], + [ + "forms.date_effective_from", + "drafts.date_effective_from" + ], + [ + "templates.date_effective_to", + "forms.date_effective_to" + ], + [ + "templates.date_effective_to", + "drafts.date_effective_to" + ], + [ + "forms.date_effective_to", + "drafts.date_effective_to" + ], + [ + "templates.template_details", + "forms.template_details" + ], + [ + "templates.template_details", + "drafts.template_details" + ], + [ + "forms.template_details", + "drafts.template_details" + ] + ] + }, + { + "question": "return the #type code of the template type# that the most templates belong to.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Forms": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "Drafts": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ] + }, + "linking_list": [ + [ + "type code of the template type", + "templates.template_type_code" + ], + [ + "type code of the template type", + "Forms.template_type_code" + ], + [ + "type code of the template type", + "Drafts.template_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.template_type_code" + ], + [ + 0, + "Forms.template_type_code" + ], + [ + 0, + "Drafts.template_type_code" + ] + ], + "linking_list_col": [ + [ + "templates.template_id", + "forms.template_id" + ], + [ + "templates.template_id", + "drafts.template_id" + ], + [ + "forms.template_id", + "drafts.template_id" + ], + [ + "templates.version_number", + "forms.version_number" + ], + [ + "templates.version_number", + "drafts.version_number" + ], + [ + "forms.version_number", + "drafts.version_number" + ], + [ + "templates.template_type_code", + "forms.template_type_code" + ], + [ + "templates.template_type_code", + "drafts.template_type_code" + ], + [ + "forms.template_type_code", + "drafts.template_type_code" + ], + [ + "templates.date_effective_from", + "forms.date_effective_from" + ], + [ + "templates.date_effective_from", + "drafts.date_effective_from" + ], + [ + "forms.date_effective_from", + "drafts.date_effective_from" + ], + [ + "templates.date_effective_to", + "forms.date_effective_to" + ], + [ + "templates.date_effective_to", + "drafts.date_effective_to" + ], + [ + "forms.date_effective_to", + "drafts.date_effective_to" + ], + [ + "templates.template_details", + "forms.template_details" + ], + [ + "templates.template_details", + "drafts.template_details" + ], + [ + "forms.template_details", + "drafts.template_details" + ] + ] + }, + { + "question": "show all #template type codes# with less than three templates.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Forms": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "Drafts": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ] + }, + "linking_list": [ + [ + "template type codes", + "templates.template_type_code" + ], + [ + "template type codes", + "Forms.template_type_code" + ], + [ + "template type codes", + "Drafts.template_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.template_type_code" + ], + [ + 0, + "Forms.template_type_code" + ], + [ + 0, + "Drafts.template_type_code" + ] + ], + "linking_list_col": [ + [ + "templates.template_id", + "forms.template_id" + ], + [ + "templates.template_id", + "drafts.template_id" + ], + [ + "forms.template_id", + "drafts.template_id" + ], + [ + "templates.version_number", + "forms.version_number" + ], + [ + "templates.version_number", + "drafts.version_number" + ], + [ + "forms.version_number", + "drafts.version_number" + ], + [ + "templates.template_type_code", + "forms.template_type_code" + ], + [ + "templates.template_type_code", + "drafts.template_type_code" + ], + [ + "forms.template_type_code", + "drafts.template_type_code" + ], + [ + "templates.date_effective_from", + "forms.date_effective_from" + ], + [ + "templates.date_effective_from", + "drafts.date_effective_from" + ], + [ + "forms.date_effective_from", + "drafts.date_effective_from" + ], + [ + "templates.date_effective_to", + "forms.date_effective_to" + ], + [ + "templates.date_effective_to", + "drafts.date_effective_to" + ], + [ + "forms.date_effective_to", + "drafts.date_effective_to" + ], + [ + "templates.template_details", + "forms.template_details" + ], + [ + "templates.template_details", + "drafts.template_details" + ], + [ + "forms.template_details", + "drafts.template_details" + ] + ] + }, + { + "question": "what are the #codes of template types# that have fewer than 3 templates?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Forms": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "Drafts": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ] + }, + "linking_list": [ + [ + "codes of template types", + "templates.template_type_code" + ], + [ + "codes of template types", + "Forms.template_type_code" + ], + [ + "codes of template types", + "Drafts.template_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.template_type_code" + ], + [ + 0, + "Forms.template_type_code" + ], + [ + 0, + "Drafts.template_type_code" + ] + ], + "linking_list_col": [ + [ + "templates.template_id", + "forms.template_id" + ], + [ + "templates.template_id", + "drafts.template_id" + ], + [ + "forms.template_id", + "drafts.template_id" + ], + [ + "templates.version_number", + "forms.version_number" + ], + [ + "templates.version_number", + "drafts.version_number" + ], + [ + "forms.version_number", + "drafts.version_number" + ], + [ + "templates.template_type_code", + "forms.template_type_code" + ], + [ + "templates.template_type_code", + "drafts.template_type_code" + ], + [ + "forms.template_type_code", + "drafts.template_type_code" + ], + [ + "templates.date_effective_from", + "forms.date_effective_from" + ], + [ + "templates.date_effective_from", + "drafts.date_effective_from" + ], + [ + "forms.date_effective_from", + "drafts.date_effective_from" + ], + [ + "templates.date_effective_to", + "forms.date_effective_to" + ], + [ + "templates.date_effective_to", + "drafts.date_effective_to" + ], + [ + "forms.date_effective_to", + "drafts.date_effective_to" + ], + [ + "templates.template_details", + "forms.template_details" + ], + [ + "templates.template_details", + "drafts.template_details" + ], + [ + "forms.template_details", + "drafts.template_details" + ] + ] + }, + { + "question": "return the #template type code# of the template that is used by a #document named# data base.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Files": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "Records": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ] + }, + "linking_list": [ + [ + "template type code", + "templates.template_type_code" + ], + [ + "document named", + "documents.document_name" + ], + [ + "document named", + "Files.document_name" + ], + [ + "document named", + "Records.document_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.template_type_code" + ], + [ + 1, + "documents.document_name" + ], + [ + 1, + "Files.document_name" + ], + [ + 1, + "Records.document_name" + ] + ], + "linking_list_col": [ + [ + "documents.document_id", + "files.document_id" + ], + [ + "documents.document_id", + "records.document_id" + ], + [ + "files.document_id", + "records.document_id" + ], + [ + "documents.template_id", + "files.template_id" + ], + [ + "documents.template_id", + "records.template_id" + ], + [ + "files.template_id", + "records.template_id" + ], + [ + "documents.document_name", + "files.document_name" + ], + [ + "documents.document_name", + "records.document_name" + ], + [ + "files.document_name", + "records.document_name" + ], + [ + "documents.document_description", + "files.document_description" + ], + [ + "documents.document_description", + "records.document_description" + ], + [ + "files.document_description", + "records.document_description" + ], + [ + "documents.other_details", + "files.other_details" + ], + [ + "documents.other_details", + "records.other_details" + ], + [ + "files.other_details", + "records.other_details" + ] + ] + }, + { + "question": "show all #document names# using #templates with template type code# bk.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Files": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "Records": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ] + }, + "linking_list": [ + [ + "document names", + "documents.document_name" + ], + [ + "document names", + "Files.document_name" + ], + [ + "document names", + "Records.document_name" + ], + [ + "templates with template type code", + "templates.template_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "documents.document_name" + ], + [ + 0, + "Files.document_name" + ], + [ + 0, + "Records.document_name" + ], + [ + 1, + "templates.template_type_code" + ] + ], + "linking_list_col": [ + [ + "documents.document_id", + "files.document_id" + ], + [ + "documents.document_id", + "records.document_id" + ], + [ + "files.document_id", + "records.document_id" + ], + [ + "documents.template_id", + "files.template_id" + ], + [ + "documents.template_id", + "records.template_id" + ], + [ + "files.template_id", + "records.template_id" + ], + [ + "documents.document_name", + "files.document_name" + ], + [ + "documents.document_name", + "records.document_name" + ], + [ + "files.document_name", + "records.document_name" + ], + [ + "documents.document_description", + "files.document_description" + ], + [ + "documents.document_description", + "records.document_description" + ], + [ + "files.document_description", + "records.document_description" + ], + [ + "documents.other_details", + "files.other_details" + ], + [ + "documents.other_details", + "records.other_details" + ], + [ + "files.other_details", + "records.other_details" + ] + ] + }, + { + "question": "what are the #names of documents# that use #templates with the code# bk?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Files": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "Records": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ] + }, + "linking_list": [ + [ + "names of documents", + "documents.document_name" + ], + [ + "names of documents", + "Files.document_name" + ], + [ + "names of documents", + "Records.document_name" + ], + [ + "templates with the code", + "templates.template_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "documents.document_name" + ], + [ + 0, + "Files.document_name" + ], + [ + 0, + "Records.document_name" + ], + [ + 1, + "templates.template_type_code" + ] + ], + "linking_list_col": [ + [ + "documents.document_id", + "files.document_id" + ], + [ + "documents.document_id", + "records.document_id" + ], + [ + "files.document_id", + "records.document_id" + ], + [ + "documents.template_id", + "files.template_id" + ], + [ + "documents.template_id", + "records.template_id" + ], + [ + "files.template_id", + "records.template_id" + ], + [ + "documents.document_name", + "files.document_name" + ], + [ + "documents.document_name", + "records.document_name" + ], + [ + "files.document_name", + "records.document_name" + ], + [ + "documents.document_description", + "files.document_description" + ], + [ + "documents.document_description", + "records.document_description" + ], + [ + "files.document_description", + "records.document_description" + ], + [ + "documents.other_details", + "files.other_details" + ], + [ + "documents.other_details", + "records.other_details" + ], + [ + "files.other_details", + "records.other_details" + ] + ] + }, + { + "question": "what is the #template type descriptions for template type code# \"ad\".", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Template_Types_Reference": [ + "template_type_code", + "template_type_description" + ], + "Type_Templates": [ + "template_type_code", + "template_type_description" + ] + }, + "linking_list": [ + [ + "template type descriptions for template type code", + "ref_template_types.template_type_description" + ], + [ + "template type descriptions for template type code", + "Template_Types_Reference.template_type_description" + ], + [ + "template type descriptions for template type code", + "Type_Templates.template_type_description" + ] + ], + "linking_list_idx": [ + [ + 0, + "ref_template_types.template_type_description" + ], + [ + 0, + "Template_Types_Reference.template_type_description" + ], + [ + 0, + "Type_Templates.template_type_description" + ] + ], + "linking_list_col": [ + [ + "ref_template_types.template_type_code", + "template_types_reference.template_type_code" + ], + [ + "ref_template_types.template_type_code", + "type_templates.template_type_code" + ], + [ + "template_types_reference.template_type_code", + "type_templates.template_type_code" + ], + [ + "ref_template_types.template_type_description", + "template_types_reference.template_type_description" + ], + [ + "ref_template_types.template_type_description", + "type_templates.template_type_description" + ], + [ + "template_types_reference.template_type_description", + "type_templates.template_type_description" + ] + ] + }, + { + "question": "return the template type description of the #template type with the code# ad.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Template_Types_Reference": [ + "template_type_code", + "template_type_description" + ], + "Type_Templates": [ + "template_type_code", + "template_type_description" + ] + }, + "linking_list": [ + [ + "template type with the code", + "ref_template_types.template_type_code" + ], + [ + "template type with the code", + "Template_Types_Reference.template_type_code" + ], + [ + "template type with the code", + "Type_Templates.template_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "ref_template_types.template_type_code" + ], + [ + 0, + "Template_Types_Reference.template_type_code" + ], + [ + 0, + "Type_Templates.template_type_code" + ] + ], + "linking_list_col": [ + [ + "ref_template_types.template_type_code", + "template_types_reference.template_type_code" + ], + [ + "ref_template_types.template_type_code", + "type_templates.template_type_code" + ], + [ + "template_types_reference.template_type_code", + "type_templates.template_type_code" + ], + [ + "ref_template_types.template_type_description", + "template_types_reference.template_type_description" + ], + [ + "ref_template_types.template_type_description", + "type_templates.template_type_description" + ], + [ + "template_types_reference.template_type_description", + "type_templates.template_type_description" + ] + ] + }, + { + "question": "what is the #template type code for template type description# \"book\".", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Template_Types_Reference": [ + "template_type_code", + "template_type_description" + ], + "Type_Templates": [ + "template_type_code", + "template_type_description" + ] + }, + "linking_list": [ + [ + "template type code for template type description", + "ref_template_types.template_type_code" + ], + [ + "template type code for template type description", + "Template_Types_Reference.template_type_code" + ], + [ + "template type code for template type description", + "Type_Templates.template_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "ref_template_types.template_type_code" + ], + [ + 0, + "Template_Types_Reference.template_type_code" + ], + [ + 0, + "Type_Templates.template_type_code" + ] + ], + "linking_list_col": [ + [ + "ref_template_types.template_type_code", + "template_types_reference.template_type_code" + ], + [ + "ref_template_types.template_type_code", + "type_templates.template_type_code" + ], + [ + "template_types_reference.template_type_code", + "type_templates.template_type_code" + ], + [ + "ref_template_types.template_type_description", + "template_types_reference.template_type_description" + ], + [ + "ref_template_types.template_type_description", + "type_templates.template_type_description" + ], + [ + "template_types_reference.template_type_description", + "type_templates.template_type_description" + ] + ] + }, + { + "question": "return the #type code of the template type with the description# \"book\".", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Template_Types_Reference": [ + "template_type_code", + "template_type_description" + ], + "Type_Templates": [ + "template_type_code", + "template_type_description" + ] + }, + "linking_list": [ + [ + "type code of the template type with the description", + "ref_template_types.template_type_code" + ], + [ + "type code of the template type with the description", + "Template_Types_Reference.template_type_code" + ], + [ + "type code of the template type with the description", + "Type_Templates.template_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "ref_template_types.template_type_code" + ], + [ + 0, + "Template_Types_Reference.template_type_code" + ], + [ + 0, + "Type_Templates.template_type_code" + ] + ], + "linking_list_col": [ + [ + "ref_template_types.template_type_code", + "template_types_reference.template_type_code" + ], + [ + "ref_template_types.template_type_code", + "type_templates.template_type_code" + ], + [ + "template_types_reference.template_type_code", + "type_templates.template_type_code" + ], + [ + "ref_template_types.template_type_description", + "template_types_reference.template_type_description" + ], + [ + "ref_template_types.template_type_description", + "type_templates.template_type_description" + ], + [ + "template_types_reference.template_type_description", + "type_templates.template_type_description" + ] + ] + }, + { + "question": "what are the #template ids with template type description# \"presentation\".", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Forms": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "Drafts": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ] + }, + "linking_list": [ + [ + "template ids with template type description", + "templates.template_id" + ], + [ + "template ids with template type description", + "Forms.template_id" + ], + [ + "template ids with template type description", + "Drafts.template_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.template_id" + ], + [ + 0, + "Forms.template_id" + ], + [ + 0, + "Drafts.template_id" + ] + ], + "linking_list_col": [ + [ + "templates.template_id", + "forms.template_id" + ], + [ + "templates.template_id", + "drafts.template_id" + ], + [ + "forms.template_id", + "drafts.template_id" + ], + [ + "templates.version_number", + "forms.version_number" + ], + [ + "templates.version_number", + "drafts.version_number" + ], + [ + "forms.version_number", + "drafts.version_number" + ], + [ + "templates.template_type_code", + "forms.template_type_code" + ], + [ + "templates.template_type_code", + "drafts.template_type_code" + ], + [ + "forms.template_type_code", + "drafts.template_type_code" + ], + [ + "templates.date_effective_from", + "forms.date_effective_from" + ], + [ + "templates.date_effective_from", + "drafts.date_effective_from" + ], + [ + "forms.date_effective_from", + "drafts.date_effective_from" + ], + [ + "templates.date_effective_to", + "forms.date_effective_to" + ], + [ + "templates.date_effective_to", + "drafts.date_effective_to" + ], + [ + "forms.date_effective_to", + "drafts.date_effective_to" + ], + [ + "templates.template_details", + "forms.template_details" + ], + [ + "templates.template_details", + "drafts.template_details" + ], + [ + "forms.template_details", + "drafts.template_details" + ] + ] + }, + { + "question": "return the #ids# corresponding to #templates with the description# 'presentation'.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Forms": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "Drafts": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ] + }, + "linking_list": [ + [ + "ids", + "templates.template_id" + ], + [ + "ids", + "Forms.template_id" + ], + [ + "ids", + "Drafts.template_id" + ], + [ + "templates with the description", + "ref_template_types.template_type_description" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.template_id" + ], + [ + 0, + "Forms.template_id" + ], + [ + 0, + "Drafts.template_id" + ], + [ + 1, + "ref_template_types.template_type_description" + ] + ], + "linking_list_col": [ + [ + "templates.template_id", + "forms.template_id" + ], + [ + "templates.template_id", + "drafts.template_id" + ], + [ + "forms.template_id", + "drafts.template_id" + ], + [ + "templates.version_number", + "forms.version_number" + ], + [ + "templates.version_number", + "drafts.version_number" + ], + [ + "forms.version_number", + "drafts.version_number" + ], + [ + "templates.template_type_code", + "forms.template_type_code" + ], + [ + "templates.template_type_code", + "drafts.template_type_code" + ], + [ + "forms.template_type_code", + "drafts.template_type_code" + ], + [ + "templates.date_effective_from", + "forms.date_effective_from" + ], + [ + "templates.date_effective_from", + "drafts.date_effective_from" + ], + [ + "forms.date_effective_from", + "drafts.date_effective_from" + ], + [ + "templates.date_effective_to", + "forms.date_effective_to" + ], + [ + "templates.date_effective_to", + "drafts.date_effective_to" + ], + [ + "forms.date_effective_to", + "drafts.date_effective_to" + ], + [ + "templates.template_details", + "forms.template_details" + ], + [ + "templates.template_details", + "drafts.template_details" + ], + [ + "forms.template_details", + "drafts.template_details" + ] + ] + }, + { + "question": "show all #paragraph ids# and texts for the document with name 'welcome to ny'.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Sections": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Passages": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "paragraph ids", + "paragraphs.paragraph_id" + ], + [ + "paragraph ids", + "Sections.paragraph_id" + ], + [ + "paragraph ids", + "Passages.paragraph_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "paragraphs.paragraph_id" + ], + [ + 0, + "Sections.paragraph_id" + ], + [ + 0, + "Passages.paragraph_id" + ] + ], + "linking_list_col": [ + [ + "paragraphs.paragraph_id", + "sections.paragraph_id" + ], + [ + "paragraphs.paragraph_id", + "passages.paragraph_id" + ], + [ + "sections.paragraph_id", + "passages.paragraph_id" + ], + [ + "paragraphs.document_id", + "sections.document_id" + ], + [ + "paragraphs.document_id", + "passages.document_id" + ], + [ + "sections.document_id", + "passages.document_id" + ], + [ + "paragraphs.paragraph_text", + "sections.paragraph_text" + ], + [ + "paragraphs.paragraph_text", + "passages.paragraph_text" + ], + [ + "sections.paragraph_text", + "passages.paragraph_text" + ], + [ + "paragraphs.other_details", + "sections.other_details" + ], + [ + "paragraphs.other_details", + "passages.other_details" + ], + [ + "sections.other_details", + "passages.other_details" + ] + ] + }, + { + "question": "what are the #ids# and #texts of paragraphs in the document titled# 'welcome to ny'?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Sections": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Passages": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "ids", + "paragraphs.paragraph_id" + ], + [ + "ids", + "Sections.paragraph_id" + ], + [ + "ids", + "Passages.paragraph_id" + ], + [ + "texts of paragraphs in the document titled", + "paragraphs.paragraph_text" + ], + [ + "texts of paragraphs in the document titled", + "Sections.paragraph_text" + ], + [ + "texts of paragraphs in the document titled", + "Passages.paragraph_text" + ] + ], + "linking_list_idx": [ + [ + 0, + "paragraphs.paragraph_id" + ], + [ + 0, + "Sections.paragraph_id" + ], + [ + 0, + "Passages.paragraph_id" + ], + [ + 1, + "paragraphs.paragraph_text" + ], + [ + 1, + "Sections.paragraph_text" + ], + [ + 1, + "Passages.paragraph_text" + ] + ], + "linking_list_col": [ + [ + "paragraphs.paragraph_id", + "sections.paragraph_id" + ], + [ + "paragraphs.paragraph_id", + "passages.paragraph_id" + ], + [ + "sections.paragraph_id", + "passages.paragraph_id" + ], + [ + "paragraphs.document_id", + "sections.document_id" + ], + [ + "paragraphs.document_id", + "passages.document_id" + ], + [ + "sections.document_id", + "passages.document_id" + ], + [ + "paragraphs.paragraph_text", + "sections.paragraph_text" + ], + [ + "paragraphs.paragraph_text", + "passages.paragraph_text" + ], + [ + "sections.paragraph_text", + "passages.paragraph_text" + ], + [ + "paragraphs.other_details", + "sections.other_details" + ], + [ + "paragraphs.other_details", + "passages.other_details" + ], + [ + "sections.other_details", + "passages.other_details" + ] + ] + }, + { + "question": "show all #paragraph texts for the document# \"customer reviews\".", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Sections": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Passages": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "paragraph texts for the document", + "paragraphs.paragraph_text" + ], + [ + "paragraph texts for the document", + "Sections.paragraph_text" + ], + [ + "paragraph texts for the document", + "Passages.paragraph_text" + ] + ], + "linking_list_idx": [ + [ + 0, + "paragraphs.paragraph_text" + ], + [ + 0, + "Sections.paragraph_text" + ], + [ + 0, + "Passages.paragraph_text" + ] + ], + "linking_list_col": [ + [ + "paragraphs.paragraph_id", + "sections.paragraph_id" + ], + [ + "paragraphs.paragraph_id", + "passages.paragraph_id" + ], + [ + "sections.paragraph_id", + "passages.paragraph_id" + ], + [ + "paragraphs.document_id", + "sections.document_id" + ], + [ + "paragraphs.document_id", + "passages.document_id" + ], + [ + "sections.document_id", + "passages.document_id" + ], + [ + "paragraphs.paragraph_text", + "sections.paragraph_text" + ], + [ + "paragraphs.paragraph_text", + "passages.paragraph_text" + ], + [ + "sections.paragraph_text", + "passages.paragraph_text" + ], + [ + "paragraphs.other_details", + "sections.other_details" + ], + [ + "paragraphs.other_details", + "passages.other_details" + ], + [ + "sections.other_details", + "passages.other_details" + ] + ] + }, + { + "question": "what are the #paragraph texts# for the document with the name 'customer reviews'?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Sections": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Passages": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "paragraph texts", + "paragraphs.paragraph_text" + ], + [ + "paragraph texts", + "Sections.paragraph_text" + ], + [ + "paragraph texts", + "Passages.paragraph_text" + ] + ], + "linking_list_idx": [ + [ + 0, + "paragraphs.paragraph_text" + ], + [ + 0, + "Sections.paragraph_text" + ], + [ + 0, + "Passages.paragraph_text" + ] + ], + "linking_list_col": [ + [ + "paragraphs.paragraph_id", + "sections.paragraph_id" + ], + [ + "paragraphs.paragraph_id", + "passages.paragraph_id" + ], + [ + "sections.paragraph_id", + "passages.paragraph_id" + ], + [ + "paragraphs.document_id", + "sections.document_id" + ], + [ + "paragraphs.document_id", + "passages.document_id" + ], + [ + "sections.document_id", + "passages.document_id" + ], + [ + "paragraphs.paragraph_text", + "sections.paragraph_text" + ], + [ + "paragraphs.paragraph_text", + "passages.paragraph_text" + ], + [ + "sections.paragraph_text", + "passages.paragraph_text" + ], + [ + "paragraphs.other_details", + "sections.other_details" + ], + [ + "paragraphs.other_details", + "passages.other_details" + ], + [ + "sections.other_details", + "passages.other_details" + ] + ] + }, + { + "question": "show all #document ids# and the #number of paragraphs# in each document. order by document id.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Sections": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Passages": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "document ids", + "paragraphs.document_id" + ], + [ + "document ids", + "Sections.document_id" + ], + [ + "document ids", + "Passages.document_id" + ], + [ + "number of paragraphs", + "paragraphs.paragraph_id" + ], + [ + "number of paragraphs", + "Sections.paragraph_id" + ], + [ + "number of paragraphs", + "Passages.paragraph_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "paragraphs.document_id" + ], + [ + 0, + "Sections.document_id" + ], + [ + 0, + "Passages.document_id" + ], + [ + 1, + "paragraphs.paragraph_id" + ], + [ + 1, + "Sections.paragraph_id" + ], + [ + 1, + "Passages.paragraph_id" + ] + ], + "linking_list_col": [ + [ + "paragraphs.paragraph_id", + "sections.paragraph_id" + ], + [ + "paragraphs.paragraph_id", + "passages.paragraph_id" + ], + [ + "sections.paragraph_id", + "passages.paragraph_id" + ], + [ + "paragraphs.document_id", + "sections.document_id" + ], + [ + "paragraphs.document_id", + "passages.document_id" + ], + [ + "sections.document_id", + "passages.document_id" + ], + [ + "paragraphs.paragraph_text", + "sections.paragraph_text" + ], + [ + "paragraphs.paragraph_text", + "passages.paragraph_text" + ], + [ + "sections.paragraph_text", + "passages.paragraph_text" + ], + [ + "paragraphs.other_details", + "sections.other_details" + ], + [ + "paragraphs.other_details", + "passages.other_details" + ], + [ + "sections.other_details", + "passages.other_details" + ] + ] + }, + { + "question": "return the different #document ids# along with the #number of paragraphs# corresponding to each, ordered by id.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Sections": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Passages": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "document ids", + "paragraphs.document_id" + ], + [ + "document ids", + "Sections.document_id" + ], + [ + "document ids", + "Passages.document_id" + ], + [ + "number of paragraphs", + "paragraphs.paragraph_id" + ], + [ + "number of paragraphs", + "Sections.paragraph_id" + ], + [ + "number of paragraphs", + "Passages.paragraph_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "paragraphs.document_id" + ], + [ + 0, + "Sections.document_id" + ], + [ + 0, + "Passages.document_id" + ], + [ + 1, + "paragraphs.paragraph_id" + ], + [ + 1, + "Sections.paragraph_id" + ], + [ + 1, + "Passages.paragraph_id" + ] + ], + "linking_list_col": [ + [ + "paragraphs.paragraph_id", + "sections.paragraph_id" + ], + [ + "paragraphs.paragraph_id", + "passages.paragraph_id" + ], + [ + "sections.paragraph_id", + "passages.paragraph_id" + ], + [ + "paragraphs.document_id", + "sections.document_id" + ], + [ + "paragraphs.document_id", + "passages.document_id" + ], + [ + "sections.document_id", + "passages.document_id" + ], + [ + "paragraphs.paragraph_text", + "sections.paragraph_text" + ], + [ + "paragraphs.paragraph_text", + "passages.paragraph_text" + ], + [ + "sections.paragraph_text", + "passages.paragraph_text" + ], + [ + "paragraphs.other_details", + "sections.other_details" + ], + [ + "paragraphs.other_details", + "passages.other_details" + ], + [ + "sections.other_details", + "passages.other_details" + ] + ] + }, + { + "question": "show all document ids, names and the #number of paragraphs in each document# .", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Sections": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Passages": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "number of paragraphs in each document", + "paragraphs.document_id" + ], + [ + "number of paragraphs in each document", + "Sections.document_id" + ], + [ + "number of paragraphs in each document", + "Passages.document_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "paragraphs.document_id" + ], + [ + 0, + "Sections.document_id" + ], + [ + 0, + "Passages.document_id" + ] + ], + "linking_list_col": [ + [ + "paragraphs.paragraph_id", + "sections.paragraph_id" + ], + [ + "paragraphs.paragraph_id", + "passages.paragraph_id" + ], + [ + "sections.paragraph_id", + "passages.paragraph_id" + ], + [ + "paragraphs.document_id", + "sections.document_id" + ], + [ + "paragraphs.document_id", + "passages.document_id" + ], + [ + "sections.document_id", + "passages.document_id" + ], + [ + "paragraphs.paragraph_text", + "sections.paragraph_text" + ], + [ + "paragraphs.paragraph_text", + "passages.paragraph_text" + ], + [ + "sections.paragraph_text", + "passages.paragraph_text" + ], + [ + "paragraphs.other_details", + "sections.other_details" + ], + [ + "paragraphs.other_details", + "passages.other_details" + ], + [ + "sections.other_details", + "passages.other_details" + ] + ] + }, + { + "question": "what are the #ids# and #names of each document# , as well as the #number of paragraphs# in each?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Sections": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Passages": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "ids", + "documents.document_id" + ], + [ + "names of each document", + "documents.document_name" + ], + [ + "number of paragraphs", + "paragraphs.paragraph_id" + ], + [ + "number of paragraphs", + "Sections.paragraph_id" + ], + [ + "number of paragraphs", + "Passages.paragraph_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "documents.document_id" + ], + [ + 1, + "documents.document_name" + ], + [ + 2, + "paragraphs.paragraph_id" + ], + [ + 2, + "Sections.paragraph_id" + ], + [ + 2, + "Passages.paragraph_id" + ] + ], + "linking_list_col": [ + [ + "paragraphs.paragraph_id", + "sections.paragraph_id" + ], + [ + "paragraphs.paragraph_id", + "passages.paragraph_id" + ], + [ + "sections.paragraph_id", + "passages.paragraph_id" + ], + [ + "paragraphs.document_id", + "sections.document_id" + ], + [ + "paragraphs.document_id", + "passages.document_id" + ], + [ + "sections.document_id", + "passages.document_id" + ], + [ + "paragraphs.paragraph_text", + "sections.paragraph_text" + ], + [ + "paragraphs.paragraph_text", + "passages.paragraph_text" + ], + [ + "sections.paragraph_text", + "passages.paragraph_text" + ], + [ + "paragraphs.other_details", + "sections.other_details" + ], + [ + "paragraphs.other_details", + "passages.other_details" + ], + [ + "sections.other_details", + "passages.other_details" + ] + ] + }, + { + "question": "list all #document ids# with at least two paragraphs.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Sections": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Passages": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "document ids", + "paragraphs.document_id" + ], + [ + "document ids", + "Sections.document_id" + ], + [ + "document ids", + "Passages.document_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "paragraphs.document_id" + ], + [ + 0, + "Sections.document_id" + ], + [ + 0, + "Passages.document_id" + ] + ], + "linking_list_col": [ + [ + "paragraphs.paragraph_id", + "sections.paragraph_id" + ], + [ + "paragraphs.paragraph_id", + "passages.paragraph_id" + ], + [ + "sections.paragraph_id", + "passages.paragraph_id" + ], + [ + "paragraphs.document_id", + "sections.document_id" + ], + [ + "paragraphs.document_id", + "passages.document_id" + ], + [ + "sections.document_id", + "passages.document_id" + ], + [ + "paragraphs.paragraph_text", + "sections.paragraph_text" + ], + [ + "paragraphs.paragraph_text", + "passages.paragraph_text" + ], + [ + "sections.paragraph_text", + "passages.paragraph_text" + ], + [ + "paragraphs.other_details", + "sections.other_details" + ], + [ + "paragraphs.other_details", + "passages.other_details" + ], + [ + "sections.other_details", + "passages.other_details" + ] + ] + }, + { + "question": "what is the #document id# and name with greatest number of paragraphs?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Sections": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Passages": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "document id", + "paragraphs.document_id" + ], + [ + "document id", + "Sections.document_id" + ], + [ + "document id", + "Passages.document_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "paragraphs.document_id" + ], + [ + 0, + "Sections.document_id" + ], + [ + 0, + "Passages.document_id" + ] + ], + "linking_list_col": [ + [ + "paragraphs.paragraph_id", + "sections.paragraph_id" + ], + [ + "paragraphs.paragraph_id", + "passages.paragraph_id" + ], + [ + "sections.paragraph_id", + "passages.paragraph_id" + ], + [ + "paragraphs.document_id", + "sections.document_id" + ], + [ + "paragraphs.document_id", + "passages.document_id" + ], + [ + "sections.document_id", + "passages.document_id" + ], + [ + "paragraphs.paragraph_text", + "sections.paragraph_text" + ], + [ + "paragraphs.paragraph_text", + "passages.paragraph_text" + ], + [ + "sections.paragraph_text", + "passages.paragraph_text" + ], + [ + "paragraphs.other_details", + "sections.other_details" + ], + [ + "paragraphs.other_details", + "passages.other_details" + ], + [ + "sections.other_details", + "passages.other_details" + ] + ] + }, + { + "question": "what is the #document id# with least number of paragraphs?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Sections": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Passages": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "document id", + "paragraphs.document_id" + ], + [ + "document id", + "Sections.document_id" + ], + [ + "document id", + "Passages.document_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "paragraphs.document_id" + ], + [ + 0, + "Sections.document_id" + ], + [ + 0, + "Passages.document_id" + ] + ], + "linking_list_col": [ + [ + "paragraphs.paragraph_id", + "sections.paragraph_id" + ], + [ + "paragraphs.paragraph_id", + "passages.paragraph_id" + ], + [ + "sections.paragraph_id", + "passages.paragraph_id" + ], + [ + "paragraphs.document_id", + "sections.document_id" + ], + [ + "paragraphs.document_id", + "passages.document_id" + ], + [ + "sections.document_id", + "passages.document_id" + ], + [ + "paragraphs.paragraph_text", + "sections.paragraph_text" + ], + [ + "paragraphs.paragraph_text", + "passages.paragraph_text" + ], + [ + "sections.paragraph_text", + "passages.paragraph_text" + ], + [ + "paragraphs.other_details", + "sections.other_details" + ], + [ + "paragraphs.other_details", + "passages.other_details" + ], + [ + "sections.other_details", + "passages.other_details" + ] + ] + }, + { + "question": "what is the #document id# with 1 to 2 paragraphs?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Sections": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Passages": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "document id", + "paragraphs.document_id" + ], + [ + "document id", + "Sections.document_id" + ], + [ + "document id", + "Passages.document_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "paragraphs.document_id" + ], + [ + 0, + "Sections.document_id" + ], + [ + 0, + "Passages.document_id" + ] + ], + "linking_list_col": [ + [ + "paragraphs.paragraph_id", + "sections.paragraph_id" + ], + [ + "paragraphs.paragraph_id", + "passages.paragraph_id" + ], + [ + "sections.paragraph_id", + "passages.paragraph_id" + ], + [ + "paragraphs.document_id", + "sections.document_id" + ], + [ + "paragraphs.document_id", + "passages.document_id" + ], + [ + "sections.document_id", + "passages.document_id" + ], + [ + "paragraphs.paragraph_text", + "sections.paragraph_text" + ], + [ + "paragraphs.paragraph_text", + "passages.paragraph_text" + ], + [ + "sections.paragraph_text", + "passages.paragraph_text" + ], + [ + "paragraphs.other_details", + "sections.other_details" + ], + [ + "paragraphs.other_details", + "passages.other_details" + ], + [ + "sections.other_details", + "passages.other_details" + ] + ] + }, + { + "question": "give the #ids of documents# that have between one and two paragraphs.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Sections": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Passages": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "ids of documents", + "paragraphs.document_id" + ], + [ + "ids of documents", + "Sections.document_id" + ], + [ + "ids of documents", + "Passages.document_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "paragraphs.document_id" + ], + [ + 0, + "Sections.document_id" + ], + [ + 0, + "Passages.document_id" + ] + ], + "linking_list_col": [ + [ + "paragraphs.paragraph_id", + "sections.paragraph_id" + ], + [ + "paragraphs.paragraph_id", + "passages.paragraph_id" + ], + [ + "sections.paragraph_id", + "passages.paragraph_id" + ], + [ + "paragraphs.document_id", + "sections.document_id" + ], + [ + "paragraphs.document_id", + "passages.document_id" + ], + [ + "sections.document_id", + "passages.document_id" + ], + [ + "paragraphs.paragraph_text", + "sections.paragraph_text" + ], + [ + "paragraphs.paragraph_text", + "passages.paragraph_text" + ], + [ + "sections.paragraph_text", + "passages.paragraph_text" + ], + [ + "paragraphs.other_details", + "sections.other_details" + ], + [ + "paragraphs.other_details", + "passages.other_details" + ], + [ + "sections.other_details", + "passages.other_details" + ] + ] + }, + { + "question": "show the #document id with paragraph text# 'brazil' and 'ireland'.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Sections": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Passages": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "document id with paragraph text", + "paragraphs.document_id" + ], + [ + "document id with paragraph text", + "Sections.document_id" + ], + [ + "document id with paragraph text", + "Passages.document_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "paragraphs.document_id" + ], + [ + 0, + "Sections.document_id" + ], + [ + 0, + "Passages.document_id" + ] + ], + "linking_list_col": [ + [ + "paragraphs.paragraph_id", + "sections.paragraph_id" + ], + [ + "paragraphs.paragraph_id", + "passages.paragraph_id" + ], + [ + "sections.paragraph_id", + "passages.paragraph_id" + ], + [ + "paragraphs.document_id", + "sections.document_id" + ], + [ + "paragraphs.document_id", + "passages.document_id" + ], + [ + "sections.document_id", + "passages.document_id" + ], + [ + "paragraphs.paragraph_text", + "sections.paragraph_text" + ], + [ + "paragraphs.paragraph_text", + "passages.paragraph_text" + ], + [ + "sections.paragraph_text", + "passages.paragraph_text" + ], + [ + "paragraphs.other_details", + "sections.other_details" + ], + [ + "paragraphs.other_details", + "passages.other_details" + ], + [ + "sections.other_details", + "passages.other_details" + ] + ] + }, + { + "question": "what are the #ids of documents# that contain the #paragraph text# 'brazil' and 'ireland'?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Sections": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Passages": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "ids of documents", + "documents.document_id" + ], + [ + "paragraph text", + "paragraphs.paragraph_text" + ], + [ + "paragraph text", + "Sections.paragraph_text" + ], + [ + "paragraph text", + "Passages.paragraph_text" + ] + ], + "linking_list_idx": [ + [ + 0, + "documents.document_id" + ], + [ + 1, + "paragraphs.paragraph_text" + ], + [ + 1, + "Sections.paragraph_text" + ], + [ + 1, + "Passages.paragraph_text" + ] + ], + "linking_list_col": [ + [ + "paragraphs.paragraph_id", + "sections.paragraph_id" + ], + [ + "paragraphs.paragraph_id", + "passages.paragraph_id" + ], + [ + "sections.paragraph_id", + "passages.paragraph_id" + ], + [ + "paragraphs.document_id", + "sections.document_id" + ], + [ + "paragraphs.document_id", + "passages.document_id" + ], + [ + "sections.document_id", + "passages.document_id" + ], + [ + "paragraphs.paragraph_text", + "sections.paragraph_text" + ], + [ + "paragraphs.paragraph_text", + "passages.paragraph_text" + ], + [ + "sections.paragraph_text", + "passages.paragraph_text" + ], + [ + "paragraphs.other_details", + "sections.other_details" + ], + [ + "paragraphs.other_details", + "passages.other_details" + ], + [ + "sections.other_details", + "passages.other_details" + ] + ] + }, + { + "question": "list the #names of teachers# in ascending order of #age# .", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "instructor": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "professor": [ + "teacher_id", + "name", + "age", + "hometown" + ] + }, + "linking_list": [ + [ + "names of teachers", + "teacher.name" + ], + [ + "names of teachers", + "instructor.name" + ], + [ + "names of teachers", + "professor.name" + ], + [ + "age", + "teacher.age" + ], + [ + "age", + "instructor.age" + ], + [ + "age", + "professor.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "teacher.name" + ], + [ + 0, + "instructor.name" + ], + [ + 0, + "professor.name" + ], + [ + 1, + "teacher.age" + ], + [ + 1, + "instructor.age" + ], + [ + 1, + "professor.age" + ] + ], + "linking_list_col": [ + [ + "teacher.teacher_id", + "instructor.teacher_id" + ], + [ + "teacher.teacher_id", + "professor.teacher_id" + ], + [ + "instructor.teacher_id", + "professor.teacher_id" + ], + [ + "teacher.name", + "instructor.name" + ], + [ + "teacher.name", + "professor.name" + ], + [ + "instructor.name", + "professor.name" + ], + [ + "teacher.age", + "instructor.age" + ], + [ + "teacher.age", + "professor.age" + ], + [ + "instructor.age", + "professor.age" + ], + [ + "teacher.hometown", + "instructor.hometown" + ], + [ + "teacher.hometown", + "professor.hometown" + ], + [ + "instructor.hometown", + "professor.hometown" + ] + ] + }, + { + "question": "what are the #names of the teachers# ordered by ascending age?", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "instructor": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "professor": [ + "teacher_id", + "name", + "age", + "hometown" + ] + }, + "linking_list": [ + [ + "names of the teachers", + "teacher.name" + ], + [ + "names of the teachers", + "instructor.name" + ], + [ + "names of the teachers", + "professor.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "teacher.name" + ], + [ + 0, + "instructor.name" + ], + [ + 0, + "professor.name" + ] + ], + "linking_list_col": [ + [ + "teacher.teacher_id", + "instructor.teacher_id" + ], + [ + "teacher.teacher_id", + "professor.teacher_id" + ], + [ + "instructor.teacher_id", + "professor.teacher_id" + ], + [ + "teacher.name", + "instructor.name" + ], + [ + "teacher.name", + "professor.name" + ], + [ + "instructor.name", + "professor.name" + ], + [ + "teacher.age", + "instructor.age" + ], + [ + "teacher.age", + "professor.age" + ], + [ + "instructor.age", + "professor.age" + ], + [ + "teacher.hometown", + "instructor.hometown" + ], + [ + "teacher.hometown", + "professor.hometown" + ], + [ + "instructor.hometown", + "professor.hometown" + ] + ] + }, + { + "question": "what are the #names of the teachers# who are #aged# either 32 or 33?", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "instructor": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "professor": [ + "teacher_id", + "name", + "age", + "hometown" + ] + }, + "linking_list": [ + [ + "names of the teachers", + "teacher.name" + ], + [ + "names of the teachers", + "instructor.name" + ], + [ + "names of the teachers", + "professor.name" + ], + [ + "aged", + "teacher.age" + ], + [ + "aged", + "instructor.age" + ], + [ + "aged", + "professor.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "teacher.name" + ], + [ + 0, + "instructor.name" + ], + [ + 0, + "professor.name" + ], + [ + 1, + "teacher.age" + ], + [ + 1, + "instructor.age" + ], + [ + 1, + "professor.age" + ] + ], + "linking_list_col": [ + [ + "teacher.teacher_id", + "instructor.teacher_id" + ], + [ + "teacher.teacher_id", + "professor.teacher_id" + ], + [ + "instructor.teacher_id", + "professor.teacher_id" + ], + [ + "teacher.name", + "instructor.name" + ], + [ + "teacher.name", + "professor.name" + ], + [ + "instructor.name", + "professor.name" + ], + [ + "teacher.age", + "instructor.age" + ], + [ + "teacher.age", + "professor.age" + ], + [ + "instructor.age", + "professor.age" + ], + [ + "teacher.hometown", + "instructor.hometown" + ], + [ + "teacher.hometown", + "professor.hometown" + ], + [ + "instructor.hometown", + "professor.hometown" + ] + ] + }, + { + "question": "where is the #youngest teacher# from?", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "instructor": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "professor": [ + "teacher_id", + "name", + "age", + "hometown" + ] + }, + "linking_list": [ + [ + "youngest teacher", + "teacher.age" + ], + [ + "youngest teacher", + "instructor.age" + ], + [ + "youngest teacher", + "professor.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "teacher.age" + ], + [ + 0, + "instructor.age" + ], + [ + 0, + "professor.age" + ] + ], + "linking_list_col": [ + [ + "teacher.teacher_id", + "instructor.teacher_id" + ], + [ + "teacher.teacher_id", + "professor.teacher_id" + ], + [ + "instructor.teacher_id", + "professor.teacher_id" + ], + [ + "teacher.name", + "instructor.name" + ], + [ + "teacher.name", + "professor.name" + ], + [ + "instructor.name", + "professor.name" + ], + [ + "teacher.age", + "instructor.age" + ], + [ + "teacher.age", + "professor.age" + ], + [ + "instructor.age", + "professor.age" + ], + [ + "teacher.hometown", + "instructor.hometown" + ], + [ + "teacher.hometown", + "professor.hometown" + ], + [ + "instructor.hometown", + "professor.hometown" + ] + ] + }, + { + "question": "show different #hometown of teachers# and the number of teachers from each #hometown# .", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "instructor": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "professor": [ + "teacher_id", + "name", + "age", + "hometown" + ] + }, + "linking_list": [ + [ + "hometown of teachers", + "teacher.hometown" + ], + [ + "hometown of teachers", + "instructor.hometown" + ], + [ + "hometown of teachers", + "professor.hometown" + ], + [ + "hometown", + "teacher.hometown" + ], + [ + "hometown", + "instructor.hometown" + ], + [ + "hometown", + "professor.hometown" + ] + ], + "linking_list_idx": [ + [ + 0, + "teacher.hometown" + ], + [ + 0, + "instructor.hometown" + ], + [ + 0, + "professor.hometown" + ], + [ + 1, + "teacher.hometown" + ], + [ + 1, + "instructor.hometown" + ], + [ + 1, + "professor.hometown" + ] + ], + "linking_list_col": [ + [ + "teacher.teacher_id", + "instructor.teacher_id" + ], + [ + "teacher.teacher_id", + "professor.teacher_id" + ], + [ + "instructor.teacher_id", + "professor.teacher_id" + ], + [ + "teacher.name", + "instructor.name" + ], + [ + "teacher.name", + "professor.name" + ], + [ + "instructor.name", + "professor.name" + ], + [ + "teacher.age", + "instructor.age" + ], + [ + "teacher.age", + "professor.age" + ], + [ + "instructor.age", + "professor.age" + ], + [ + "teacher.hometown", + "instructor.hometown" + ], + [ + "teacher.hometown", + "professor.hometown" + ], + [ + "instructor.hometown", + "professor.hometown" + ] + ] + }, + { + "question": "for each #hometown# , how many teachers are there?", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "instructor": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "professor": [ + "teacher_id", + "name", + "age", + "hometown" + ] + }, + "linking_list": [ + [ + "hometown", + "teacher.hometown" + ], + [ + "hometown", + "instructor.hometown" + ], + [ + "hometown", + "professor.hometown" + ] + ], + "linking_list_idx": [ + [ + 0, + "teacher.hometown" + ], + [ + 0, + "instructor.hometown" + ], + [ + 0, + "professor.hometown" + ] + ], + "linking_list_col": [ + [ + "teacher.teacher_id", + "instructor.teacher_id" + ], + [ + "teacher.teacher_id", + "professor.teacher_id" + ], + [ + "instructor.teacher_id", + "professor.teacher_id" + ], + [ + "teacher.name", + "instructor.name" + ], + [ + "teacher.name", + "professor.name" + ], + [ + "instructor.name", + "professor.name" + ], + [ + "teacher.age", + "instructor.age" + ], + [ + "teacher.age", + "professor.age" + ], + [ + "instructor.age", + "professor.age" + ], + [ + "teacher.hometown", + "instructor.hometown" + ], + [ + "teacher.hometown", + "professor.hometown" + ], + [ + "instructor.hometown", + "professor.hometown" + ] + ] + }, + { + "question": "list the most common #hometown of teachers# .", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "instructor": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "professor": [ + "teacher_id", + "name", + "age", + "hometown" + ] + }, + "linking_list": [ + [ + "hometown of teachers", + "teacher.hometown" + ], + [ + "hometown of teachers", + "instructor.hometown" + ], + [ + "hometown of teachers", + "professor.hometown" + ] + ], + "linking_list_idx": [ + [ + 0, + "teacher.hometown" + ], + [ + 0, + "instructor.hometown" + ], + [ + 0, + "professor.hometown" + ] + ], + "linking_list_col": [ + [ + "teacher.teacher_id", + "instructor.teacher_id" + ], + [ + "teacher.teacher_id", + "professor.teacher_id" + ], + [ + "instructor.teacher_id", + "professor.teacher_id" + ], + [ + "teacher.name", + "instructor.name" + ], + [ + "teacher.name", + "professor.name" + ], + [ + "instructor.name", + "professor.name" + ], + [ + "teacher.age", + "instructor.age" + ], + [ + "teacher.age", + "professor.age" + ], + [ + "instructor.age", + "professor.age" + ], + [ + "teacher.hometown", + "instructor.hometown" + ], + [ + "teacher.hometown", + "professor.hometown" + ], + [ + "instructor.hometown", + "professor.hometown" + ] + ] + }, + { + "question": "show the #hometowns# shared by at least two teachers.", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "instructor": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "professor": [ + "teacher_id", + "name", + "age", + "hometown" + ] + }, + "linking_list": [ + [ + "hometowns", + "teacher.hometown" + ], + [ + "hometowns", + "instructor.hometown" + ], + [ + "hometowns", + "professor.hometown" + ] + ], + "linking_list_idx": [ + [ + 0, + "teacher.hometown" + ], + [ + 0, + "instructor.hometown" + ], + [ + 0, + "professor.hometown" + ] + ], + "linking_list_col": [ + [ + "teacher.teacher_id", + "instructor.teacher_id" + ], + [ + "teacher.teacher_id", + "professor.teacher_id" + ], + [ + "instructor.teacher_id", + "professor.teacher_id" + ], + [ + "teacher.name", + "instructor.name" + ], + [ + "teacher.name", + "professor.name" + ], + [ + "instructor.name", + "professor.name" + ], + [ + "teacher.age", + "instructor.age" + ], + [ + "teacher.age", + "professor.age" + ], + [ + "instructor.age", + "professor.age" + ], + [ + "teacher.hometown", + "instructor.hometown" + ], + [ + "teacher.hometown", + "professor.hometown" + ], + [ + "instructor.hometown", + "professor.hometown" + ] + ] + }, + { + "question": "what are the #towns# from which at least two teachers come from?", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "instructor": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "professor": [ + "teacher_id", + "name", + "age", + "hometown" + ] + }, + "linking_list": [ + [ + "towns", + "teacher.hometown" + ], + [ + "towns", + "instructor.hometown" + ], + [ + "towns", + "professor.hometown" + ] + ], + "linking_list_idx": [ + [ + 0, + "teacher.hometown" + ], + [ + 0, + "instructor.hometown" + ], + [ + 0, + "professor.hometown" + ] + ], + "linking_list_col": [ + [ + "teacher.teacher_id", + "instructor.teacher_id" + ], + [ + "teacher.teacher_id", + "professor.teacher_id" + ], + [ + "instructor.teacher_id", + "professor.teacher_id" + ], + [ + "teacher.name", + "instructor.name" + ], + [ + "teacher.name", + "professor.name" + ], + [ + "instructor.name", + "professor.name" + ], + [ + "teacher.age", + "instructor.age" + ], + [ + "teacher.age", + "professor.age" + ], + [ + "instructor.age", + "professor.age" + ], + [ + "teacher.hometown", + "instructor.hometown" + ], + [ + "teacher.hometown", + "professor.hometown" + ], + [ + "instructor.hometown", + "professor.hometown" + ] + ] + }, + { + "question": "show names of teachers and the number of #courses# they teach.", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "class_schedule": [ + "course_id", + "teacher_id", + "grade" + ], + "timetable": [ + "course_id", + "teacher_id", + "grade" + ] + }, + "linking_list": [ + [ + "courses", + "course_arrange.course_id" + ], + [ + "courses", + "class_schedule.course_id" + ], + [ + "courses", + "timetable.course_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "course_arrange.course_id" + ], + [ + 0, + "class_schedule.course_id" + ], + [ + 0, + "timetable.course_id" + ] + ], + "linking_list_col": [ + [ + "course_arrange.course_id", + "class_schedule.course_id" + ], + [ + "course_arrange.course_id", + "timetable.course_id" + ], + [ + "class_schedule.course_id", + "timetable.course_id" + ], + [ + "course_arrange.teacher_id", + "class_schedule.teacher_id" + ], + [ + "course_arrange.teacher_id", + "timetable.teacher_id" + ], + [ + "class_schedule.teacher_id", + "timetable.teacher_id" + ], + [ + "course_arrange.grade", + "class_schedule.grade" + ], + [ + "course_arrange.grade", + "timetable.grade" + ], + [ + "class_schedule.grade", + "timetable.grade" + ] + ] + }, + { + "question": "what are the #names of the teachers# and how many #courses# do they teach?", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "class_schedule": [ + "course_id", + "teacher_id", + "grade" + ], + "timetable": [ + "course_id", + "teacher_id", + "grade" + ] + }, + "linking_list": [ + [ + "names of the teachers", + "teacher.name" + ], + [ + "courses", + "course_arrange.course_id" + ], + [ + "courses", + "class_schedule.course_id" + ], + [ + "courses", + "timetable.course_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "teacher.name" + ], + [ + 1, + "course_arrange.course_id" + ], + [ + 1, + "class_schedule.course_id" + ], + [ + 1, + "timetable.course_id" + ] + ], + "linking_list_col": [ + [ + "course_arrange.course_id", + "class_schedule.course_id" + ], + [ + "course_arrange.course_id", + "timetable.course_id" + ], + [ + "class_schedule.course_id", + "timetable.course_id" + ], + [ + "course_arrange.teacher_id", + "class_schedule.teacher_id" + ], + [ + "course_arrange.teacher_id", + "timetable.teacher_id" + ], + [ + "class_schedule.teacher_id", + "timetable.teacher_id" + ], + [ + "course_arrange.grade", + "class_schedule.grade" + ], + [ + "course_arrange.grade", + "timetable.grade" + ], + [ + "class_schedule.grade", + "timetable.grade" + ] + ] + }, + { + "question": "how many visitors below #age# 30 are there?", + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ], + "guest": [ + "id", + "name", + "level_of_membership", + "age" + ], + "patron": [ + "id", + "name", + "level_of_membership", + "age" + ] + }, + "linking_list": [ + [ + "age", + "visitor.age" + ], + [ + "age", + "guest.age" + ], + [ + "age", + "patron.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "visitor.age" + ], + [ + 0, + "guest.age" + ], + [ + 0, + "patron.age" + ] + ], + "linking_list_col": [ + [ + "visitor.id", + "guest.id" + ], + [ + "visitor.id", + "patron.id" + ], + [ + "guest.id", + "patron.id" + ], + [ + "visitor.name", + "guest.name" + ], + [ + "visitor.name", + "patron.name" + ], + [ + "guest.name", + "patron.name" + ], + [ + "visitor.level_of_membership", + "guest.level_of_membership" + ], + [ + "visitor.level_of_membership", + "patron.level_of_membership" + ], + [ + "guest.level_of_membership", + "patron.level_of_membership" + ], + [ + "visitor.age", + "guest.age" + ], + [ + "visitor.age", + "patron.age" + ], + [ + "guest.age", + "patron.age" + ] + ] + }, + { + "question": "find the #names of the visitors# whose #membership level# is higher than 4, and order the results by the level from high to low.", + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ], + "guest": [ + "id", + "name", + "level_of_membership", + "age" + ], + "patron": [ + "id", + "name", + "level_of_membership", + "age" + ] + }, + "linking_list": [ + [ + "names of the visitors", + "visitor.name" + ], + [ + "names of the visitors", + "guest.name" + ], + [ + "names of the visitors", + "patron.name" + ], + [ + "membership level", + "visitor.level_of_membership" + ], + [ + "membership level", + "guest.level_of_membership" + ], + [ + "membership level", + "patron.level_of_membership" + ] + ], + "linking_list_idx": [ + [ + 0, + "visitor.name" + ], + [ + 0, + "guest.name" + ], + [ + 0, + "patron.name" + ], + [ + 1, + "visitor.level_of_membership" + ], + [ + 1, + "guest.level_of_membership" + ], + [ + 1, + "patron.level_of_membership" + ] + ], + "linking_list_col": [ + [ + "visitor.id", + "guest.id" + ], + [ + "visitor.id", + "patron.id" + ], + [ + "guest.id", + "patron.id" + ], + [ + "visitor.name", + "guest.name" + ], + [ + "visitor.name", + "patron.name" + ], + [ + "guest.name", + "patron.name" + ], + [ + "visitor.level_of_membership", + "guest.level_of_membership" + ], + [ + "visitor.level_of_membership", + "patron.level_of_membership" + ], + [ + "guest.level_of_membership", + "patron.level_of_membership" + ], + [ + "visitor.age", + "guest.age" + ], + [ + "visitor.age", + "patron.age" + ], + [ + "guest.age", + "patron.age" + ] + ] + }, + { + "question": "what is the #average age of the visitors# whose #membership level# is not higher than 4?", + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ], + "guest": [ + "id", + "name", + "level_of_membership", + "age" + ], + "patron": [ + "id", + "name", + "level_of_membership", + "age" + ] + }, + "linking_list": [ + [ + "average age of the visitors", + "visitor.age" + ], + [ + "average age of the visitors", + "guest.age" + ], + [ + "average age of the visitors", + "patron.age" + ], + [ + "membership level", + "visitor.level_of_membership" + ], + [ + "membership level", + "guest.level_of_membership" + ], + [ + "membership level", + "patron.level_of_membership" + ] + ], + "linking_list_idx": [ + [ + 0, + "visitor.age" + ], + [ + 0, + "guest.age" + ], + [ + 0, + "patron.age" + ], + [ + 1, + "visitor.level_of_membership" + ], + [ + 1, + "guest.level_of_membership" + ], + [ + 1, + "patron.level_of_membership" + ] + ], + "linking_list_col": [ + [ + "visitor.id", + "guest.id" + ], + [ + "visitor.id", + "patron.id" + ], + [ + "guest.id", + "patron.id" + ], + [ + "visitor.name", + "guest.name" + ], + [ + "visitor.name", + "patron.name" + ], + [ + "guest.name", + "patron.name" + ], + [ + "visitor.level_of_membership", + "guest.level_of_membership" + ], + [ + "visitor.level_of_membership", + "patron.level_of_membership" + ], + [ + "guest.level_of_membership", + "patron.level_of_membership" + ], + [ + "visitor.age", + "guest.age" + ], + [ + "visitor.age", + "patron.age" + ], + [ + "guest.age", + "patron.age" + ] + ] + }, + { + "question": "find the #name# and #membership level# of the visitors whose membership level is higher than 4, and sort by their #age# from old to young.", + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ], + "guest": [ + "id", + "name", + "level_of_membership", + "age" + ], + "patron": [ + "id", + "name", + "level_of_membership", + "age" + ] + }, + "linking_list": [ + [ + "name", + "visitor.name" + ], + [ + "name", + "guest.name" + ], + [ + "name", + "patron.name" + ], + [ + "membership level", + "visitor.level_of_membership" + ], + [ + "membership level", + "guest.level_of_membership" + ], + [ + "membership level", + "patron.level_of_membership" + ], + [ + "age", + "visitor.age" + ], + [ + "age", + "guest.age" + ], + [ + "age", + "patron.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "visitor.name" + ], + [ + 0, + "guest.name" + ], + [ + 0, + "patron.name" + ], + [ + 1, + "visitor.level_of_membership" + ], + [ + 1, + "guest.level_of_membership" + ], + [ + 1, + "patron.level_of_membership" + ], + [ + 2, + "visitor.age" + ], + [ + 2, + "guest.age" + ], + [ + 2, + "patron.age" + ] + ], + "linking_list_col": [ + [ + "visitor.id", + "guest.id" + ], + [ + "visitor.id", + "patron.id" + ], + [ + "guest.id", + "patron.id" + ], + [ + "visitor.name", + "guest.name" + ], + [ + "visitor.name", + "patron.name" + ], + [ + "guest.name", + "patron.name" + ], + [ + "visitor.level_of_membership", + "guest.level_of_membership" + ], + [ + "visitor.level_of_membership", + "patron.level_of_membership" + ], + [ + "guest.level_of_membership", + "patron.level_of_membership" + ], + [ + "visitor.age", + "guest.age" + ], + [ + "visitor.age", + "patron.age" + ], + [ + "guest.age", + "patron.age" + ] + ] + }, + { + "question": "find the #id# and #name of the museum# that has the most staff members?", + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ], + "gallery": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "exhibition": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ] + }, + "linking_list": [ + [ + "id", + "museum.museum_id" + ], + [ + "id", + "gallery.museum_id" + ], + [ + "id", + "exhibition.museum_id" + ], + [ + "name of the museum", + "museum.name" + ], + [ + "name of the museum", + "gallery.name" + ], + [ + "name of the museum", + "exhibition.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "museum.museum_id" + ], + [ + 0, + "gallery.museum_id" + ], + [ + 0, + "exhibition.museum_id" + ], + [ + 1, + "museum.name" + ], + [ + 1, + "gallery.name" + ], + [ + 1, + "exhibition.name" + ] + ], + "linking_list_col": [ + [ + "museum.museum_id", + "gallery.museum_id" + ], + [ + "museum.museum_id", + "exhibition.museum_id" + ], + [ + "gallery.museum_id", + "exhibition.museum_id" + ], + [ + "museum.name", + "gallery.name" + ], + [ + "museum.name", + "exhibition.name" + ], + [ + "gallery.name", + "exhibition.name" + ], + [ + "museum.num_of_staff", + "gallery.num_of_staff" + ], + [ + "museum.num_of_staff", + "exhibition.num_of_staff" + ], + [ + "gallery.num_of_staff", + "exhibition.num_of_staff" + ], + [ + "museum.open_year", + "gallery.open_year" + ], + [ + "museum.open_year", + "exhibition.open_year" + ], + [ + "gallery.open_year", + "exhibition.open_year" + ] + ] + }, + { + "question": "find the #average number of staff# working for the museums that were #open before 2009# .", + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ], + "gallery": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "exhibition": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ] + }, + "linking_list": [ + [ + "average number of staff", + "museum.num_of_staff" + ], + [ + "average number of staff", + "gallery.num_of_staff" + ], + [ + "average number of staff", + "exhibition.num_of_staff" + ], + [ + "open before 2009", + "museum.open_year" + ], + [ + "open before 2009", + "gallery.open_year" + ], + [ + "open before 2009", + "exhibition.open_year" + ] + ], + "linking_list_idx": [ + [ + 0, + "museum.num_of_staff" + ], + [ + 0, + "gallery.num_of_staff" + ], + [ + 0, + "exhibition.num_of_staff" + ], + [ + 1, + "museum.open_year" + ], + [ + 1, + "gallery.open_year" + ], + [ + 1, + "exhibition.open_year" + ] + ], + "linking_list_col": [ + [ + "museum.museum_id", + "gallery.museum_id" + ], + [ + "museum.museum_id", + "exhibition.museum_id" + ], + [ + "gallery.museum_id", + "exhibition.museum_id" + ], + [ + "museum.name", + "gallery.name" + ], + [ + "museum.name", + "exhibition.name" + ], + [ + "gallery.name", + "exhibition.name" + ], + [ + "museum.num_of_staff", + "gallery.num_of_staff" + ], + [ + "museum.num_of_staff", + "exhibition.num_of_staff" + ], + [ + "gallery.num_of_staff", + "exhibition.num_of_staff" + ], + [ + "museum.open_year", + "gallery.open_year" + ], + [ + "museum.open_year", + "exhibition.open_year" + ], + [ + "gallery.open_year", + "exhibition.open_year" + ] + ] + }, + { + "question": "what are the #opening year# and staff number of the museum named plaza museum?", + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ], + "gallery": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "exhibition": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ] + }, + "linking_list": [ + [ + "opening year", + "museum.open_year" + ], + [ + "opening year", + "gallery.open_year" + ], + [ + "opening year", + "exhibition.open_year" + ] + ], + "linking_list_idx": [ + [ + 0, + "museum.open_year" + ], + [ + 0, + "gallery.open_year" + ], + [ + 0, + "exhibition.open_year" + ] + ], + "linking_list_col": [ + [ + "museum.museum_id", + "gallery.museum_id" + ], + [ + "museum.museum_id", + "exhibition.museum_id" + ], + [ + "gallery.museum_id", + "exhibition.museum_id" + ], + [ + "museum.name", + "gallery.name" + ], + [ + "museum.name", + "exhibition.name" + ], + [ + "gallery.name", + "exhibition.name" + ], + [ + "museum.num_of_staff", + "gallery.num_of_staff" + ], + [ + "museum.num_of_staff", + "exhibition.num_of_staff" + ], + [ + "gallery.num_of_staff", + "exhibition.num_of_staff" + ], + [ + "museum.open_year", + "gallery.open_year" + ], + [ + "museum.open_year", + "exhibition.open_year" + ], + [ + "gallery.open_year", + "exhibition.open_year" + ] + ] + }, + { + "question": "find the #names# of museums which have #more staff# than the #minimum staff number of all museums opened after 2010# .", + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ], + "gallery": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "exhibition": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ] + }, + "linking_list": [ + [ + "names", + "museum.name" + ], + [ + "names", + "gallery.name" + ], + [ + "names", + "exhibition.name" + ], + [ + "more staff", + "museum.num_of_staff" + ], + [ + "more staff", + "gallery.num_of_staff" + ], + [ + "more staff", + "exhibition.num_of_staff" + ], + [ + "minimum staff number of all museums opened after 2010", + "museum.num_of_staff" + ], + [ + "minimum staff number of all museums opened after 2010", + "gallery.num_of_staff" + ], + [ + "minimum staff number of all museums opened after 2010", + "exhibition.num_of_staff" + ] + ], + "linking_list_idx": [ + [ + 0, + "museum.name" + ], + [ + 0, + "gallery.name" + ], + [ + 0, + "exhibition.name" + ], + [ + 1, + "museum.num_of_staff" + ], + [ + 1, + "gallery.num_of_staff" + ], + [ + 1, + "exhibition.num_of_staff" + ], + [ + 2, + "museum.num_of_staff" + ], + [ + 2, + "gallery.num_of_staff" + ], + [ + 2, + "exhibition.num_of_staff" + ] + ], + "linking_list_col": [ + [ + "museum.museum_id", + "gallery.museum_id" + ], + [ + "museum.museum_id", + "exhibition.museum_id" + ], + [ + "gallery.museum_id", + "exhibition.museum_id" + ], + [ + "museum.name", + "gallery.name" + ], + [ + "museum.name", + "exhibition.name" + ], + [ + "gallery.name", + "exhibition.name" + ], + [ + "museum.num_of_staff", + "gallery.num_of_staff" + ], + [ + "museum.num_of_staff", + "exhibition.num_of_staff" + ], + [ + "gallery.num_of_staff", + "exhibition.num_of_staff" + ], + [ + "museum.open_year", + "gallery.open_year" + ], + [ + "museum.open_year", + "exhibition.open_year" + ], + [ + "gallery.open_year", + "exhibition.open_year" + ] + ] + }, + { + "question": "what are the #id# , #name# and #membership level of visitors# who have #spent# the largest amount of money in total in all museum tickets?", + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ], + "attendance": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ], + "check-in": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ] + }, + "linking_list": [ + [ + "id", + "visitor.id" + ], + [ + "name", + "visitor.name" + ], + [ + "membership level of visitors", + "visitor.level_of_membership" + ], + [ + "spent", + "visit.total_spent" + ], + [ + "spent", + "attendance.total_spent" + ], + [ + "spent", + "check-in.total_spent" + ] + ], + "linking_list_idx": [ + [ + 0, + "visitor.id" + ], + [ + 1, + "visitor.name" + ], + [ + 2, + "visitor.level_of_membership" + ], + [ + 3, + "visit.total_spent" + ], + [ + 3, + "attendance.total_spent" + ], + [ + 3, + "check-in.total_spent" + ] + ], + "linking_list_col": [ + [ + "visit.museum_id", + "attendance.museum_id" + ], + [ + "visit.museum_id", + "check-in.museum_id" + ], + [ + "attendance.museum_id", + "check-in.museum_id" + ], + [ + "visit.visitor_id", + "attendance.visitor_id" + ], + [ + "visit.visitor_id", + "check-in.visitor_id" + ], + [ + "attendance.visitor_id", + "check-in.visitor_id" + ], + [ + "visit.num_of_ticket", + "attendance.num_of_ticket" + ], + [ + "visit.num_of_ticket", + "check-in.num_of_ticket" + ], + [ + "attendance.num_of_ticket", + "check-in.num_of_ticket" + ], + [ + "visit.total_spent", + "attendance.total_spent" + ], + [ + "visit.total_spent", + "check-in.total_spent" + ], + [ + "attendance.total_spent", + "check-in.total_spent" + ] + ] + }, + { + "question": "what is the #name of the museum# that had no #visitor# yet?", + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ], + "attendance": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ], + "check-in": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ] + }, + "linking_list": [ + [ + "name of the museum", + "museum.name" + ], + [ + "visitor", + "visit.visitor_id" + ], + [ + "visitor", + "attendance.visitor_id" + ], + [ + "visitor", + "check-in.visitor_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "museum.name" + ], + [ + 1, + "visit.visitor_id" + ], + [ + 1, + "attendance.visitor_id" + ], + [ + 1, + "check-in.visitor_id" + ] + ], + "linking_list_col": [ + [ + "visit.museum_id", + "attendance.museum_id" + ], + [ + "visit.museum_id", + "check-in.museum_id" + ], + [ + "attendance.museum_id", + "check-in.museum_id" + ], + [ + "visit.visitor_id", + "attendance.visitor_id" + ], + [ + "visit.visitor_id", + "check-in.visitor_id" + ], + [ + "attendance.visitor_id", + "check-in.visitor_id" + ], + [ + "visit.num_of_ticket", + "attendance.num_of_ticket" + ], + [ + "visit.num_of_ticket", + "check-in.num_of_ticket" + ], + [ + "attendance.num_of_ticket", + "check-in.num_of_ticket" + ], + [ + "visit.total_spent", + "attendance.total_spent" + ], + [ + "visit.total_spent", + "check-in.total_spent" + ], + [ + "attendance.total_spent", + "check-in.total_spent" + ] + ] + }, + { + "question": "find the #name# and #age of the visitor# who bought the most #tickets# at once.", + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ], + "attendance": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ], + "check-in": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ] + }, + "linking_list": [ + [ + "name", + "visitor.name" + ], + [ + "age of the visitor", + "visitor.age" + ], + [ + "tickets", + "visit.num_of_ticket" + ], + [ + "tickets", + "attendance.num_of_ticket" + ], + [ + "tickets", + "check-in.num_of_ticket" + ] + ], + "linking_list_idx": [ + [ + 0, + "visitor.name" + ], + [ + 1, + "visitor.age" + ], + [ + 2, + "visit.num_of_ticket" + ], + [ + 2, + "attendance.num_of_ticket" + ], + [ + 2, + "check-in.num_of_ticket" + ] + ], + "linking_list_col": [ + [ + "visit.museum_id", + "attendance.museum_id" + ], + [ + "visit.museum_id", + "check-in.museum_id" + ], + [ + "attendance.museum_id", + "check-in.museum_id" + ], + [ + "visit.visitor_id", + "attendance.visitor_id" + ], + [ + "visit.visitor_id", + "check-in.visitor_id" + ], + [ + "attendance.visitor_id", + "check-in.visitor_id" + ], + [ + "visit.num_of_ticket", + "attendance.num_of_ticket" + ], + [ + "visit.num_of_ticket", + "check-in.num_of_ticket" + ], + [ + "attendance.num_of_ticket", + "check-in.num_of_ticket" + ], + [ + "visit.total_spent", + "attendance.total_spent" + ], + [ + "visit.total_spent", + "check-in.total_spent" + ], + [ + "attendance.total_spent", + "check-in.total_spent" + ] + ] + }, + { + "question": "what is the #total ticket expense of the visitors# whose #membership level# is 1?", + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ], + "attendance": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ], + "check-in": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ] + }, + "linking_list": [ + [ + "total ticket expense of the visitors", + "visit.total_spent" + ], + [ + "total ticket expense of the visitors", + "attendance.total_spent" + ], + [ + "total ticket expense of the visitors", + "check-in.total_spent" + ], + [ + "membership level", + "visitor.level_of_membership" + ] + ], + "linking_list_idx": [ + [ + 0, + "visit.total_spent" + ], + [ + 0, + "attendance.total_spent" + ], + [ + 0, + "check-in.total_spent" + ], + [ + 1, + "visitor.level_of_membership" + ] + ], + "linking_list_col": [ + [ + "visit.museum_id", + "attendance.museum_id" + ], + [ + "visit.museum_id", + "check-in.museum_id" + ], + [ + "attendance.museum_id", + "check-in.museum_id" + ], + [ + "visit.visitor_id", + "attendance.visitor_id" + ], + [ + "visit.visitor_id", + "check-in.visitor_id" + ], + [ + "attendance.visitor_id", + "check-in.visitor_id" + ], + [ + "visit.num_of_ticket", + "attendance.num_of_ticket" + ], + [ + "visit.num_of_ticket", + "check-in.num_of_ticket" + ], + [ + "attendance.num_of_ticket", + "check-in.num_of_ticket" + ], + [ + "visit.total_spent", + "attendance.total_spent" + ], + [ + "visit.total_spent", + "check-in.total_spent" + ], + [ + "attendance.total_spent", + "check-in.total_spent" + ] + ] + }, + { + "question": "how many museums were #opened# after 2013 or before 2008?", + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ], + "gallery": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "exhibition": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ] + }, + "linking_list": [ + [ + "opened", + "museum.open_year" + ], + [ + "opened", + "gallery.open_year" + ], + [ + "opened", + "exhibition.open_year" + ] + ], + "linking_list_idx": [ + [ + 0, + "museum.open_year" + ], + [ + 0, + "gallery.open_year" + ], + [ + 0, + "exhibition.open_year" + ] + ], + "linking_list_col": [ + [ + "museum.museum_id", + "gallery.museum_id" + ], + [ + "museum.museum_id", + "exhibition.museum_id" + ], + [ + "gallery.museum_id", + "exhibition.museum_id" + ], + [ + "museum.name", + "gallery.name" + ], + [ + "museum.name", + "exhibition.name" + ], + [ + "gallery.name", + "exhibition.name" + ], + [ + "museum.num_of_staff", + "gallery.num_of_staff" + ], + [ + "museum.num_of_staff", + "exhibition.num_of_staff" + ], + [ + "gallery.num_of_staff", + "exhibition.num_of_staff" + ], + [ + "museum.open_year", + "gallery.open_year" + ], + [ + "museum.open_year", + "exhibition.open_year" + ], + [ + "gallery.open_year", + "exhibition.open_year" + ] + ] + }, + { + "question": "list the #first name# and #birth date of all players# from the country with code usa.", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "athletes": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "competitors": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ] + }, + "linking_list": [ + [ + "first name", + "players.first_name" + ], + [ + "first name", + "athletes.first_name" + ], + [ + "first name", + "competitors.first_name" + ], + [ + "birth date of all players", + "players.birth_date" + ], + [ + "birth date of all players", + "athletes.birth_date" + ], + [ + "birth date of all players", + "competitors.birth_date" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.first_name" + ], + [ + 0, + "athletes.first_name" + ], + [ + 0, + "competitors.first_name" + ], + [ + 1, + "players.birth_date" + ], + [ + 1, + "athletes.birth_date" + ], + [ + 1, + "competitors.birth_date" + ] + ], + "linking_list_col": [ + [ + "players.player_id", + "athletes.player_id" + ], + [ + "players.player_id", + "competitors.player_id" + ], + [ + "athletes.player_id", + "competitors.player_id" + ], + [ + "players.first_name", + "athletes.first_name" + ], + [ + "players.first_name", + "competitors.first_name" + ], + [ + "athletes.first_name", + "competitors.first_name" + ], + [ + "players.last_name", + "athletes.last_name" + ], + [ + "players.last_name", + "competitors.last_name" + ], + [ + "athletes.last_name", + "competitors.last_name" + ], + [ + "players.hand", + "athletes.hand" + ], + [ + "players.hand", + "competitors.hand" + ], + [ + "athletes.hand", + "competitors.hand" + ], + [ + "players.birth_date", + "athletes.birth_date" + ], + [ + "players.birth_date", + "competitors.birth_date" + ], + [ + "athletes.birth_date", + "competitors.birth_date" + ], + [ + "players.country_code", + "athletes.country_code" + ], + [ + "players.country_code", + "competitors.country_code" + ], + [ + "athletes.country_code", + "competitors.country_code" + ] + ] + }, + { + "question": "what are the #first names# and #birth dates of players# from the usa?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "athletes": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "competitors": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ] + }, + "linking_list": [ + [ + "first names", + "players.first_name" + ], + [ + "first names", + "athletes.first_name" + ], + [ + "first names", + "competitors.first_name" + ], + [ + "birth dates of players", + "players.birth_date" + ], + [ + "birth dates of players", + "athletes.birth_date" + ], + [ + "birth dates of players", + "competitors.birth_date" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.first_name" + ], + [ + 0, + "athletes.first_name" + ], + [ + 0, + "competitors.first_name" + ], + [ + 1, + "players.birth_date" + ], + [ + 1, + "athletes.birth_date" + ], + [ + 1, + "competitors.birth_date" + ] + ], + "linking_list_col": [ + [ + "players.player_id", + "athletes.player_id" + ], + [ + "players.player_id", + "competitors.player_id" + ], + [ + "athletes.player_id", + "competitors.player_id" + ], + [ + "players.first_name", + "athletes.first_name" + ], + [ + "players.first_name", + "competitors.first_name" + ], + [ + "athletes.first_name", + "competitors.first_name" + ], + [ + "players.last_name", + "athletes.last_name" + ], + [ + "players.last_name", + "competitors.last_name" + ], + [ + "athletes.last_name", + "competitors.last_name" + ], + [ + "players.hand", + "athletes.hand" + ], + [ + "players.hand", + "competitors.hand" + ], + [ + "athletes.hand", + "competitors.hand" + ], + [ + "players.birth_date", + "athletes.birth_date" + ], + [ + "players.birth_date", + "competitors.birth_date" + ], + [ + "athletes.birth_date", + "competitors.birth_date" + ], + [ + "players.country_code", + "athletes.country_code" + ], + [ + "players.country_code", + "competitors.country_code" + ], + [ + "athletes.country_code", + "competitors.country_code" + ] + ] + }, + { + "question": "find the #name of tourney# that has more than 10 matches.", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "games": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "contests": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ] + }, + "linking_list": [ + [ + "name of tourney", + "matches.tourney_name" + ], + [ + "name of tourney", + "games.tourney_name" + ], + [ + "name of tourney", + "contests.tourney_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.tourney_name" + ], + [ + 0, + "games.tourney_name" + ], + [ + 0, + "contests.tourney_name" + ] + ], + "linking_list_col": [ + [ + "matches.best_of", + "games.best_of" + ], + [ + "matches.best_of", + "contests.best_of" + ], + [ + "games.best_of", + "contests.best_of" + ], + [ + "matches.draw_size", + "games.draw_size" + ], + [ + "matches.draw_size", + "contests.draw_size" + ], + [ + "games.draw_size", + "contests.draw_size" + ], + [ + "matches.loser_age", + "games.loser_age" + ], + [ + "matches.loser_age", + "contests.loser_age" + ], + [ + "games.loser_age", + "contests.loser_age" + ], + [ + "matches.loser_entry", + "games.loser_entry" + ], + [ + "matches.loser_entry", + "contests.loser_entry" + ], + [ + "games.loser_entry", + "contests.loser_entry" + ], + [ + "matches.loser_hand", + "games.loser_hand" + ], + [ + "matches.loser_hand", + "contests.loser_hand" + ], + [ + "games.loser_hand", + "contests.loser_hand" + ], + [ + "matches.loser_ht", + "games.loser_ht" + ], + [ + "matches.loser_ht", + "contests.loser_ht" + ], + [ + "games.loser_ht", + "contests.loser_ht" + ], + [ + "matches.loser_id", + "games.loser_id" + ], + [ + "matches.loser_id", + "contests.loser_id" + ], + [ + "games.loser_id", + "contests.loser_id" + ], + [ + "matches.loser_ioc", + "games.loser_ioc" + ], + [ + "matches.loser_ioc", + "contests.loser_ioc" + ], + [ + "games.loser_ioc", + "contests.loser_ioc" + ], + [ + "matches.loser_name", + "games.loser_name" + ], + [ + "matches.loser_name", + "contests.loser_name" + ], + [ + "games.loser_name", + "contests.loser_name" + ], + [ + "matches.loser_rank", + "games.loser_rank" + ], + [ + "matches.loser_rank", + "contests.loser_rank" + ], + [ + "games.loser_rank", + "contests.loser_rank" + ], + [ + "matches.loser_rank_points", + "games.loser_rank_points" + ], + [ + "matches.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "games.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "matches.loser_seed", + "games.loser_seed" + ], + [ + "matches.loser_seed", + "contests.loser_seed" + ], + [ + "games.loser_seed", + "contests.loser_seed" + ], + [ + "matches.match_num", + "games.match_num" + ], + [ + "matches.match_num", + "contests.match_num" + ], + [ + "games.match_num", + "contests.match_num" + ], + [ + "matches.minutes", + "games.minutes" + ], + [ + "matches.minutes", + "contests.minutes" + ], + [ + "games.minutes", + "contests.minutes" + ], + [ + "matches.round", + "games.round" + ], + [ + "matches.round", + "contests.round" + ], + [ + "games.round", + "contests.round" + ], + [ + "matches.score", + "games.score" + ], + [ + "matches.score", + "contests.score" + ], + [ + "games.score", + "contests.score" + ], + [ + "matches.surface", + "games.surface" + ], + [ + "matches.surface", + "contests.surface" + ], + [ + "games.surface", + "contests.surface" + ], + [ + "matches.tourney_date", + "games.tourney_date" + ], + [ + "matches.tourney_date", + "contests.tourney_date" + ], + [ + "games.tourney_date", + "contests.tourney_date" + ], + [ + "matches.tourney_id", + "games.tourney_id" + ], + [ + "matches.tourney_id", + "contests.tourney_id" + ], + [ + "games.tourney_id", + "contests.tourney_id" + ], + [ + "matches.tourney_level", + "games.tourney_level" + ], + [ + "matches.tourney_level", + "contests.tourney_level" + ], + [ + "games.tourney_level", + "contests.tourney_level" + ], + [ + "matches.tourney_name", + "games.tourney_name" + ], + [ + "matches.tourney_name", + "contests.tourney_name" + ], + [ + "games.tourney_name", + "contests.tourney_name" + ], + [ + "matches.winner_age", + "games.winner_age" + ], + [ + "matches.winner_age", + "contests.winner_age" + ], + [ + "games.winner_age", + "contests.winner_age" + ], + [ + "matches.winner_entry", + "games.winner_entry" + ], + [ + "matches.winner_entry", + "contests.winner_entry" + ], + [ + "games.winner_entry", + "contests.winner_entry" + ], + [ + "matches.winner_hand", + "games.winner_hand" + ], + [ + "matches.winner_hand", + "contests.winner_hand" + ], + [ + "games.winner_hand", + "contests.winner_hand" + ], + [ + "matches.winner_ht", + "games.winner_ht" + ], + [ + "matches.winner_ht", + "contests.winner_ht" + ], + [ + "games.winner_ht", + "contests.winner_ht" + ], + [ + "matches.winner_id", + "games.winner_id" + ], + [ + "matches.winner_id", + "contests.winner_id" + ], + [ + "games.winner_id", + "contests.winner_id" + ], + [ + "matches.winner_ioc", + "games.winner_ioc" + ], + [ + "matches.winner_ioc", + "contests.winner_ioc" + ], + [ + "games.winner_ioc", + "contests.winner_ioc" + ], + [ + "matches.winner_name", + "games.winner_name" + ], + [ + "matches.winner_name", + "contests.winner_name" + ], + [ + "games.winner_name", + "contests.winner_name" + ], + [ + "matches.winner_rank", + "games.winner_rank" + ], + [ + "matches.winner_rank", + "contests.winner_rank" + ], + [ + "games.winner_rank", + "contests.winner_rank" + ], + [ + "matches.winner_rank_points", + "games.winner_rank_points" + ], + [ + "matches.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "games.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "matches.winner_seed", + "games.winner_seed" + ], + [ + "matches.winner_seed", + "contests.winner_seed" + ], + [ + "games.winner_seed", + "contests.winner_seed" + ], + [ + "matches.year", + "games.year" + ], + [ + "matches.year", + "contests.year" + ], + [ + "games.year", + "contests.year" + ] + ] + }, + { + "question": "what are the #names of tournaments# that have more than 10 matches?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "games": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "contests": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ] + }, + "linking_list": [ + [ + "names of tournaments", + "matches.tourney_name" + ], + [ + "names of tournaments", + "games.tourney_name" + ], + [ + "names of tournaments", + "contests.tourney_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.tourney_name" + ], + [ + 0, + "games.tourney_name" + ], + [ + 0, + "contests.tourney_name" + ] + ], + "linking_list_col": [ + [ + "matches.best_of", + "games.best_of" + ], + [ + "matches.best_of", + "contests.best_of" + ], + [ + "games.best_of", + "contests.best_of" + ], + [ + "matches.draw_size", + "games.draw_size" + ], + [ + "matches.draw_size", + "contests.draw_size" + ], + [ + "games.draw_size", + "contests.draw_size" + ], + [ + "matches.loser_age", + "games.loser_age" + ], + [ + "matches.loser_age", + "contests.loser_age" + ], + [ + "games.loser_age", + "contests.loser_age" + ], + [ + "matches.loser_entry", + "games.loser_entry" + ], + [ + "matches.loser_entry", + "contests.loser_entry" + ], + [ + "games.loser_entry", + "contests.loser_entry" + ], + [ + "matches.loser_hand", + "games.loser_hand" + ], + [ + "matches.loser_hand", + "contests.loser_hand" + ], + [ + "games.loser_hand", + "contests.loser_hand" + ], + [ + "matches.loser_ht", + "games.loser_ht" + ], + [ + "matches.loser_ht", + "contests.loser_ht" + ], + [ + "games.loser_ht", + "contests.loser_ht" + ], + [ + "matches.loser_id", + "games.loser_id" + ], + [ + "matches.loser_id", + "contests.loser_id" + ], + [ + "games.loser_id", + "contests.loser_id" + ], + [ + "matches.loser_ioc", + "games.loser_ioc" + ], + [ + "matches.loser_ioc", + "contests.loser_ioc" + ], + [ + "games.loser_ioc", + "contests.loser_ioc" + ], + [ + "matches.loser_name", + "games.loser_name" + ], + [ + "matches.loser_name", + "contests.loser_name" + ], + [ + "games.loser_name", + "contests.loser_name" + ], + [ + "matches.loser_rank", + "games.loser_rank" + ], + [ + "matches.loser_rank", + "contests.loser_rank" + ], + [ + "games.loser_rank", + "contests.loser_rank" + ], + [ + "matches.loser_rank_points", + "games.loser_rank_points" + ], + [ + "matches.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "games.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "matches.loser_seed", + "games.loser_seed" + ], + [ + "matches.loser_seed", + "contests.loser_seed" + ], + [ + "games.loser_seed", + "contests.loser_seed" + ], + [ + "matches.match_num", + "games.match_num" + ], + [ + "matches.match_num", + "contests.match_num" + ], + [ + "games.match_num", + "contests.match_num" + ], + [ + "matches.minutes", + "games.minutes" + ], + [ + "matches.minutes", + "contests.minutes" + ], + [ + "games.minutes", + "contests.minutes" + ], + [ + "matches.round", + "games.round" + ], + [ + "matches.round", + "contests.round" + ], + [ + "games.round", + "contests.round" + ], + [ + "matches.score", + "games.score" + ], + [ + "matches.score", + "contests.score" + ], + [ + "games.score", + "contests.score" + ], + [ + "matches.surface", + "games.surface" + ], + [ + "matches.surface", + "contests.surface" + ], + [ + "games.surface", + "contests.surface" + ], + [ + "matches.tourney_date", + "games.tourney_date" + ], + [ + "matches.tourney_date", + "contests.tourney_date" + ], + [ + "games.tourney_date", + "contests.tourney_date" + ], + [ + "matches.tourney_id", + "games.tourney_id" + ], + [ + "matches.tourney_id", + "contests.tourney_id" + ], + [ + "games.tourney_id", + "contests.tourney_id" + ], + [ + "matches.tourney_level", + "games.tourney_level" + ], + [ + "matches.tourney_level", + "contests.tourney_level" + ], + [ + "games.tourney_level", + "contests.tourney_level" + ], + [ + "matches.tourney_name", + "games.tourney_name" + ], + [ + "matches.tourney_name", + "contests.tourney_name" + ], + [ + "games.tourney_name", + "contests.tourney_name" + ], + [ + "matches.winner_age", + "games.winner_age" + ], + [ + "matches.winner_age", + "contests.winner_age" + ], + [ + "games.winner_age", + "contests.winner_age" + ], + [ + "matches.winner_entry", + "games.winner_entry" + ], + [ + "matches.winner_entry", + "contests.winner_entry" + ], + [ + "games.winner_entry", + "contests.winner_entry" + ], + [ + "matches.winner_hand", + "games.winner_hand" + ], + [ + "matches.winner_hand", + "contests.winner_hand" + ], + [ + "games.winner_hand", + "contests.winner_hand" + ], + [ + "matches.winner_ht", + "games.winner_ht" + ], + [ + "matches.winner_ht", + "contests.winner_ht" + ], + [ + "games.winner_ht", + "contests.winner_ht" + ], + [ + "matches.winner_id", + "games.winner_id" + ], + [ + "matches.winner_id", + "contests.winner_id" + ], + [ + "games.winner_id", + "contests.winner_id" + ], + [ + "matches.winner_ioc", + "games.winner_ioc" + ], + [ + "matches.winner_ioc", + "contests.winner_ioc" + ], + [ + "games.winner_ioc", + "contests.winner_ioc" + ], + [ + "matches.winner_name", + "games.winner_name" + ], + [ + "matches.winner_name", + "contests.winner_name" + ], + [ + "games.winner_name", + "contests.winner_name" + ], + [ + "matches.winner_rank", + "games.winner_rank" + ], + [ + "matches.winner_rank", + "contests.winner_rank" + ], + [ + "games.winner_rank", + "contests.winner_rank" + ], + [ + "matches.winner_rank_points", + "games.winner_rank_points" + ], + [ + "matches.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "games.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "matches.winner_seed", + "games.winner_seed" + ], + [ + "matches.winner_seed", + "contests.winner_seed" + ], + [ + "games.winner_seed", + "contests.winner_seed" + ], + [ + "matches.year", + "games.year" + ], + [ + "matches.year", + "contests.year" + ], + [ + "games.year", + "contests.year" + ] + ] + }, + { + "question": "list the #names of all winners# who played in both 2013 and 2016.", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "games": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "contests": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ] + }, + "linking_list": [ + [ + "names of all winners", + "matches.winner_name" + ], + [ + "names of all winners", + "games.winner_name" + ], + [ + "names of all winners", + "contests.winner_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.winner_name" + ], + [ + 0, + "games.winner_name" + ], + [ + 0, + "contests.winner_name" + ] + ], + "linking_list_col": [ + [ + "matches.best_of", + "games.best_of" + ], + [ + "matches.best_of", + "contests.best_of" + ], + [ + "games.best_of", + "contests.best_of" + ], + [ + "matches.draw_size", + "games.draw_size" + ], + [ + "matches.draw_size", + "contests.draw_size" + ], + [ + "games.draw_size", + "contests.draw_size" + ], + [ + "matches.loser_age", + "games.loser_age" + ], + [ + "matches.loser_age", + "contests.loser_age" + ], + [ + "games.loser_age", + "contests.loser_age" + ], + [ + "matches.loser_entry", + "games.loser_entry" + ], + [ + "matches.loser_entry", + "contests.loser_entry" + ], + [ + "games.loser_entry", + "contests.loser_entry" + ], + [ + "matches.loser_hand", + "games.loser_hand" + ], + [ + "matches.loser_hand", + "contests.loser_hand" + ], + [ + "games.loser_hand", + "contests.loser_hand" + ], + [ + "matches.loser_ht", + "games.loser_ht" + ], + [ + "matches.loser_ht", + "contests.loser_ht" + ], + [ + "games.loser_ht", + "contests.loser_ht" + ], + [ + "matches.loser_id", + "games.loser_id" + ], + [ + "matches.loser_id", + "contests.loser_id" + ], + [ + "games.loser_id", + "contests.loser_id" + ], + [ + "matches.loser_ioc", + "games.loser_ioc" + ], + [ + "matches.loser_ioc", + "contests.loser_ioc" + ], + [ + "games.loser_ioc", + "contests.loser_ioc" + ], + [ + "matches.loser_name", + "games.loser_name" + ], + [ + "matches.loser_name", + "contests.loser_name" + ], + [ + "games.loser_name", + "contests.loser_name" + ], + [ + "matches.loser_rank", + "games.loser_rank" + ], + [ + "matches.loser_rank", + "contests.loser_rank" + ], + [ + "games.loser_rank", + "contests.loser_rank" + ], + [ + "matches.loser_rank_points", + "games.loser_rank_points" + ], + [ + "matches.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "games.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "matches.loser_seed", + "games.loser_seed" + ], + [ + "matches.loser_seed", + "contests.loser_seed" + ], + [ + "games.loser_seed", + "contests.loser_seed" + ], + [ + "matches.match_num", + "games.match_num" + ], + [ + "matches.match_num", + "contests.match_num" + ], + [ + "games.match_num", + "contests.match_num" + ], + [ + "matches.minutes", + "games.minutes" + ], + [ + "matches.minutes", + "contests.minutes" + ], + [ + "games.minutes", + "contests.minutes" + ], + [ + "matches.round", + "games.round" + ], + [ + "matches.round", + "contests.round" + ], + [ + "games.round", + "contests.round" + ], + [ + "matches.score", + "games.score" + ], + [ + "matches.score", + "contests.score" + ], + [ + "games.score", + "contests.score" + ], + [ + "matches.surface", + "games.surface" + ], + [ + "matches.surface", + "contests.surface" + ], + [ + "games.surface", + "contests.surface" + ], + [ + "matches.tourney_date", + "games.tourney_date" + ], + [ + "matches.tourney_date", + "contests.tourney_date" + ], + [ + "games.tourney_date", + "contests.tourney_date" + ], + [ + "matches.tourney_id", + "games.tourney_id" + ], + [ + "matches.tourney_id", + "contests.tourney_id" + ], + [ + "games.tourney_id", + "contests.tourney_id" + ], + [ + "matches.tourney_level", + "games.tourney_level" + ], + [ + "matches.tourney_level", + "contests.tourney_level" + ], + [ + "games.tourney_level", + "contests.tourney_level" + ], + [ + "matches.tourney_name", + "games.tourney_name" + ], + [ + "matches.tourney_name", + "contests.tourney_name" + ], + [ + "games.tourney_name", + "contests.tourney_name" + ], + [ + "matches.winner_age", + "games.winner_age" + ], + [ + "matches.winner_age", + "contests.winner_age" + ], + [ + "games.winner_age", + "contests.winner_age" + ], + [ + "matches.winner_entry", + "games.winner_entry" + ], + [ + "matches.winner_entry", + "contests.winner_entry" + ], + [ + "games.winner_entry", + "contests.winner_entry" + ], + [ + "matches.winner_hand", + "games.winner_hand" + ], + [ + "matches.winner_hand", + "contests.winner_hand" + ], + [ + "games.winner_hand", + "contests.winner_hand" + ], + [ + "matches.winner_ht", + "games.winner_ht" + ], + [ + "matches.winner_ht", + "contests.winner_ht" + ], + [ + "games.winner_ht", + "contests.winner_ht" + ], + [ + "matches.winner_id", + "games.winner_id" + ], + [ + "matches.winner_id", + "contests.winner_id" + ], + [ + "games.winner_id", + "contests.winner_id" + ], + [ + "matches.winner_ioc", + "games.winner_ioc" + ], + [ + "matches.winner_ioc", + "contests.winner_ioc" + ], + [ + "games.winner_ioc", + "contests.winner_ioc" + ], + [ + "matches.winner_name", + "games.winner_name" + ], + [ + "matches.winner_name", + "contests.winner_name" + ], + [ + "games.winner_name", + "contests.winner_name" + ], + [ + "matches.winner_rank", + "games.winner_rank" + ], + [ + "matches.winner_rank", + "contests.winner_rank" + ], + [ + "games.winner_rank", + "contests.winner_rank" + ], + [ + "matches.winner_rank_points", + "games.winner_rank_points" + ], + [ + "matches.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "games.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "matches.winner_seed", + "games.winner_seed" + ], + [ + "matches.winner_seed", + "contests.winner_seed" + ], + [ + "games.winner_seed", + "contests.winner_seed" + ], + [ + "matches.year", + "games.year" + ], + [ + "matches.year", + "contests.year" + ], + [ + "games.year", + "contests.year" + ] + ] + }, + { + "question": "what are the #names of players# who won in both 2013 and 2016?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "games": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "contests": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ] + }, + "linking_list": [ + [ + "names of players", + "matches.winner_name" + ], + [ + "names of players", + "games.winner_name" + ], + [ + "names of players", + "contests.winner_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.winner_name" + ], + [ + 0, + "games.winner_name" + ], + [ + 0, + "contests.winner_name" + ] + ], + "linking_list_col": [ + [ + "matches.best_of", + "games.best_of" + ], + [ + "matches.best_of", + "contests.best_of" + ], + [ + "games.best_of", + "contests.best_of" + ], + [ + "matches.draw_size", + "games.draw_size" + ], + [ + "matches.draw_size", + "contests.draw_size" + ], + [ + "games.draw_size", + "contests.draw_size" + ], + [ + "matches.loser_age", + "games.loser_age" + ], + [ + "matches.loser_age", + "contests.loser_age" + ], + [ + "games.loser_age", + "contests.loser_age" + ], + [ + "matches.loser_entry", + "games.loser_entry" + ], + [ + "matches.loser_entry", + "contests.loser_entry" + ], + [ + "games.loser_entry", + "contests.loser_entry" + ], + [ + "matches.loser_hand", + "games.loser_hand" + ], + [ + "matches.loser_hand", + "contests.loser_hand" + ], + [ + "games.loser_hand", + "contests.loser_hand" + ], + [ + "matches.loser_ht", + "games.loser_ht" + ], + [ + "matches.loser_ht", + "contests.loser_ht" + ], + [ + "games.loser_ht", + "contests.loser_ht" + ], + [ + "matches.loser_id", + "games.loser_id" + ], + [ + "matches.loser_id", + "contests.loser_id" + ], + [ + "games.loser_id", + "contests.loser_id" + ], + [ + "matches.loser_ioc", + "games.loser_ioc" + ], + [ + "matches.loser_ioc", + "contests.loser_ioc" + ], + [ + "games.loser_ioc", + "contests.loser_ioc" + ], + [ + "matches.loser_name", + "games.loser_name" + ], + [ + "matches.loser_name", + "contests.loser_name" + ], + [ + "games.loser_name", + "contests.loser_name" + ], + [ + "matches.loser_rank", + "games.loser_rank" + ], + [ + "matches.loser_rank", + "contests.loser_rank" + ], + [ + "games.loser_rank", + "contests.loser_rank" + ], + [ + "matches.loser_rank_points", + "games.loser_rank_points" + ], + [ + "matches.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "games.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "matches.loser_seed", + "games.loser_seed" + ], + [ + "matches.loser_seed", + "contests.loser_seed" + ], + [ + "games.loser_seed", + "contests.loser_seed" + ], + [ + "matches.match_num", + "games.match_num" + ], + [ + "matches.match_num", + "contests.match_num" + ], + [ + "games.match_num", + "contests.match_num" + ], + [ + "matches.minutes", + "games.minutes" + ], + [ + "matches.minutes", + "contests.minutes" + ], + [ + "games.minutes", + "contests.minutes" + ], + [ + "matches.round", + "games.round" + ], + [ + "matches.round", + "contests.round" + ], + [ + "games.round", + "contests.round" + ], + [ + "matches.score", + "games.score" + ], + [ + "matches.score", + "contests.score" + ], + [ + "games.score", + "contests.score" + ], + [ + "matches.surface", + "games.surface" + ], + [ + "matches.surface", + "contests.surface" + ], + [ + "games.surface", + "contests.surface" + ], + [ + "matches.tourney_date", + "games.tourney_date" + ], + [ + "matches.tourney_date", + "contests.tourney_date" + ], + [ + "games.tourney_date", + "contests.tourney_date" + ], + [ + "matches.tourney_id", + "games.tourney_id" + ], + [ + "matches.tourney_id", + "contests.tourney_id" + ], + [ + "games.tourney_id", + "contests.tourney_id" + ], + [ + "matches.tourney_level", + "games.tourney_level" + ], + [ + "matches.tourney_level", + "contests.tourney_level" + ], + [ + "games.tourney_level", + "contests.tourney_level" + ], + [ + "matches.tourney_name", + "games.tourney_name" + ], + [ + "matches.tourney_name", + "contests.tourney_name" + ], + [ + "games.tourney_name", + "contests.tourney_name" + ], + [ + "matches.winner_age", + "games.winner_age" + ], + [ + "matches.winner_age", + "contests.winner_age" + ], + [ + "games.winner_age", + "contests.winner_age" + ], + [ + "matches.winner_entry", + "games.winner_entry" + ], + [ + "matches.winner_entry", + "contests.winner_entry" + ], + [ + "games.winner_entry", + "contests.winner_entry" + ], + [ + "matches.winner_hand", + "games.winner_hand" + ], + [ + "matches.winner_hand", + "contests.winner_hand" + ], + [ + "games.winner_hand", + "contests.winner_hand" + ], + [ + "matches.winner_ht", + "games.winner_ht" + ], + [ + "matches.winner_ht", + "contests.winner_ht" + ], + [ + "games.winner_ht", + "contests.winner_ht" + ], + [ + "matches.winner_id", + "games.winner_id" + ], + [ + "matches.winner_id", + "contests.winner_id" + ], + [ + "games.winner_id", + "contests.winner_id" + ], + [ + "matches.winner_ioc", + "games.winner_ioc" + ], + [ + "matches.winner_ioc", + "contests.winner_ioc" + ], + [ + "games.winner_ioc", + "contests.winner_ioc" + ], + [ + "matches.winner_name", + "games.winner_name" + ], + [ + "matches.winner_name", + "contests.winner_name" + ], + [ + "games.winner_name", + "contests.winner_name" + ], + [ + "matches.winner_rank", + "games.winner_rank" + ], + [ + "matches.winner_rank", + "contests.winner_rank" + ], + [ + "games.winner_rank", + "contests.winner_rank" + ], + [ + "matches.winner_rank_points", + "games.winner_rank_points" + ], + [ + "matches.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "games.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "matches.winner_seed", + "games.winner_seed" + ], + [ + "matches.winner_seed", + "contests.winner_seed" + ], + [ + "games.winner_seed", + "contests.winner_seed" + ], + [ + "matches.year", + "games.year" + ], + [ + "matches.year", + "contests.year" + ], + [ + "games.year", + "contests.year" + ] + ] + }, + { + "question": "list the number of all matches who played in #years# of 2013 or 2016.", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "games": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "contests": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ] + }, + "linking_list": [ + [ + "years", + "matches.year" + ], + [ + "years", + "games.year" + ], + [ + "years", + "contests.year" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.year" + ], + [ + 0, + "games.year" + ], + [ + 0, + "contests.year" + ] + ], + "linking_list_col": [ + [ + "matches.best_of", + "games.best_of" + ], + [ + "matches.best_of", + "contests.best_of" + ], + [ + "games.best_of", + "contests.best_of" + ], + [ + "matches.draw_size", + "games.draw_size" + ], + [ + "matches.draw_size", + "contests.draw_size" + ], + [ + "games.draw_size", + "contests.draw_size" + ], + [ + "matches.loser_age", + "games.loser_age" + ], + [ + "matches.loser_age", + "contests.loser_age" + ], + [ + "games.loser_age", + "contests.loser_age" + ], + [ + "matches.loser_entry", + "games.loser_entry" + ], + [ + "matches.loser_entry", + "contests.loser_entry" + ], + [ + "games.loser_entry", + "contests.loser_entry" + ], + [ + "matches.loser_hand", + "games.loser_hand" + ], + [ + "matches.loser_hand", + "contests.loser_hand" + ], + [ + "games.loser_hand", + "contests.loser_hand" + ], + [ + "matches.loser_ht", + "games.loser_ht" + ], + [ + "matches.loser_ht", + "contests.loser_ht" + ], + [ + "games.loser_ht", + "contests.loser_ht" + ], + [ + "matches.loser_id", + "games.loser_id" + ], + [ + "matches.loser_id", + "contests.loser_id" + ], + [ + "games.loser_id", + "contests.loser_id" + ], + [ + "matches.loser_ioc", + "games.loser_ioc" + ], + [ + "matches.loser_ioc", + "contests.loser_ioc" + ], + [ + "games.loser_ioc", + "contests.loser_ioc" + ], + [ + "matches.loser_name", + "games.loser_name" + ], + [ + "matches.loser_name", + "contests.loser_name" + ], + [ + "games.loser_name", + "contests.loser_name" + ], + [ + "matches.loser_rank", + "games.loser_rank" + ], + [ + "matches.loser_rank", + "contests.loser_rank" + ], + [ + "games.loser_rank", + "contests.loser_rank" + ], + [ + "matches.loser_rank_points", + "games.loser_rank_points" + ], + [ + "matches.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "games.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "matches.loser_seed", + "games.loser_seed" + ], + [ + "matches.loser_seed", + "contests.loser_seed" + ], + [ + "games.loser_seed", + "contests.loser_seed" + ], + [ + "matches.match_num", + "games.match_num" + ], + [ + "matches.match_num", + "contests.match_num" + ], + [ + "games.match_num", + "contests.match_num" + ], + [ + "matches.minutes", + "games.minutes" + ], + [ + "matches.minutes", + "contests.minutes" + ], + [ + "games.minutes", + "contests.minutes" + ], + [ + "matches.round", + "games.round" + ], + [ + "matches.round", + "contests.round" + ], + [ + "games.round", + "contests.round" + ], + [ + "matches.score", + "games.score" + ], + [ + "matches.score", + "contests.score" + ], + [ + "games.score", + "contests.score" + ], + [ + "matches.surface", + "games.surface" + ], + [ + "matches.surface", + "contests.surface" + ], + [ + "games.surface", + "contests.surface" + ], + [ + "matches.tourney_date", + "games.tourney_date" + ], + [ + "matches.tourney_date", + "contests.tourney_date" + ], + [ + "games.tourney_date", + "contests.tourney_date" + ], + [ + "matches.tourney_id", + "games.tourney_id" + ], + [ + "matches.tourney_id", + "contests.tourney_id" + ], + [ + "games.tourney_id", + "contests.tourney_id" + ], + [ + "matches.tourney_level", + "games.tourney_level" + ], + [ + "matches.tourney_level", + "contests.tourney_level" + ], + [ + "games.tourney_level", + "contests.tourney_level" + ], + [ + "matches.tourney_name", + "games.tourney_name" + ], + [ + "matches.tourney_name", + "contests.tourney_name" + ], + [ + "games.tourney_name", + "contests.tourney_name" + ], + [ + "matches.winner_age", + "games.winner_age" + ], + [ + "matches.winner_age", + "contests.winner_age" + ], + [ + "games.winner_age", + "contests.winner_age" + ], + [ + "matches.winner_entry", + "games.winner_entry" + ], + [ + "matches.winner_entry", + "contests.winner_entry" + ], + [ + "games.winner_entry", + "contests.winner_entry" + ], + [ + "matches.winner_hand", + "games.winner_hand" + ], + [ + "matches.winner_hand", + "contests.winner_hand" + ], + [ + "games.winner_hand", + "contests.winner_hand" + ], + [ + "matches.winner_ht", + "games.winner_ht" + ], + [ + "matches.winner_ht", + "contests.winner_ht" + ], + [ + "games.winner_ht", + "contests.winner_ht" + ], + [ + "matches.winner_id", + "games.winner_id" + ], + [ + "matches.winner_id", + "contests.winner_id" + ], + [ + "games.winner_id", + "contests.winner_id" + ], + [ + "matches.winner_ioc", + "games.winner_ioc" + ], + [ + "matches.winner_ioc", + "contests.winner_ioc" + ], + [ + "games.winner_ioc", + "contests.winner_ioc" + ], + [ + "matches.winner_name", + "games.winner_name" + ], + [ + "matches.winner_name", + "contests.winner_name" + ], + [ + "games.winner_name", + "contests.winner_name" + ], + [ + "matches.winner_rank", + "games.winner_rank" + ], + [ + "matches.winner_rank", + "contests.winner_rank" + ], + [ + "games.winner_rank", + "contests.winner_rank" + ], + [ + "matches.winner_rank_points", + "games.winner_rank_points" + ], + [ + "matches.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "games.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "matches.winner_seed", + "games.winner_seed" + ], + [ + "matches.winner_seed", + "contests.winner_seed" + ], + [ + "games.winner_seed", + "contests.winner_seed" + ], + [ + "matches.year", + "games.year" + ], + [ + "matches.year", + "contests.year" + ], + [ + "games.year", + "contests.year" + ] + ] + }, + { + "question": "how many matches were played in #2013# or 2016?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "games": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "contests": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ] + }, + "linking_list": [ + [ + "2013", + "matches.year" + ], + [ + "2013", + "games.year" + ], + [ + "2013", + "contests.year" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.year" + ], + [ + 0, + "games.year" + ], + [ + 0, + "contests.year" + ] + ], + "linking_list_col": [ + [ + "matches.best_of", + "games.best_of" + ], + [ + "matches.best_of", + "contests.best_of" + ], + [ + "games.best_of", + "contests.best_of" + ], + [ + "matches.draw_size", + "games.draw_size" + ], + [ + "matches.draw_size", + "contests.draw_size" + ], + [ + "games.draw_size", + "contests.draw_size" + ], + [ + "matches.loser_age", + "games.loser_age" + ], + [ + "matches.loser_age", + "contests.loser_age" + ], + [ + "games.loser_age", + "contests.loser_age" + ], + [ + "matches.loser_entry", + "games.loser_entry" + ], + [ + "matches.loser_entry", + "contests.loser_entry" + ], + [ + "games.loser_entry", + "contests.loser_entry" + ], + [ + "matches.loser_hand", + "games.loser_hand" + ], + [ + "matches.loser_hand", + "contests.loser_hand" + ], + [ + "games.loser_hand", + "contests.loser_hand" + ], + [ + "matches.loser_ht", + "games.loser_ht" + ], + [ + "matches.loser_ht", + "contests.loser_ht" + ], + [ + "games.loser_ht", + "contests.loser_ht" + ], + [ + "matches.loser_id", + "games.loser_id" + ], + [ + "matches.loser_id", + "contests.loser_id" + ], + [ + "games.loser_id", + "contests.loser_id" + ], + [ + "matches.loser_ioc", + "games.loser_ioc" + ], + [ + "matches.loser_ioc", + "contests.loser_ioc" + ], + [ + "games.loser_ioc", + "contests.loser_ioc" + ], + [ + "matches.loser_name", + "games.loser_name" + ], + [ + "matches.loser_name", + "contests.loser_name" + ], + [ + "games.loser_name", + "contests.loser_name" + ], + [ + "matches.loser_rank", + "games.loser_rank" + ], + [ + "matches.loser_rank", + "contests.loser_rank" + ], + [ + "games.loser_rank", + "contests.loser_rank" + ], + [ + "matches.loser_rank_points", + "games.loser_rank_points" + ], + [ + "matches.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "games.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "matches.loser_seed", + "games.loser_seed" + ], + [ + "matches.loser_seed", + "contests.loser_seed" + ], + [ + "games.loser_seed", + "contests.loser_seed" + ], + [ + "matches.match_num", + "games.match_num" + ], + [ + "matches.match_num", + "contests.match_num" + ], + [ + "games.match_num", + "contests.match_num" + ], + [ + "matches.minutes", + "games.minutes" + ], + [ + "matches.minutes", + "contests.minutes" + ], + [ + "games.minutes", + "contests.minutes" + ], + [ + "matches.round", + "games.round" + ], + [ + "matches.round", + "contests.round" + ], + [ + "games.round", + "contests.round" + ], + [ + "matches.score", + "games.score" + ], + [ + "matches.score", + "contests.score" + ], + [ + "games.score", + "contests.score" + ], + [ + "matches.surface", + "games.surface" + ], + [ + "matches.surface", + "contests.surface" + ], + [ + "games.surface", + "contests.surface" + ], + [ + "matches.tourney_date", + "games.tourney_date" + ], + [ + "matches.tourney_date", + "contests.tourney_date" + ], + [ + "games.tourney_date", + "contests.tourney_date" + ], + [ + "matches.tourney_id", + "games.tourney_id" + ], + [ + "matches.tourney_id", + "contests.tourney_id" + ], + [ + "games.tourney_id", + "contests.tourney_id" + ], + [ + "matches.tourney_level", + "games.tourney_level" + ], + [ + "matches.tourney_level", + "contests.tourney_level" + ], + [ + "games.tourney_level", + "contests.tourney_level" + ], + [ + "matches.tourney_name", + "games.tourney_name" + ], + [ + "matches.tourney_name", + "contests.tourney_name" + ], + [ + "games.tourney_name", + "contests.tourney_name" + ], + [ + "matches.winner_age", + "games.winner_age" + ], + [ + "matches.winner_age", + "contests.winner_age" + ], + [ + "games.winner_age", + "contests.winner_age" + ], + [ + "matches.winner_entry", + "games.winner_entry" + ], + [ + "matches.winner_entry", + "contests.winner_entry" + ], + [ + "games.winner_entry", + "contests.winner_entry" + ], + [ + "matches.winner_hand", + "games.winner_hand" + ], + [ + "matches.winner_hand", + "contests.winner_hand" + ], + [ + "games.winner_hand", + "contests.winner_hand" + ], + [ + "matches.winner_ht", + "games.winner_ht" + ], + [ + "matches.winner_ht", + "contests.winner_ht" + ], + [ + "games.winner_ht", + "contests.winner_ht" + ], + [ + "matches.winner_id", + "games.winner_id" + ], + [ + "matches.winner_id", + "contests.winner_id" + ], + [ + "games.winner_id", + "contests.winner_id" + ], + [ + "matches.winner_ioc", + "games.winner_ioc" + ], + [ + "matches.winner_ioc", + "contests.winner_ioc" + ], + [ + "games.winner_ioc", + "contests.winner_ioc" + ], + [ + "matches.winner_name", + "games.winner_name" + ], + [ + "matches.winner_name", + "contests.winner_name" + ], + [ + "games.winner_name", + "contests.winner_name" + ], + [ + "matches.winner_rank", + "games.winner_rank" + ], + [ + "matches.winner_rank", + "contests.winner_rank" + ], + [ + "games.winner_rank", + "contests.winner_rank" + ], + [ + "matches.winner_rank_points", + "games.winner_rank_points" + ], + [ + "matches.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "games.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "matches.winner_seed", + "games.winner_seed" + ], + [ + "matches.winner_seed", + "contests.winner_seed" + ], + [ + "games.winner_seed", + "contests.winner_seed" + ], + [ + "matches.year", + "games.year" + ], + [ + "matches.year", + "contests.year" + ], + [ + "games.year", + "contests.year" + ] + ] + }, + { + "question": "what are the #country code# and #first name of the players# who #won# in both #tourney wta championships# and australian open?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "games": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "contests": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ] + }, + "linking_list": [ + [ + "country code", + "players.country_code" + ], + [ + "first name of the players", + "players.first_name" + ], + [ + "won", + "matches.winner_id" + ], + [ + "won", + "games.winner_id" + ], + [ + "won", + "contests.winner_id" + ], + [ + "tourney WTA Championships", + "matches.tourney_name" + ], + [ + "tourney WTA Championships", + "games.tourney_name" + ], + [ + "tourney WTA Championships", + "contests.tourney_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.country_code" + ], + [ + 1, + "players.first_name" + ], + [ + 2, + "matches.winner_id" + ], + [ + 2, + "games.winner_id" + ], + [ + 2, + "contests.winner_id" + ], + [ + 3, + "matches.tourney_name" + ], + [ + 3, + "games.tourney_name" + ], + [ + 3, + "contests.tourney_name" + ] + ], + "linking_list_col": [ + [ + "matches.best_of", + "games.best_of" + ], + [ + "matches.best_of", + "contests.best_of" + ], + [ + "games.best_of", + "contests.best_of" + ], + [ + "matches.draw_size", + "games.draw_size" + ], + [ + "matches.draw_size", + "contests.draw_size" + ], + [ + "games.draw_size", + "contests.draw_size" + ], + [ + "matches.loser_age", + "games.loser_age" + ], + [ + "matches.loser_age", + "contests.loser_age" + ], + [ + "games.loser_age", + "contests.loser_age" + ], + [ + "matches.loser_entry", + "games.loser_entry" + ], + [ + "matches.loser_entry", + "contests.loser_entry" + ], + [ + "games.loser_entry", + "contests.loser_entry" + ], + [ + "matches.loser_hand", + "games.loser_hand" + ], + [ + "matches.loser_hand", + "contests.loser_hand" + ], + [ + "games.loser_hand", + "contests.loser_hand" + ], + [ + "matches.loser_ht", + "games.loser_ht" + ], + [ + "matches.loser_ht", + "contests.loser_ht" + ], + [ + "games.loser_ht", + "contests.loser_ht" + ], + [ + "matches.loser_id", + "games.loser_id" + ], + [ + "matches.loser_id", + "contests.loser_id" + ], + [ + "games.loser_id", + "contests.loser_id" + ], + [ + "matches.loser_ioc", + "games.loser_ioc" + ], + [ + "matches.loser_ioc", + "contests.loser_ioc" + ], + [ + "games.loser_ioc", + "contests.loser_ioc" + ], + [ + "matches.loser_name", + "games.loser_name" + ], + [ + "matches.loser_name", + "contests.loser_name" + ], + [ + "games.loser_name", + "contests.loser_name" + ], + [ + "matches.loser_rank", + "games.loser_rank" + ], + [ + "matches.loser_rank", + "contests.loser_rank" + ], + [ + "games.loser_rank", + "contests.loser_rank" + ], + [ + "matches.loser_rank_points", + "games.loser_rank_points" + ], + [ + "matches.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "games.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "matches.loser_seed", + "games.loser_seed" + ], + [ + "matches.loser_seed", + "contests.loser_seed" + ], + [ + "games.loser_seed", + "contests.loser_seed" + ], + [ + "matches.match_num", + "games.match_num" + ], + [ + "matches.match_num", + "contests.match_num" + ], + [ + "games.match_num", + "contests.match_num" + ], + [ + "matches.minutes", + "games.minutes" + ], + [ + "matches.minutes", + "contests.minutes" + ], + [ + "games.minutes", + "contests.minutes" + ], + [ + "matches.round", + "games.round" + ], + [ + "matches.round", + "contests.round" + ], + [ + "games.round", + "contests.round" + ], + [ + "matches.score", + "games.score" + ], + [ + "matches.score", + "contests.score" + ], + [ + "games.score", + "contests.score" + ], + [ + "matches.surface", + "games.surface" + ], + [ + "matches.surface", + "contests.surface" + ], + [ + "games.surface", + "contests.surface" + ], + [ + "matches.tourney_date", + "games.tourney_date" + ], + [ + "matches.tourney_date", + "contests.tourney_date" + ], + [ + "games.tourney_date", + "contests.tourney_date" + ], + [ + "matches.tourney_id", + "games.tourney_id" + ], + [ + "matches.tourney_id", + "contests.tourney_id" + ], + [ + "games.tourney_id", + "contests.tourney_id" + ], + [ + "matches.tourney_level", + "games.tourney_level" + ], + [ + "matches.tourney_level", + "contests.tourney_level" + ], + [ + "games.tourney_level", + "contests.tourney_level" + ], + [ + "matches.tourney_name", + "games.tourney_name" + ], + [ + "matches.tourney_name", + "contests.tourney_name" + ], + [ + "games.tourney_name", + "contests.tourney_name" + ], + [ + "matches.winner_age", + "games.winner_age" + ], + [ + "matches.winner_age", + "contests.winner_age" + ], + [ + "games.winner_age", + "contests.winner_age" + ], + [ + "matches.winner_entry", + "games.winner_entry" + ], + [ + "matches.winner_entry", + "contests.winner_entry" + ], + [ + "games.winner_entry", + "contests.winner_entry" + ], + [ + "matches.winner_hand", + "games.winner_hand" + ], + [ + "matches.winner_hand", + "contests.winner_hand" + ], + [ + "games.winner_hand", + "contests.winner_hand" + ], + [ + "matches.winner_ht", + "games.winner_ht" + ], + [ + "matches.winner_ht", + "contests.winner_ht" + ], + [ + "games.winner_ht", + "contests.winner_ht" + ], + [ + "matches.winner_id", + "games.winner_id" + ], + [ + "matches.winner_id", + "contests.winner_id" + ], + [ + "games.winner_id", + "contests.winner_id" + ], + [ + "matches.winner_ioc", + "games.winner_ioc" + ], + [ + "matches.winner_ioc", + "contests.winner_ioc" + ], + [ + "games.winner_ioc", + "contests.winner_ioc" + ], + [ + "matches.winner_name", + "games.winner_name" + ], + [ + "matches.winner_name", + "contests.winner_name" + ], + [ + "games.winner_name", + "contests.winner_name" + ], + [ + "matches.winner_rank", + "games.winner_rank" + ], + [ + "matches.winner_rank", + "contests.winner_rank" + ], + [ + "games.winner_rank", + "contests.winner_rank" + ], + [ + "matches.winner_rank_points", + "games.winner_rank_points" + ], + [ + "matches.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "games.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "matches.winner_seed", + "games.winner_seed" + ], + [ + "matches.winner_seed", + "contests.winner_seed" + ], + [ + "games.winner_seed", + "contests.winner_seed" + ], + [ + "matches.year", + "games.year" + ], + [ + "matches.year", + "contests.year" + ], + [ + "games.year", + "contests.year" + ] + ] + }, + { + "question": "what are the #first names# and #country codes for players# who #won# both the #wta championships# and the australian open?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "games": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "contests": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ] + }, + "linking_list": [ + [ + "first names", + "players.first_name" + ], + [ + "country codes for players", + "players.country_code" + ], + [ + "won", + "matches.winner_id" + ], + [ + "won", + "games.winner_id" + ], + [ + "won", + "contests.winner_id" + ], + [ + "WTA Championships", + "matches.tourney_name" + ], + [ + "WTA Championships", + "games.tourney_name" + ], + [ + "WTA Championships", + "contests.tourney_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.first_name" + ], + [ + 1, + "players.country_code" + ], + [ + 2, + "matches.winner_id" + ], + [ + 2, + "games.winner_id" + ], + [ + 2, + "contests.winner_id" + ], + [ + 3, + "matches.tourney_name" + ], + [ + 3, + "games.tourney_name" + ], + [ + 3, + "contests.tourney_name" + ] + ], + "linking_list_col": [ + [ + "matches.best_of", + "games.best_of" + ], + [ + "matches.best_of", + "contests.best_of" + ], + [ + "games.best_of", + "contests.best_of" + ], + [ + "matches.draw_size", + "games.draw_size" + ], + [ + "matches.draw_size", + "contests.draw_size" + ], + [ + "games.draw_size", + "contests.draw_size" + ], + [ + "matches.loser_age", + "games.loser_age" + ], + [ + "matches.loser_age", + "contests.loser_age" + ], + [ + "games.loser_age", + "contests.loser_age" + ], + [ + "matches.loser_entry", + "games.loser_entry" + ], + [ + "matches.loser_entry", + "contests.loser_entry" + ], + [ + "games.loser_entry", + "contests.loser_entry" + ], + [ + "matches.loser_hand", + "games.loser_hand" + ], + [ + "matches.loser_hand", + "contests.loser_hand" + ], + [ + "games.loser_hand", + "contests.loser_hand" + ], + [ + "matches.loser_ht", + "games.loser_ht" + ], + [ + "matches.loser_ht", + "contests.loser_ht" + ], + [ + "games.loser_ht", + "contests.loser_ht" + ], + [ + "matches.loser_id", + "games.loser_id" + ], + [ + "matches.loser_id", + "contests.loser_id" + ], + [ + "games.loser_id", + "contests.loser_id" + ], + [ + "matches.loser_ioc", + "games.loser_ioc" + ], + [ + "matches.loser_ioc", + "contests.loser_ioc" + ], + [ + "games.loser_ioc", + "contests.loser_ioc" + ], + [ + "matches.loser_name", + "games.loser_name" + ], + [ + "matches.loser_name", + "contests.loser_name" + ], + [ + "games.loser_name", + "contests.loser_name" + ], + [ + "matches.loser_rank", + "games.loser_rank" + ], + [ + "matches.loser_rank", + "contests.loser_rank" + ], + [ + "games.loser_rank", + "contests.loser_rank" + ], + [ + "matches.loser_rank_points", + "games.loser_rank_points" + ], + [ + "matches.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "games.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "matches.loser_seed", + "games.loser_seed" + ], + [ + "matches.loser_seed", + "contests.loser_seed" + ], + [ + "games.loser_seed", + "contests.loser_seed" + ], + [ + "matches.match_num", + "games.match_num" + ], + [ + "matches.match_num", + "contests.match_num" + ], + [ + "games.match_num", + "contests.match_num" + ], + [ + "matches.minutes", + "games.minutes" + ], + [ + "matches.minutes", + "contests.minutes" + ], + [ + "games.minutes", + "contests.minutes" + ], + [ + "matches.round", + "games.round" + ], + [ + "matches.round", + "contests.round" + ], + [ + "games.round", + "contests.round" + ], + [ + "matches.score", + "games.score" + ], + [ + "matches.score", + "contests.score" + ], + [ + "games.score", + "contests.score" + ], + [ + "matches.surface", + "games.surface" + ], + [ + "matches.surface", + "contests.surface" + ], + [ + "games.surface", + "contests.surface" + ], + [ + "matches.tourney_date", + "games.tourney_date" + ], + [ + "matches.tourney_date", + "contests.tourney_date" + ], + [ + "games.tourney_date", + "contests.tourney_date" + ], + [ + "matches.tourney_id", + "games.tourney_id" + ], + [ + "matches.tourney_id", + "contests.tourney_id" + ], + [ + "games.tourney_id", + "contests.tourney_id" + ], + [ + "matches.tourney_level", + "games.tourney_level" + ], + [ + "matches.tourney_level", + "contests.tourney_level" + ], + [ + "games.tourney_level", + "contests.tourney_level" + ], + [ + "matches.tourney_name", + "games.tourney_name" + ], + [ + "matches.tourney_name", + "contests.tourney_name" + ], + [ + "games.tourney_name", + "contests.tourney_name" + ], + [ + "matches.winner_age", + "games.winner_age" + ], + [ + "matches.winner_age", + "contests.winner_age" + ], + [ + "games.winner_age", + "contests.winner_age" + ], + [ + "matches.winner_entry", + "games.winner_entry" + ], + [ + "matches.winner_entry", + "contests.winner_entry" + ], + [ + "games.winner_entry", + "contests.winner_entry" + ], + [ + "matches.winner_hand", + "games.winner_hand" + ], + [ + "matches.winner_hand", + "contests.winner_hand" + ], + [ + "games.winner_hand", + "contests.winner_hand" + ], + [ + "matches.winner_ht", + "games.winner_ht" + ], + [ + "matches.winner_ht", + "contests.winner_ht" + ], + [ + "games.winner_ht", + "contests.winner_ht" + ], + [ + "matches.winner_id", + "games.winner_id" + ], + [ + "matches.winner_id", + "contests.winner_id" + ], + [ + "games.winner_id", + "contests.winner_id" + ], + [ + "matches.winner_ioc", + "games.winner_ioc" + ], + [ + "matches.winner_ioc", + "contests.winner_ioc" + ], + [ + "games.winner_ioc", + "contests.winner_ioc" + ], + [ + "matches.winner_name", + "games.winner_name" + ], + [ + "matches.winner_name", + "contests.winner_name" + ], + [ + "games.winner_name", + "contests.winner_name" + ], + [ + "matches.winner_rank", + "games.winner_rank" + ], + [ + "matches.winner_rank", + "contests.winner_rank" + ], + [ + "games.winner_rank", + "contests.winner_rank" + ], + [ + "matches.winner_rank_points", + "games.winner_rank_points" + ], + [ + "matches.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "games.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "matches.winner_seed", + "games.winner_seed" + ], + [ + "matches.winner_seed", + "contests.winner_seed" + ], + [ + "games.winner_seed", + "contests.winner_seed" + ], + [ + "matches.year", + "games.year" + ], + [ + "matches.year", + "contests.year" + ], + [ + "games.year", + "contests.year" + ] + ] + }, + { + "question": "find the #first name# and #country code of the oldest player# .", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "athletes": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "competitors": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ] + }, + "linking_list": [ + [ + "first name", + "players.first_name" + ], + [ + "first name", + "athletes.first_name" + ], + [ + "first name", + "competitors.first_name" + ], + [ + "country code of the oldest player", + "players.country_code" + ], + [ + "country code of the oldest player", + "athletes.country_code" + ], + [ + "country code of the oldest player", + "competitors.country_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.first_name" + ], + [ + 0, + "athletes.first_name" + ], + [ + 0, + "competitors.first_name" + ], + [ + 1, + "players.country_code" + ], + [ + 1, + "athletes.country_code" + ], + [ + 1, + "competitors.country_code" + ] + ], + "linking_list_col": [ + [ + "players.player_id", + "athletes.player_id" + ], + [ + "players.player_id", + "competitors.player_id" + ], + [ + "athletes.player_id", + "competitors.player_id" + ], + [ + "players.first_name", + "athletes.first_name" + ], + [ + "players.first_name", + "competitors.first_name" + ], + [ + "athletes.first_name", + "competitors.first_name" + ], + [ + "players.last_name", + "athletes.last_name" + ], + [ + "players.last_name", + "competitors.last_name" + ], + [ + "athletes.last_name", + "competitors.last_name" + ], + [ + "players.hand", + "athletes.hand" + ], + [ + "players.hand", + "competitors.hand" + ], + [ + "athletes.hand", + "competitors.hand" + ], + [ + "players.birth_date", + "athletes.birth_date" + ], + [ + "players.birth_date", + "competitors.birth_date" + ], + [ + "athletes.birth_date", + "competitors.birth_date" + ], + [ + "players.country_code", + "athletes.country_code" + ], + [ + "players.country_code", + "competitors.country_code" + ], + [ + "athletes.country_code", + "competitors.country_code" + ] + ] + }, + { + "question": "what is the #first name# and country code of the oldest player?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "athletes": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "competitors": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ] + }, + "linking_list": [ + [ + "first name", + "players.first_name" + ], + [ + "first name", + "athletes.first_name" + ], + [ + "first name", + "competitors.first_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.first_name" + ], + [ + 0, + "athletes.first_name" + ], + [ + 0, + "competitors.first_name" + ] + ], + "linking_list_col": [ + [ + "players.player_id", + "athletes.player_id" + ], + [ + "players.player_id", + "competitors.player_id" + ], + [ + "athletes.player_id", + "competitors.player_id" + ], + [ + "players.first_name", + "athletes.first_name" + ], + [ + "players.first_name", + "competitors.first_name" + ], + [ + "athletes.first_name", + "competitors.first_name" + ], + [ + "players.last_name", + "athletes.last_name" + ], + [ + "players.last_name", + "competitors.last_name" + ], + [ + "athletes.last_name", + "competitors.last_name" + ], + [ + "players.hand", + "athletes.hand" + ], + [ + "players.hand", + "competitors.hand" + ], + [ + "athletes.hand", + "competitors.hand" + ], + [ + "players.birth_date", + "athletes.birth_date" + ], + [ + "players.birth_date", + "competitors.birth_date" + ], + [ + "athletes.birth_date", + "competitors.birth_date" + ], + [ + "players.country_code", + "athletes.country_code" + ], + [ + "players.country_code", + "competitors.country_code" + ], + [ + "athletes.country_code", + "competitors.country_code" + ] + ] + }, + { + "question": "list the first and #last name of all players# in the order of #birth date# .", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "athletes": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "competitors": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ] + }, + "linking_list": [ + [ + "last name of all players", + "players.last_name" + ], + [ + "last name of all players", + "athletes.last_name" + ], + [ + "last name of all players", + "competitors.last_name" + ], + [ + "birth date", + "players.birth_date" + ], + [ + "birth date", + "athletes.birth_date" + ], + [ + "birth date", + "competitors.birth_date" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.last_name" + ], + [ + 0, + "athletes.last_name" + ], + [ + 0, + "competitors.last_name" + ], + [ + 1, + "players.birth_date" + ], + [ + 1, + "athletes.birth_date" + ], + [ + 1, + "competitors.birth_date" + ] + ], + "linking_list_col": [ + [ + "players.player_id", + "athletes.player_id" + ], + [ + "players.player_id", + "competitors.player_id" + ], + [ + "athletes.player_id", + "competitors.player_id" + ], + [ + "players.first_name", + "athletes.first_name" + ], + [ + "players.first_name", + "competitors.first_name" + ], + [ + "athletes.first_name", + "competitors.first_name" + ], + [ + "players.last_name", + "athletes.last_name" + ], + [ + "players.last_name", + "competitors.last_name" + ], + [ + "athletes.last_name", + "competitors.last_name" + ], + [ + "players.hand", + "athletes.hand" + ], + [ + "players.hand", + "competitors.hand" + ], + [ + "athletes.hand", + "competitors.hand" + ], + [ + "players.birth_date", + "athletes.birth_date" + ], + [ + "players.birth_date", + "competitors.birth_date" + ], + [ + "athletes.birth_date", + "competitors.birth_date" + ], + [ + "players.country_code", + "athletes.country_code" + ], + [ + "players.country_code", + "competitors.country_code" + ], + [ + "athletes.country_code", + "competitors.country_code" + ] + ] + }, + { + "question": "list the first and #last name of all players# who are #left / l hand# in the order of #birth date# .", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "athletes": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "competitors": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ] + }, + "linking_list": [ + [ + "last name of all players", + "players.last_name" + ], + [ + "last name of all players", + "athletes.last_name" + ], + [ + "last name of all players", + "competitors.last_name" + ], + [ + "left / L hand", + "players.hand" + ], + [ + "left / L hand", + "athletes.hand" + ], + [ + "left / L hand", + "competitors.hand" + ], + [ + "birth date", + "players.birth_date" + ], + [ + "birth date", + "athletes.birth_date" + ], + [ + "birth date", + "competitors.birth_date" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.last_name" + ], + [ + 0, + "athletes.last_name" + ], + [ + 0, + "competitors.last_name" + ], + [ + 1, + "players.hand" + ], + [ + 1, + "athletes.hand" + ], + [ + 1, + "competitors.hand" + ], + [ + 2, + "players.birth_date" + ], + [ + 2, + "athletes.birth_date" + ], + [ + 2, + "competitors.birth_date" + ] + ], + "linking_list_col": [ + [ + "players.player_id", + "athletes.player_id" + ], + [ + "players.player_id", + "competitors.player_id" + ], + [ + "athletes.player_id", + "competitors.player_id" + ], + [ + "players.first_name", + "athletes.first_name" + ], + [ + "players.first_name", + "competitors.first_name" + ], + [ + "athletes.first_name", + "competitors.first_name" + ], + [ + "players.last_name", + "athletes.last_name" + ], + [ + "players.last_name", + "competitors.last_name" + ], + [ + "athletes.last_name", + "competitors.last_name" + ], + [ + "players.hand", + "athletes.hand" + ], + [ + "players.hand", + "competitors.hand" + ], + [ + "athletes.hand", + "competitors.hand" + ], + [ + "players.birth_date", + "athletes.birth_date" + ], + [ + "players.birth_date", + "competitors.birth_date" + ], + [ + "athletes.birth_date", + "competitors.birth_date" + ], + [ + "players.country_code", + "athletes.country_code" + ], + [ + "players.country_code", + "competitors.country_code" + ], + [ + "athletes.country_code", + "competitors.country_code" + ] + ] + }, + { + "question": "find the #first name# and #country code of the player# who did the most number of #tours# .", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "standings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "leaderboard": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "first name", + "players.first_name" + ], + [ + "country code of the player", + "players.country_code" + ], + [ + "tours", + "rankings.tours" + ], + [ + "tours", + "standings.tours" + ], + [ + "tours", + "leaderboard.tours" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.first_name" + ], + [ + 1, + "players.country_code" + ], + [ + 2, + "rankings.tours" + ], + [ + 2, + "standings.tours" + ], + [ + 2, + "leaderboard.tours" + ] + ], + "linking_list_col": [ + [ + "rankings.ranking_date", + "standings.ranking_date" + ], + [ + "rankings.ranking_date", + "leaderboard.ranking_date" + ], + [ + "standings.ranking_date", + "leaderboard.ranking_date" + ], + [ + "rankings.ranking", + "standings.ranking" + ], + [ + "rankings.ranking", + "leaderboard.ranking" + ], + [ + "standings.ranking", + "leaderboard.ranking" + ], + [ + "rankings.player_id", + "standings.player_id" + ], + [ + "rankings.player_id", + "leaderboard.player_id" + ], + [ + "standings.player_id", + "leaderboard.player_id" + ], + [ + "rankings.ranking_points", + "standings.ranking_points" + ], + [ + "rankings.ranking_points", + "leaderboard.ranking_points" + ], + [ + "standings.ranking_points", + "leaderboard.ranking_points" + ], + [ + "rankings.tours", + "standings.tours" + ], + [ + "rankings.tours", + "leaderboard.tours" + ], + [ + "standings.tours", + "leaderboard.tours" + ] + ] + }, + { + "question": "find the #year# that has the most number of matches.", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "games": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "contests": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ] + }, + "linking_list": [ + [ + "year", + "matches.year" + ], + [ + "year", + "games.year" + ], + [ + "year", + "contests.year" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.year" + ], + [ + 0, + "games.year" + ], + [ + 0, + "contests.year" + ] + ], + "linking_list_col": [ + [ + "matches.best_of", + "games.best_of" + ], + [ + "matches.best_of", + "contests.best_of" + ], + [ + "games.best_of", + "contests.best_of" + ], + [ + "matches.draw_size", + "games.draw_size" + ], + [ + "matches.draw_size", + "contests.draw_size" + ], + [ + "games.draw_size", + "contests.draw_size" + ], + [ + "matches.loser_age", + "games.loser_age" + ], + [ + "matches.loser_age", + "contests.loser_age" + ], + [ + "games.loser_age", + "contests.loser_age" + ], + [ + "matches.loser_entry", + "games.loser_entry" + ], + [ + "matches.loser_entry", + "contests.loser_entry" + ], + [ + "games.loser_entry", + "contests.loser_entry" + ], + [ + "matches.loser_hand", + "games.loser_hand" + ], + [ + "matches.loser_hand", + "contests.loser_hand" + ], + [ + "games.loser_hand", + "contests.loser_hand" + ], + [ + "matches.loser_ht", + "games.loser_ht" + ], + [ + "matches.loser_ht", + "contests.loser_ht" + ], + [ + "games.loser_ht", + "contests.loser_ht" + ], + [ + "matches.loser_id", + "games.loser_id" + ], + [ + "matches.loser_id", + "contests.loser_id" + ], + [ + "games.loser_id", + "contests.loser_id" + ], + [ + "matches.loser_ioc", + "games.loser_ioc" + ], + [ + "matches.loser_ioc", + "contests.loser_ioc" + ], + [ + "games.loser_ioc", + "contests.loser_ioc" + ], + [ + "matches.loser_name", + "games.loser_name" + ], + [ + "matches.loser_name", + "contests.loser_name" + ], + [ + "games.loser_name", + "contests.loser_name" + ], + [ + "matches.loser_rank", + "games.loser_rank" + ], + [ + "matches.loser_rank", + "contests.loser_rank" + ], + [ + "games.loser_rank", + "contests.loser_rank" + ], + [ + "matches.loser_rank_points", + "games.loser_rank_points" + ], + [ + "matches.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "games.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "matches.loser_seed", + "games.loser_seed" + ], + [ + "matches.loser_seed", + "contests.loser_seed" + ], + [ + "games.loser_seed", + "contests.loser_seed" + ], + [ + "matches.match_num", + "games.match_num" + ], + [ + "matches.match_num", + "contests.match_num" + ], + [ + "games.match_num", + "contests.match_num" + ], + [ + "matches.minutes", + "games.minutes" + ], + [ + "matches.minutes", + "contests.minutes" + ], + [ + "games.minutes", + "contests.minutes" + ], + [ + "matches.round", + "games.round" + ], + [ + "matches.round", + "contests.round" + ], + [ + "games.round", + "contests.round" + ], + [ + "matches.score", + "games.score" + ], + [ + "matches.score", + "contests.score" + ], + [ + "games.score", + "contests.score" + ], + [ + "matches.surface", + "games.surface" + ], + [ + "matches.surface", + "contests.surface" + ], + [ + "games.surface", + "contests.surface" + ], + [ + "matches.tourney_date", + "games.tourney_date" + ], + [ + "matches.tourney_date", + "contests.tourney_date" + ], + [ + "games.tourney_date", + "contests.tourney_date" + ], + [ + "matches.tourney_id", + "games.tourney_id" + ], + [ + "matches.tourney_id", + "contests.tourney_id" + ], + [ + "games.tourney_id", + "contests.tourney_id" + ], + [ + "matches.tourney_level", + "games.tourney_level" + ], + [ + "matches.tourney_level", + "contests.tourney_level" + ], + [ + "games.tourney_level", + "contests.tourney_level" + ], + [ + "matches.tourney_name", + "games.tourney_name" + ], + [ + "matches.tourney_name", + "contests.tourney_name" + ], + [ + "games.tourney_name", + "contests.tourney_name" + ], + [ + "matches.winner_age", + "games.winner_age" + ], + [ + "matches.winner_age", + "contests.winner_age" + ], + [ + "games.winner_age", + "contests.winner_age" + ], + [ + "matches.winner_entry", + "games.winner_entry" + ], + [ + "matches.winner_entry", + "contests.winner_entry" + ], + [ + "games.winner_entry", + "contests.winner_entry" + ], + [ + "matches.winner_hand", + "games.winner_hand" + ], + [ + "matches.winner_hand", + "contests.winner_hand" + ], + [ + "games.winner_hand", + "contests.winner_hand" + ], + [ + "matches.winner_ht", + "games.winner_ht" + ], + [ + "matches.winner_ht", + "contests.winner_ht" + ], + [ + "games.winner_ht", + "contests.winner_ht" + ], + [ + "matches.winner_id", + "games.winner_id" + ], + [ + "matches.winner_id", + "contests.winner_id" + ], + [ + "games.winner_id", + "contests.winner_id" + ], + [ + "matches.winner_ioc", + "games.winner_ioc" + ], + [ + "matches.winner_ioc", + "contests.winner_ioc" + ], + [ + "games.winner_ioc", + "contests.winner_ioc" + ], + [ + "matches.winner_name", + "games.winner_name" + ], + [ + "matches.winner_name", + "contests.winner_name" + ], + [ + "games.winner_name", + "contests.winner_name" + ], + [ + "matches.winner_rank", + "games.winner_rank" + ], + [ + "matches.winner_rank", + "contests.winner_rank" + ], + [ + "games.winner_rank", + "contests.winner_rank" + ], + [ + "matches.winner_rank_points", + "games.winner_rank_points" + ], + [ + "matches.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "games.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "matches.winner_seed", + "games.winner_seed" + ], + [ + "matches.winner_seed", + "contests.winner_seed" + ], + [ + "games.winner_seed", + "contests.winner_seed" + ], + [ + "matches.year", + "games.year" + ], + [ + "matches.year", + "contests.year" + ], + [ + "games.year", + "contests.year" + ] + ] + }, + { + "question": "which #year# had the most matches?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "games": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "contests": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ] + }, + "linking_list": [ + [ + "year", + "matches.year" + ], + [ + "year", + "games.year" + ], + [ + "year", + "contests.year" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.year" + ], + [ + 0, + "games.year" + ], + [ + 0, + "contests.year" + ] + ], + "linking_list_col": [ + [ + "matches.best_of", + "games.best_of" + ], + [ + "matches.best_of", + "contests.best_of" + ], + [ + "games.best_of", + "contests.best_of" + ], + [ + "matches.draw_size", + "games.draw_size" + ], + [ + "matches.draw_size", + "contests.draw_size" + ], + [ + "games.draw_size", + "contests.draw_size" + ], + [ + "matches.loser_age", + "games.loser_age" + ], + [ + "matches.loser_age", + "contests.loser_age" + ], + [ + "games.loser_age", + "contests.loser_age" + ], + [ + "matches.loser_entry", + "games.loser_entry" + ], + [ + "matches.loser_entry", + "contests.loser_entry" + ], + [ + "games.loser_entry", + "contests.loser_entry" + ], + [ + "matches.loser_hand", + "games.loser_hand" + ], + [ + "matches.loser_hand", + "contests.loser_hand" + ], + [ + "games.loser_hand", + "contests.loser_hand" + ], + [ + "matches.loser_ht", + "games.loser_ht" + ], + [ + "matches.loser_ht", + "contests.loser_ht" + ], + [ + "games.loser_ht", + "contests.loser_ht" + ], + [ + "matches.loser_id", + "games.loser_id" + ], + [ + "matches.loser_id", + "contests.loser_id" + ], + [ + "games.loser_id", + "contests.loser_id" + ], + [ + "matches.loser_ioc", + "games.loser_ioc" + ], + [ + "matches.loser_ioc", + "contests.loser_ioc" + ], + [ + "games.loser_ioc", + "contests.loser_ioc" + ], + [ + "matches.loser_name", + "games.loser_name" + ], + [ + "matches.loser_name", + "contests.loser_name" + ], + [ + "games.loser_name", + "contests.loser_name" + ], + [ + "matches.loser_rank", + "games.loser_rank" + ], + [ + "matches.loser_rank", + "contests.loser_rank" + ], + [ + "games.loser_rank", + "contests.loser_rank" + ], + [ + "matches.loser_rank_points", + "games.loser_rank_points" + ], + [ + "matches.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "games.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "matches.loser_seed", + "games.loser_seed" + ], + [ + "matches.loser_seed", + "contests.loser_seed" + ], + [ + "games.loser_seed", + "contests.loser_seed" + ], + [ + "matches.match_num", + "games.match_num" + ], + [ + "matches.match_num", + "contests.match_num" + ], + [ + "games.match_num", + "contests.match_num" + ], + [ + "matches.minutes", + "games.minutes" + ], + [ + "matches.minutes", + "contests.minutes" + ], + [ + "games.minutes", + "contests.minutes" + ], + [ + "matches.round", + "games.round" + ], + [ + "matches.round", + "contests.round" + ], + [ + "games.round", + "contests.round" + ], + [ + "matches.score", + "games.score" + ], + [ + "matches.score", + "contests.score" + ], + [ + "games.score", + "contests.score" + ], + [ + "matches.surface", + "games.surface" + ], + [ + "matches.surface", + "contests.surface" + ], + [ + "games.surface", + "contests.surface" + ], + [ + "matches.tourney_date", + "games.tourney_date" + ], + [ + "matches.tourney_date", + "contests.tourney_date" + ], + [ + "games.tourney_date", + "contests.tourney_date" + ], + [ + "matches.tourney_id", + "games.tourney_id" + ], + [ + "matches.tourney_id", + "contests.tourney_id" + ], + [ + "games.tourney_id", + "contests.tourney_id" + ], + [ + "matches.tourney_level", + "games.tourney_level" + ], + [ + "matches.tourney_level", + "contests.tourney_level" + ], + [ + "games.tourney_level", + "contests.tourney_level" + ], + [ + "matches.tourney_name", + "games.tourney_name" + ], + [ + "matches.tourney_name", + "contests.tourney_name" + ], + [ + "games.tourney_name", + "contests.tourney_name" + ], + [ + "matches.winner_age", + "games.winner_age" + ], + [ + "matches.winner_age", + "contests.winner_age" + ], + [ + "games.winner_age", + "contests.winner_age" + ], + [ + "matches.winner_entry", + "games.winner_entry" + ], + [ + "matches.winner_entry", + "contests.winner_entry" + ], + [ + "games.winner_entry", + "contests.winner_entry" + ], + [ + "matches.winner_hand", + "games.winner_hand" + ], + [ + "matches.winner_hand", + "contests.winner_hand" + ], + [ + "games.winner_hand", + "contests.winner_hand" + ], + [ + "matches.winner_ht", + "games.winner_ht" + ], + [ + "matches.winner_ht", + "contests.winner_ht" + ], + [ + "games.winner_ht", + "contests.winner_ht" + ], + [ + "matches.winner_id", + "games.winner_id" + ], + [ + "matches.winner_id", + "contests.winner_id" + ], + [ + "games.winner_id", + "contests.winner_id" + ], + [ + "matches.winner_ioc", + "games.winner_ioc" + ], + [ + "matches.winner_ioc", + "contests.winner_ioc" + ], + [ + "games.winner_ioc", + "contests.winner_ioc" + ], + [ + "matches.winner_name", + "games.winner_name" + ], + [ + "matches.winner_name", + "contests.winner_name" + ], + [ + "games.winner_name", + "contests.winner_name" + ], + [ + "matches.winner_rank", + "games.winner_rank" + ], + [ + "matches.winner_rank", + "contests.winner_rank" + ], + [ + "games.winner_rank", + "contests.winner_rank" + ], + [ + "matches.winner_rank_points", + "games.winner_rank_points" + ], + [ + "matches.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "games.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "matches.winner_seed", + "games.winner_seed" + ], + [ + "matches.winner_seed", + "contests.winner_seed" + ], + [ + "games.winner_seed", + "contests.winner_seed" + ], + [ + "matches.year", + "games.year" + ], + [ + "matches.year", + "contests.year" + ], + [ + "games.year", + "contests.year" + ] + ] + }, + { + "question": "find the #name# and #rank points of the winner# who won the most times.", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "games": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "contests": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ] + }, + "linking_list": [ + [ + "name", + "matches.winner_name" + ], + [ + "name", + "games.winner_name" + ], + [ + "name", + "contests.winner_name" + ], + [ + "rank points of the winner", + "matches.winner_rank_points" + ], + [ + "rank points of the winner", + "games.winner_rank_points" + ], + [ + "rank points of the winner", + "contests.winner_rank_points" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.winner_name" + ], + [ + 0, + "games.winner_name" + ], + [ + 0, + "contests.winner_name" + ], + [ + 1, + "matches.winner_rank_points" + ], + [ + 1, + "games.winner_rank_points" + ], + [ + 1, + "contests.winner_rank_points" + ] + ], + "linking_list_col": [ + [ + "matches.best_of", + "games.best_of" + ], + [ + "matches.best_of", + "contests.best_of" + ], + [ + "games.best_of", + "contests.best_of" + ], + [ + "matches.draw_size", + "games.draw_size" + ], + [ + "matches.draw_size", + "contests.draw_size" + ], + [ + "games.draw_size", + "contests.draw_size" + ], + [ + "matches.loser_age", + "games.loser_age" + ], + [ + "matches.loser_age", + "contests.loser_age" + ], + [ + "games.loser_age", + "contests.loser_age" + ], + [ + "matches.loser_entry", + "games.loser_entry" + ], + [ + "matches.loser_entry", + "contests.loser_entry" + ], + [ + "games.loser_entry", + "contests.loser_entry" + ], + [ + "matches.loser_hand", + "games.loser_hand" + ], + [ + "matches.loser_hand", + "contests.loser_hand" + ], + [ + "games.loser_hand", + "contests.loser_hand" + ], + [ + "matches.loser_ht", + "games.loser_ht" + ], + [ + "matches.loser_ht", + "contests.loser_ht" + ], + [ + "games.loser_ht", + "contests.loser_ht" + ], + [ + "matches.loser_id", + "games.loser_id" + ], + [ + "matches.loser_id", + "contests.loser_id" + ], + [ + "games.loser_id", + "contests.loser_id" + ], + [ + "matches.loser_ioc", + "games.loser_ioc" + ], + [ + "matches.loser_ioc", + "contests.loser_ioc" + ], + [ + "games.loser_ioc", + "contests.loser_ioc" + ], + [ + "matches.loser_name", + "games.loser_name" + ], + [ + "matches.loser_name", + "contests.loser_name" + ], + [ + "games.loser_name", + "contests.loser_name" + ], + [ + "matches.loser_rank", + "games.loser_rank" + ], + [ + "matches.loser_rank", + "contests.loser_rank" + ], + [ + "games.loser_rank", + "contests.loser_rank" + ], + [ + "matches.loser_rank_points", + "games.loser_rank_points" + ], + [ + "matches.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "games.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "matches.loser_seed", + "games.loser_seed" + ], + [ + "matches.loser_seed", + "contests.loser_seed" + ], + [ + "games.loser_seed", + "contests.loser_seed" + ], + [ + "matches.match_num", + "games.match_num" + ], + [ + "matches.match_num", + "contests.match_num" + ], + [ + "games.match_num", + "contests.match_num" + ], + [ + "matches.minutes", + "games.minutes" + ], + [ + "matches.minutes", + "contests.minutes" + ], + [ + "games.minutes", + "contests.minutes" + ], + [ + "matches.round", + "games.round" + ], + [ + "matches.round", + "contests.round" + ], + [ + "games.round", + "contests.round" + ], + [ + "matches.score", + "games.score" + ], + [ + "matches.score", + "contests.score" + ], + [ + "games.score", + "contests.score" + ], + [ + "matches.surface", + "games.surface" + ], + [ + "matches.surface", + "contests.surface" + ], + [ + "games.surface", + "contests.surface" + ], + [ + "matches.tourney_date", + "games.tourney_date" + ], + [ + "matches.tourney_date", + "contests.tourney_date" + ], + [ + "games.tourney_date", + "contests.tourney_date" + ], + [ + "matches.tourney_id", + "games.tourney_id" + ], + [ + "matches.tourney_id", + "contests.tourney_id" + ], + [ + "games.tourney_id", + "contests.tourney_id" + ], + [ + "matches.tourney_level", + "games.tourney_level" + ], + [ + "matches.tourney_level", + "contests.tourney_level" + ], + [ + "games.tourney_level", + "contests.tourney_level" + ], + [ + "matches.tourney_name", + "games.tourney_name" + ], + [ + "matches.tourney_name", + "contests.tourney_name" + ], + [ + "games.tourney_name", + "contests.tourney_name" + ], + [ + "matches.winner_age", + "games.winner_age" + ], + [ + "matches.winner_age", + "contests.winner_age" + ], + [ + "games.winner_age", + "contests.winner_age" + ], + [ + "matches.winner_entry", + "games.winner_entry" + ], + [ + "matches.winner_entry", + "contests.winner_entry" + ], + [ + "games.winner_entry", + "contests.winner_entry" + ], + [ + "matches.winner_hand", + "games.winner_hand" + ], + [ + "matches.winner_hand", + "contests.winner_hand" + ], + [ + "games.winner_hand", + "contests.winner_hand" + ], + [ + "matches.winner_ht", + "games.winner_ht" + ], + [ + "matches.winner_ht", + "contests.winner_ht" + ], + [ + "games.winner_ht", + "contests.winner_ht" + ], + [ + "matches.winner_id", + "games.winner_id" + ], + [ + "matches.winner_id", + "contests.winner_id" + ], + [ + "games.winner_id", + "contests.winner_id" + ], + [ + "matches.winner_ioc", + "games.winner_ioc" + ], + [ + "matches.winner_ioc", + "contests.winner_ioc" + ], + [ + "games.winner_ioc", + "contests.winner_ioc" + ], + [ + "matches.winner_name", + "games.winner_name" + ], + [ + "matches.winner_name", + "contests.winner_name" + ], + [ + "games.winner_name", + "contests.winner_name" + ], + [ + "matches.winner_rank", + "games.winner_rank" + ], + [ + "matches.winner_rank", + "contests.winner_rank" + ], + [ + "games.winner_rank", + "contests.winner_rank" + ], + [ + "matches.winner_rank_points", + "games.winner_rank_points" + ], + [ + "matches.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "games.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "matches.winner_seed", + "games.winner_seed" + ], + [ + "matches.winner_seed", + "contests.winner_seed" + ], + [ + "games.winner_seed", + "contests.winner_seed" + ], + [ + "matches.year", + "games.year" + ], + [ + "matches.year", + "contests.year" + ], + [ + "games.year", + "contests.year" + ] + ] + }, + { + "question": "what is the #name of the winner# who has won the most matches, and how many #rank points# does this player have?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "games": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "contests": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ] + }, + "linking_list": [ + [ + "name of the winner", + "matches.winner_name" + ], + [ + "name of the winner", + "games.winner_name" + ], + [ + "name of the winner", + "contests.winner_name" + ], + [ + "rank points", + "matches.winner_rank_points" + ], + [ + "rank points", + "games.winner_rank_points" + ], + [ + "rank points", + "contests.winner_rank_points" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.winner_name" + ], + [ + 0, + "games.winner_name" + ], + [ + 0, + "contests.winner_name" + ], + [ + 1, + "matches.winner_rank_points" + ], + [ + 1, + "games.winner_rank_points" + ], + [ + 1, + "contests.winner_rank_points" + ] + ], + "linking_list_col": [ + [ + "matches.best_of", + "games.best_of" + ], + [ + "matches.best_of", + "contests.best_of" + ], + [ + "games.best_of", + "contests.best_of" + ], + [ + "matches.draw_size", + "games.draw_size" + ], + [ + "matches.draw_size", + "contests.draw_size" + ], + [ + "games.draw_size", + "contests.draw_size" + ], + [ + "matches.loser_age", + "games.loser_age" + ], + [ + "matches.loser_age", + "contests.loser_age" + ], + [ + "games.loser_age", + "contests.loser_age" + ], + [ + "matches.loser_entry", + "games.loser_entry" + ], + [ + "matches.loser_entry", + "contests.loser_entry" + ], + [ + "games.loser_entry", + "contests.loser_entry" + ], + [ + "matches.loser_hand", + "games.loser_hand" + ], + [ + "matches.loser_hand", + "contests.loser_hand" + ], + [ + "games.loser_hand", + "contests.loser_hand" + ], + [ + "matches.loser_ht", + "games.loser_ht" + ], + [ + "matches.loser_ht", + "contests.loser_ht" + ], + [ + "games.loser_ht", + "contests.loser_ht" + ], + [ + "matches.loser_id", + "games.loser_id" + ], + [ + "matches.loser_id", + "contests.loser_id" + ], + [ + "games.loser_id", + "contests.loser_id" + ], + [ + "matches.loser_ioc", + "games.loser_ioc" + ], + [ + "matches.loser_ioc", + "contests.loser_ioc" + ], + [ + "games.loser_ioc", + "contests.loser_ioc" + ], + [ + "matches.loser_name", + "games.loser_name" + ], + [ + "matches.loser_name", + "contests.loser_name" + ], + [ + "games.loser_name", + "contests.loser_name" + ], + [ + "matches.loser_rank", + "games.loser_rank" + ], + [ + "matches.loser_rank", + "contests.loser_rank" + ], + [ + "games.loser_rank", + "contests.loser_rank" + ], + [ + "matches.loser_rank_points", + "games.loser_rank_points" + ], + [ + "matches.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "games.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "matches.loser_seed", + "games.loser_seed" + ], + [ + "matches.loser_seed", + "contests.loser_seed" + ], + [ + "games.loser_seed", + "contests.loser_seed" + ], + [ + "matches.match_num", + "games.match_num" + ], + [ + "matches.match_num", + "contests.match_num" + ], + [ + "games.match_num", + "contests.match_num" + ], + [ + "matches.minutes", + "games.minutes" + ], + [ + "matches.minutes", + "contests.minutes" + ], + [ + "games.minutes", + "contests.minutes" + ], + [ + "matches.round", + "games.round" + ], + [ + "matches.round", + "contests.round" + ], + [ + "games.round", + "contests.round" + ], + [ + "matches.score", + "games.score" + ], + [ + "matches.score", + "contests.score" + ], + [ + "games.score", + "contests.score" + ], + [ + "matches.surface", + "games.surface" + ], + [ + "matches.surface", + "contests.surface" + ], + [ + "games.surface", + "contests.surface" + ], + [ + "matches.tourney_date", + "games.tourney_date" + ], + [ + "matches.tourney_date", + "contests.tourney_date" + ], + [ + "games.tourney_date", + "contests.tourney_date" + ], + [ + "matches.tourney_id", + "games.tourney_id" + ], + [ + "matches.tourney_id", + "contests.tourney_id" + ], + [ + "games.tourney_id", + "contests.tourney_id" + ], + [ + "matches.tourney_level", + "games.tourney_level" + ], + [ + "matches.tourney_level", + "contests.tourney_level" + ], + [ + "games.tourney_level", + "contests.tourney_level" + ], + [ + "matches.tourney_name", + "games.tourney_name" + ], + [ + "matches.tourney_name", + "contests.tourney_name" + ], + [ + "games.tourney_name", + "contests.tourney_name" + ], + [ + "matches.winner_age", + "games.winner_age" + ], + [ + "matches.winner_age", + "contests.winner_age" + ], + [ + "games.winner_age", + "contests.winner_age" + ], + [ + "matches.winner_entry", + "games.winner_entry" + ], + [ + "matches.winner_entry", + "contests.winner_entry" + ], + [ + "games.winner_entry", + "contests.winner_entry" + ], + [ + "matches.winner_hand", + "games.winner_hand" + ], + [ + "matches.winner_hand", + "contests.winner_hand" + ], + [ + "games.winner_hand", + "contests.winner_hand" + ], + [ + "matches.winner_ht", + "games.winner_ht" + ], + [ + "matches.winner_ht", + "contests.winner_ht" + ], + [ + "games.winner_ht", + "contests.winner_ht" + ], + [ + "matches.winner_id", + "games.winner_id" + ], + [ + "matches.winner_id", + "contests.winner_id" + ], + [ + "games.winner_id", + "contests.winner_id" + ], + [ + "matches.winner_ioc", + "games.winner_ioc" + ], + [ + "matches.winner_ioc", + "contests.winner_ioc" + ], + [ + "games.winner_ioc", + "contests.winner_ioc" + ], + [ + "matches.winner_name", + "games.winner_name" + ], + [ + "matches.winner_name", + "contests.winner_name" + ], + [ + "games.winner_name", + "contests.winner_name" + ], + [ + "matches.winner_rank", + "games.winner_rank" + ], + [ + "matches.winner_rank", + "contests.winner_rank" + ], + [ + "games.winner_rank", + "contests.winner_rank" + ], + [ + "matches.winner_rank_points", + "games.winner_rank_points" + ], + [ + "matches.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "games.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "matches.winner_seed", + "games.winner_seed" + ], + [ + "matches.winner_seed", + "contests.winner_seed" + ], + [ + "games.winner_seed", + "contests.winner_seed" + ], + [ + "matches.year", + "games.year" + ], + [ + "matches.year", + "contests.year" + ], + [ + "games.year", + "contests.year" + ] + ] + }, + { + "question": "find the #name of the winner# who has the #highest rank points# and participated in the #australian open tourney# .", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "games": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "contests": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ] + }, + "linking_list": [ + [ + "name of the winner", + "matches.winner_name" + ], + [ + "name of the winner", + "games.winner_name" + ], + [ + "name of the winner", + "contests.winner_name" + ], + [ + "highest rank points", + "matches.winner_rank_points" + ], + [ + "highest rank points", + "games.winner_rank_points" + ], + [ + "highest rank points", + "contests.winner_rank_points" + ], + [ + "Australian Open tourney", + "matches.tourney_name" + ], + [ + "Australian Open tourney", + "games.tourney_name" + ], + [ + "Australian Open tourney", + "contests.tourney_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.winner_name" + ], + [ + 0, + "games.winner_name" + ], + [ + 0, + "contests.winner_name" + ], + [ + 1, + "matches.winner_rank_points" + ], + [ + 1, + "games.winner_rank_points" + ], + [ + 1, + "contests.winner_rank_points" + ], + [ + 2, + "matches.tourney_name" + ], + [ + 2, + "games.tourney_name" + ], + [ + 2, + "contests.tourney_name" + ] + ], + "linking_list_col": [ + [ + "matches.best_of", + "games.best_of" + ], + [ + "matches.best_of", + "contests.best_of" + ], + [ + "games.best_of", + "contests.best_of" + ], + [ + "matches.draw_size", + "games.draw_size" + ], + [ + "matches.draw_size", + "contests.draw_size" + ], + [ + "games.draw_size", + "contests.draw_size" + ], + [ + "matches.loser_age", + "games.loser_age" + ], + [ + "matches.loser_age", + "contests.loser_age" + ], + [ + "games.loser_age", + "contests.loser_age" + ], + [ + "matches.loser_entry", + "games.loser_entry" + ], + [ + "matches.loser_entry", + "contests.loser_entry" + ], + [ + "games.loser_entry", + "contests.loser_entry" + ], + [ + "matches.loser_hand", + "games.loser_hand" + ], + [ + "matches.loser_hand", + "contests.loser_hand" + ], + [ + "games.loser_hand", + "contests.loser_hand" + ], + [ + "matches.loser_ht", + "games.loser_ht" + ], + [ + "matches.loser_ht", + "contests.loser_ht" + ], + [ + "games.loser_ht", + "contests.loser_ht" + ], + [ + "matches.loser_id", + "games.loser_id" + ], + [ + "matches.loser_id", + "contests.loser_id" + ], + [ + "games.loser_id", + "contests.loser_id" + ], + [ + "matches.loser_ioc", + "games.loser_ioc" + ], + [ + "matches.loser_ioc", + "contests.loser_ioc" + ], + [ + "games.loser_ioc", + "contests.loser_ioc" + ], + [ + "matches.loser_name", + "games.loser_name" + ], + [ + "matches.loser_name", + "contests.loser_name" + ], + [ + "games.loser_name", + "contests.loser_name" + ], + [ + "matches.loser_rank", + "games.loser_rank" + ], + [ + "matches.loser_rank", + "contests.loser_rank" + ], + [ + "games.loser_rank", + "contests.loser_rank" + ], + [ + "matches.loser_rank_points", + "games.loser_rank_points" + ], + [ + "matches.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "games.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "matches.loser_seed", + "games.loser_seed" + ], + [ + "matches.loser_seed", + "contests.loser_seed" + ], + [ + "games.loser_seed", + "contests.loser_seed" + ], + [ + "matches.match_num", + "games.match_num" + ], + [ + "matches.match_num", + "contests.match_num" + ], + [ + "games.match_num", + "contests.match_num" + ], + [ + "matches.minutes", + "games.minutes" + ], + [ + "matches.minutes", + "contests.minutes" + ], + [ + "games.minutes", + "contests.minutes" + ], + [ + "matches.round", + "games.round" + ], + [ + "matches.round", + "contests.round" + ], + [ + "games.round", + "contests.round" + ], + [ + "matches.score", + "games.score" + ], + [ + "matches.score", + "contests.score" + ], + [ + "games.score", + "contests.score" + ], + [ + "matches.surface", + "games.surface" + ], + [ + "matches.surface", + "contests.surface" + ], + [ + "games.surface", + "contests.surface" + ], + [ + "matches.tourney_date", + "games.tourney_date" + ], + [ + "matches.tourney_date", + "contests.tourney_date" + ], + [ + "games.tourney_date", + "contests.tourney_date" + ], + [ + "matches.tourney_id", + "games.tourney_id" + ], + [ + "matches.tourney_id", + "contests.tourney_id" + ], + [ + "games.tourney_id", + "contests.tourney_id" + ], + [ + "matches.tourney_level", + "games.tourney_level" + ], + [ + "matches.tourney_level", + "contests.tourney_level" + ], + [ + "games.tourney_level", + "contests.tourney_level" + ], + [ + "matches.tourney_name", + "games.tourney_name" + ], + [ + "matches.tourney_name", + "contests.tourney_name" + ], + [ + "games.tourney_name", + "contests.tourney_name" + ], + [ + "matches.winner_age", + "games.winner_age" + ], + [ + "matches.winner_age", + "contests.winner_age" + ], + [ + "games.winner_age", + "contests.winner_age" + ], + [ + "matches.winner_entry", + "games.winner_entry" + ], + [ + "matches.winner_entry", + "contests.winner_entry" + ], + [ + "games.winner_entry", + "contests.winner_entry" + ], + [ + "matches.winner_hand", + "games.winner_hand" + ], + [ + "matches.winner_hand", + "contests.winner_hand" + ], + [ + "games.winner_hand", + "contests.winner_hand" + ], + [ + "matches.winner_ht", + "games.winner_ht" + ], + [ + "matches.winner_ht", + "contests.winner_ht" + ], + [ + "games.winner_ht", + "contests.winner_ht" + ], + [ + "matches.winner_id", + "games.winner_id" + ], + [ + "matches.winner_id", + "contests.winner_id" + ], + [ + "games.winner_id", + "contests.winner_id" + ], + [ + "matches.winner_ioc", + "games.winner_ioc" + ], + [ + "matches.winner_ioc", + "contests.winner_ioc" + ], + [ + "games.winner_ioc", + "contests.winner_ioc" + ], + [ + "matches.winner_name", + "games.winner_name" + ], + [ + "matches.winner_name", + "contests.winner_name" + ], + [ + "games.winner_name", + "contests.winner_name" + ], + [ + "matches.winner_rank", + "games.winner_rank" + ], + [ + "matches.winner_rank", + "contests.winner_rank" + ], + [ + "games.winner_rank", + "contests.winner_rank" + ], + [ + "matches.winner_rank_points", + "games.winner_rank_points" + ], + [ + "matches.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "games.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "matches.winner_seed", + "games.winner_seed" + ], + [ + "matches.winner_seed", + "contests.winner_seed" + ], + [ + "games.winner_seed", + "contests.winner_seed" + ], + [ + "matches.year", + "games.year" + ], + [ + "matches.year", + "contests.year" + ], + [ + "games.year", + "contests.year" + ] + ] + }, + { + "question": "what is the #name of the winner with the most rank points# who participated in the australian open tournament?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "games": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "contests": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ] + }, + "linking_list": [ + [ + "name of the winner with the most rank points", + "matches.winner_name" + ], + [ + "name of the winner with the most rank points", + "games.winner_name" + ], + [ + "name of the winner with the most rank points", + "contests.winner_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.winner_name" + ], + [ + 0, + "games.winner_name" + ], + [ + 0, + "contests.winner_name" + ] + ], + "linking_list_col": [ + [ + "matches.best_of", + "games.best_of" + ], + [ + "matches.best_of", + "contests.best_of" + ], + [ + "games.best_of", + "contests.best_of" + ], + [ + "matches.draw_size", + "games.draw_size" + ], + [ + "matches.draw_size", + "contests.draw_size" + ], + [ + "games.draw_size", + "contests.draw_size" + ], + [ + "matches.loser_age", + "games.loser_age" + ], + [ + "matches.loser_age", + "contests.loser_age" + ], + [ + "games.loser_age", + "contests.loser_age" + ], + [ + "matches.loser_entry", + "games.loser_entry" + ], + [ + "matches.loser_entry", + "contests.loser_entry" + ], + [ + "games.loser_entry", + "contests.loser_entry" + ], + [ + "matches.loser_hand", + "games.loser_hand" + ], + [ + "matches.loser_hand", + "contests.loser_hand" + ], + [ + "games.loser_hand", + "contests.loser_hand" + ], + [ + "matches.loser_ht", + "games.loser_ht" + ], + [ + "matches.loser_ht", + "contests.loser_ht" + ], + [ + "games.loser_ht", + "contests.loser_ht" + ], + [ + "matches.loser_id", + "games.loser_id" + ], + [ + "matches.loser_id", + "contests.loser_id" + ], + [ + "games.loser_id", + "contests.loser_id" + ], + [ + "matches.loser_ioc", + "games.loser_ioc" + ], + [ + "matches.loser_ioc", + "contests.loser_ioc" + ], + [ + "games.loser_ioc", + "contests.loser_ioc" + ], + [ + "matches.loser_name", + "games.loser_name" + ], + [ + "matches.loser_name", + "contests.loser_name" + ], + [ + "games.loser_name", + "contests.loser_name" + ], + [ + "matches.loser_rank", + "games.loser_rank" + ], + [ + "matches.loser_rank", + "contests.loser_rank" + ], + [ + "games.loser_rank", + "contests.loser_rank" + ], + [ + "matches.loser_rank_points", + "games.loser_rank_points" + ], + [ + "matches.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "games.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "matches.loser_seed", + "games.loser_seed" + ], + [ + "matches.loser_seed", + "contests.loser_seed" + ], + [ + "games.loser_seed", + "contests.loser_seed" + ], + [ + "matches.match_num", + "games.match_num" + ], + [ + "matches.match_num", + "contests.match_num" + ], + [ + "games.match_num", + "contests.match_num" + ], + [ + "matches.minutes", + "games.minutes" + ], + [ + "matches.minutes", + "contests.minutes" + ], + [ + "games.minutes", + "contests.minutes" + ], + [ + "matches.round", + "games.round" + ], + [ + "matches.round", + "contests.round" + ], + [ + "games.round", + "contests.round" + ], + [ + "matches.score", + "games.score" + ], + [ + "matches.score", + "contests.score" + ], + [ + "games.score", + "contests.score" + ], + [ + "matches.surface", + "games.surface" + ], + [ + "matches.surface", + "contests.surface" + ], + [ + "games.surface", + "contests.surface" + ], + [ + "matches.tourney_date", + "games.tourney_date" + ], + [ + "matches.tourney_date", + "contests.tourney_date" + ], + [ + "games.tourney_date", + "contests.tourney_date" + ], + [ + "matches.tourney_id", + "games.tourney_id" + ], + [ + "matches.tourney_id", + "contests.tourney_id" + ], + [ + "games.tourney_id", + "contests.tourney_id" + ], + [ + "matches.tourney_level", + "games.tourney_level" + ], + [ + "matches.tourney_level", + "contests.tourney_level" + ], + [ + "games.tourney_level", + "contests.tourney_level" + ], + [ + "matches.tourney_name", + "games.tourney_name" + ], + [ + "matches.tourney_name", + "contests.tourney_name" + ], + [ + "games.tourney_name", + "contests.tourney_name" + ], + [ + "matches.winner_age", + "games.winner_age" + ], + [ + "matches.winner_age", + "contests.winner_age" + ], + [ + "games.winner_age", + "contests.winner_age" + ], + [ + "matches.winner_entry", + "games.winner_entry" + ], + [ + "matches.winner_entry", + "contests.winner_entry" + ], + [ + "games.winner_entry", + "contests.winner_entry" + ], + [ + "matches.winner_hand", + "games.winner_hand" + ], + [ + "matches.winner_hand", + "contests.winner_hand" + ], + [ + "games.winner_hand", + "contests.winner_hand" + ], + [ + "matches.winner_ht", + "games.winner_ht" + ], + [ + "matches.winner_ht", + "contests.winner_ht" + ], + [ + "games.winner_ht", + "contests.winner_ht" + ], + [ + "matches.winner_id", + "games.winner_id" + ], + [ + "matches.winner_id", + "contests.winner_id" + ], + [ + "games.winner_id", + "contests.winner_id" + ], + [ + "matches.winner_ioc", + "games.winner_ioc" + ], + [ + "matches.winner_ioc", + "contests.winner_ioc" + ], + [ + "games.winner_ioc", + "contests.winner_ioc" + ], + [ + "matches.winner_name", + "games.winner_name" + ], + [ + "matches.winner_name", + "contests.winner_name" + ], + [ + "games.winner_name", + "contests.winner_name" + ], + [ + "matches.winner_rank", + "games.winner_rank" + ], + [ + "matches.winner_rank", + "contests.winner_rank" + ], + [ + "games.winner_rank", + "contests.winner_rank" + ], + [ + "matches.winner_rank_points", + "games.winner_rank_points" + ], + [ + "matches.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "games.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "matches.winner_seed", + "games.winner_seed" + ], + [ + "matches.winner_seed", + "contests.winner_seed" + ], + [ + "games.winner_seed", + "contests.winner_seed" + ], + [ + "matches.year", + "games.year" + ], + [ + "matches.year", + "contests.year" + ], + [ + "games.year", + "contests.year" + ] + ] + }, + { + "question": "find the #names of loser# and winner who played in the match with greatest #number of minutes# .", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "games": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "contests": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ] + }, + "linking_list": [ + [ + "names of loser", + "matches.loser_name" + ], + [ + "names of loser", + "games.loser_name" + ], + [ + "names of loser", + "contests.loser_name" + ], + [ + "number of minutes", + "matches.minutes" + ], + [ + "number of minutes", + "games.minutes" + ], + [ + "number of minutes", + "contests.minutes" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.loser_name" + ], + [ + 0, + "games.loser_name" + ], + [ + 0, + "contests.loser_name" + ], + [ + 1, + "matches.minutes" + ], + [ + 1, + "games.minutes" + ], + [ + 1, + "contests.minutes" + ] + ], + "linking_list_col": [ + [ + "matches.best_of", + "games.best_of" + ], + [ + "matches.best_of", + "contests.best_of" + ], + [ + "games.best_of", + "contests.best_of" + ], + [ + "matches.draw_size", + "games.draw_size" + ], + [ + "matches.draw_size", + "contests.draw_size" + ], + [ + "games.draw_size", + "contests.draw_size" + ], + [ + "matches.loser_age", + "games.loser_age" + ], + [ + "matches.loser_age", + "contests.loser_age" + ], + [ + "games.loser_age", + "contests.loser_age" + ], + [ + "matches.loser_entry", + "games.loser_entry" + ], + [ + "matches.loser_entry", + "contests.loser_entry" + ], + [ + "games.loser_entry", + "contests.loser_entry" + ], + [ + "matches.loser_hand", + "games.loser_hand" + ], + [ + "matches.loser_hand", + "contests.loser_hand" + ], + [ + "games.loser_hand", + "contests.loser_hand" + ], + [ + "matches.loser_ht", + "games.loser_ht" + ], + [ + "matches.loser_ht", + "contests.loser_ht" + ], + [ + "games.loser_ht", + "contests.loser_ht" + ], + [ + "matches.loser_id", + "games.loser_id" + ], + [ + "matches.loser_id", + "contests.loser_id" + ], + [ + "games.loser_id", + "contests.loser_id" + ], + [ + "matches.loser_ioc", + "games.loser_ioc" + ], + [ + "matches.loser_ioc", + "contests.loser_ioc" + ], + [ + "games.loser_ioc", + "contests.loser_ioc" + ], + [ + "matches.loser_name", + "games.loser_name" + ], + [ + "matches.loser_name", + "contests.loser_name" + ], + [ + "games.loser_name", + "contests.loser_name" + ], + [ + "matches.loser_rank", + "games.loser_rank" + ], + [ + "matches.loser_rank", + "contests.loser_rank" + ], + [ + "games.loser_rank", + "contests.loser_rank" + ], + [ + "matches.loser_rank_points", + "games.loser_rank_points" + ], + [ + "matches.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "games.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "matches.loser_seed", + "games.loser_seed" + ], + [ + "matches.loser_seed", + "contests.loser_seed" + ], + [ + "games.loser_seed", + "contests.loser_seed" + ], + [ + "matches.match_num", + "games.match_num" + ], + [ + "matches.match_num", + "contests.match_num" + ], + [ + "games.match_num", + "contests.match_num" + ], + [ + "matches.minutes", + "games.minutes" + ], + [ + "matches.minutes", + "contests.minutes" + ], + [ + "games.minutes", + "contests.minutes" + ], + [ + "matches.round", + "games.round" + ], + [ + "matches.round", + "contests.round" + ], + [ + "games.round", + "contests.round" + ], + [ + "matches.score", + "games.score" + ], + [ + "matches.score", + "contests.score" + ], + [ + "games.score", + "contests.score" + ], + [ + "matches.surface", + "games.surface" + ], + [ + "matches.surface", + "contests.surface" + ], + [ + "games.surface", + "contests.surface" + ], + [ + "matches.tourney_date", + "games.tourney_date" + ], + [ + "matches.tourney_date", + "contests.tourney_date" + ], + [ + "games.tourney_date", + "contests.tourney_date" + ], + [ + "matches.tourney_id", + "games.tourney_id" + ], + [ + "matches.tourney_id", + "contests.tourney_id" + ], + [ + "games.tourney_id", + "contests.tourney_id" + ], + [ + "matches.tourney_level", + "games.tourney_level" + ], + [ + "matches.tourney_level", + "contests.tourney_level" + ], + [ + "games.tourney_level", + "contests.tourney_level" + ], + [ + "matches.tourney_name", + "games.tourney_name" + ], + [ + "matches.tourney_name", + "contests.tourney_name" + ], + [ + "games.tourney_name", + "contests.tourney_name" + ], + [ + "matches.winner_age", + "games.winner_age" + ], + [ + "matches.winner_age", + "contests.winner_age" + ], + [ + "games.winner_age", + "contests.winner_age" + ], + [ + "matches.winner_entry", + "games.winner_entry" + ], + [ + "matches.winner_entry", + "contests.winner_entry" + ], + [ + "games.winner_entry", + "contests.winner_entry" + ], + [ + "matches.winner_hand", + "games.winner_hand" + ], + [ + "matches.winner_hand", + "contests.winner_hand" + ], + [ + "games.winner_hand", + "contests.winner_hand" + ], + [ + "matches.winner_ht", + "games.winner_ht" + ], + [ + "matches.winner_ht", + "contests.winner_ht" + ], + [ + "games.winner_ht", + "contests.winner_ht" + ], + [ + "matches.winner_id", + "games.winner_id" + ], + [ + "matches.winner_id", + "contests.winner_id" + ], + [ + "games.winner_id", + "contests.winner_id" + ], + [ + "matches.winner_ioc", + "games.winner_ioc" + ], + [ + "matches.winner_ioc", + "contests.winner_ioc" + ], + [ + "games.winner_ioc", + "contests.winner_ioc" + ], + [ + "matches.winner_name", + "games.winner_name" + ], + [ + "matches.winner_name", + "contests.winner_name" + ], + [ + "games.winner_name", + "contests.winner_name" + ], + [ + "matches.winner_rank", + "games.winner_rank" + ], + [ + "matches.winner_rank", + "contests.winner_rank" + ], + [ + "games.winner_rank", + "contests.winner_rank" + ], + [ + "matches.winner_rank_points", + "games.winner_rank_points" + ], + [ + "matches.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "games.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "matches.winner_seed", + "games.winner_seed" + ], + [ + "matches.winner_seed", + "contests.winner_seed" + ], + [ + "games.winner_seed", + "contests.winner_seed" + ], + [ + "matches.year", + "games.year" + ], + [ + "matches.year", + "contests.year" + ], + [ + "games.year", + "contests.year" + ] + ] + }, + { + "question": "what are the #names of the winner# and #loser# who played in the longest match?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "games": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "contests": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ] + }, + "linking_list": [ + [ + "names of the winner", + "matches.winner_name" + ], + [ + "names of the winner", + "games.winner_name" + ], + [ + "names of the winner", + "contests.winner_name" + ], + [ + "loser", + "matches.loser_name" + ], + [ + "loser", + "games.loser_name" + ], + [ + "loser", + "contests.loser_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.winner_name" + ], + [ + 0, + "games.winner_name" + ], + [ + 0, + "contests.winner_name" + ], + [ + 1, + "matches.loser_name" + ], + [ + 1, + "games.loser_name" + ], + [ + 1, + "contests.loser_name" + ] + ], + "linking_list_col": [ + [ + "matches.best_of", + "games.best_of" + ], + [ + "matches.best_of", + "contests.best_of" + ], + [ + "games.best_of", + "contests.best_of" + ], + [ + "matches.draw_size", + "games.draw_size" + ], + [ + "matches.draw_size", + "contests.draw_size" + ], + [ + "games.draw_size", + "contests.draw_size" + ], + [ + "matches.loser_age", + "games.loser_age" + ], + [ + "matches.loser_age", + "contests.loser_age" + ], + [ + "games.loser_age", + "contests.loser_age" + ], + [ + "matches.loser_entry", + "games.loser_entry" + ], + [ + "matches.loser_entry", + "contests.loser_entry" + ], + [ + "games.loser_entry", + "contests.loser_entry" + ], + [ + "matches.loser_hand", + "games.loser_hand" + ], + [ + "matches.loser_hand", + "contests.loser_hand" + ], + [ + "games.loser_hand", + "contests.loser_hand" + ], + [ + "matches.loser_ht", + "games.loser_ht" + ], + [ + "matches.loser_ht", + "contests.loser_ht" + ], + [ + "games.loser_ht", + "contests.loser_ht" + ], + [ + "matches.loser_id", + "games.loser_id" + ], + [ + "matches.loser_id", + "contests.loser_id" + ], + [ + "games.loser_id", + "contests.loser_id" + ], + [ + "matches.loser_ioc", + "games.loser_ioc" + ], + [ + "matches.loser_ioc", + "contests.loser_ioc" + ], + [ + "games.loser_ioc", + "contests.loser_ioc" + ], + [ + "matches.loser_name", + "games.loser_name" + ], + [ + "matches.loser_name", + "contests.loser_name" + ], + [ + "games.loser_name", + "contests.loser_name" + ], + [ + "matches.loser_rank", + "games.loser_rank" + ], + [ + "matches.loser_rank", + "contests.loser_rank" + ], + [ + "games.loser_rank", + "contests.loser_rank" + ], + [ + "matches.loser_rank_points", + "games.loser_rank_points" + ], + [ + "matches.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "games.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "matches.loser_seed", + "games.loser_seed" + ], + [ + "matches.loser_seed", + "contests.loser_seed" + ], + [ + "games.loser_seed", + "contests.loser_seed" + ], + [ + "matches.match_num", + "games.match_num" + ], + [ + "matches.match_num", + "contests.match_num" + ], + [ + "games.match_num", + "contests.match_num" + ], + [ + "matches.minutes", + "games.minutes" + ], + [ + "matches.minutes", + "contests.minutes" + ], + [ + "games.minutes", + "contests.minutes" + ], + [ + "matches.round", + "games.round" + ], + [ + "matches.round", + "contests.round" + ], + [ + "games.round", + "contests.round" + ], + [ + "matches.score", + "games.score" + ], + [ + "matches.score", + "contests.score" + ], + [ + "games.score", + "contests.score" + ], + [ + "matches.surface", + "games.surface" + ], + [ + "matches.surface", + "contests.surface" + ], + [ + "games.surface", + "contests.surface" + ], + [ + "matches.tourney_date", + "games.tourney_date" + ], + [ + "matches.tourney_date", + "contests.tourney_date" + ], + [ + "games.tourney_date", + "contests.tourney_date" + ], + [ + "matches.tourney_id", + "games.tourney_id" + ], + [ + "matches.tourney_id", + "contests.tourney_id" + ], + [ + "games.tourney_id", + "contests.tourney_id" + ], + [ + "matches.tourney_level", + "games.tourney_level" + ], + [ + "matches.tourney_level", + "contests.tourney_level" + ], + [ + "games.tourney_level", + "contests.tourney_level" + ], + [ + "matches.tourney_name", + "games.tourney_name" + ], + [ + "matches.tourney_name", + "contests.tourney_name" + ], + [ + "games.tourney_name", + "contests.tourney_name" + ], + [ + "matches.winner_age", + "games.winner_age" + ], + [ + "matches.winner_age", + "contests.winner_age" + ], + [ + "games.winner_age", + "contests.winner_age" + ], + [ + "matches.winner_entry", + "games.winner_entry" + ], + [ + "matches.winner_entry", + "contests.winner_entry" + ], + [ + "games.winner_entry", + "contests.winner_entry" + ], + [ + "matches.winner_hand", + "games.winner_hand" + ], + [ + "matches.winner_hand", + "contests.winner_hand" + ], + [ + "games.winner_hand", + "contests.winner_hand" + ], + [ + "matches.winner_ht", + "games.winner_ht" + ], + [ + "matches.winner_ht", + "contests.winner_ht" + ], + [ + "games.winner_ht", + "contests.winner_ht" + ], + [ + "matches.winner_id", + "games.winner_id" + ], + [ + "matches.winner_id", + "contests.winner_id" + ], + [ + "games.winner_id", + "contests.winner_id" + ], + [ + "matches.winner_ioc", + "games.winner_ioc" + ], + [ + "matches.winner_ioc", + "contests.winner_ioc" + ], + [ + "games.winner_ioc", + "contests.winner_ioc" + ], + [ + "matches.winner_name", + "games.winner_name" + ], + [ + "matches.winner_name", + "contests.winner_name" + ], + [ + "games.winner_name", + "contests.winner_name" + ], + [ + "matches.winner_rank", + "games.winner_rank" + ], + [ + "matches.winner_rank", + "contests.winner_rank" + ], + [ + "games.winner_rank", + "contests.winner_rank" + ], + [ + "matches.winner_rank_points", + "games.winner_rank_points" + ], + [ + "matches.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "games.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "matches.winner_seed", + "games.winner_seed" + ], + [ + "matches.winner_seed", + "contests.winner_seed" + ], + [ + "games.winner_seed", + "contests.winner_seed" + ], + [ + "matches.year", + "games.year" + ], + [ + "matches.year", + "contests.year" + ], + [ + "games.year", + "contests.year" + ] + ] + }, + { + "question": "find the #average ranking for each player# and their #first name# .", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "standings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "leaderboard": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "average ranking for each player", + "rankings.ranking" + ], + [ + "average ranking for each player", + "standings.ranking" + ], + [ + "average ranking for each player", + "leaderboard.ranking" + ], + [ + "first name", + "players.first_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "rankings.ranking" + ], + [ + 0, + "standings.ranking" + ], + [ + 0, + "leaderboard.ranking" + ], + [ + 1, + "players.first_name" + ] + ], + "linking_list_col": [ + [ + "rankings.ranking_date", + "standings.ranking_date" + ], + [ + "rankings.ranking_date", + "leaderboard.ranking_date" + ], + [ + "standings.ranking_date", + "leaderboard.ranking_date" + ], + [ + "rankings.ranking", + "standings.ranking" + ], + [ + "rankings.ranking", + "leaderboard.ranking" + ], + [ + "standings.ranking", + "leaderboard.ranking" + ], + [ + "rankings.player_id", + "standings.player_id" + ], + [ + "rankings.player_id", + "leaderboard.player_id" + ], + [ + "standings.player_id", + "leaderboard.player_id" + ], + [ + "rankings.ranking_points", + "standings.ranking_points" + ], + [ + "rankings.ranking_points", + "leaderboard.ranking_points" + ], + [ + "standings.ranking_points", + "leaderboard.ranking_points" + ], + [ + "rankings.tours", + "standings.tours" + ], + [ + "rankings.tours", + "leaderboard.tours" + ], + [ + "standings.tours", + "leaderboard.tours" + ] + ] + }, + { + "question": "find the total #ranking points for each player# and their #first name# .", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "standings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "leaderboard": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "ranking points for each player", + "rankings.ranking_points" + ], + [ + "ranking points for each player", + "standings.ranking_points" + ], + [ + "ranking points for each player", + "leaderboard.ranking_points" + ], + [ + "first name", + "players.first_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "rankings.ranking_points" + ], + [ + 0, + "standings.ranking_points" + ], + [ + 0, + "leaderboard.ranking_points" + ], + [ + 1, + "players.first_name" + ] + ], + "linking_list_col": [ + [ + "rankings.ranking_date", + "standings.ranking_date" + ], + [ + "rankings.ranking_date", + "leaderboard.ranking_date" + ], + [ + "standings.ranking_date", + "leaderboard.ranking_date" + ], + [ + "rankings.ranking", + "standings.ranking" + ], + [ + "rankings.ranking", + "leaderboard.ranking" + ], + [ + "standings.ranking", + "leaderboard.ranking" + ], + [ + "rankings.player_id", + "standings.player_id" + ], + [ + "rankings.player_id", + "leaderboard.player_id" + ], + [ + "standings.player_id", + "leaderboard.player_id" + ], + [ + "rankings.ranking_points", + "standings.ranking_points" + ], + [ + "rankings.ranking_points", + "leaderboard.ranking_points" + ], + [ + "standings.ranking_points", + "leaderboard.ranking_points" + ], + [ + "rankings.tours", + "standings.tours" + ], + [ + "rankings.tours", + "leaderboard.tours" + ], + [ + "standings.tours", + "leaderboard.tours" + ] + ] + }, + { + "question": "find the #number of players for each country# .", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "athletes": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "competitors": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ] + }, + "linking_list": [ + [ + "number of players for each country", + "players.player_id" + ], + [ + "number of players for each country", + "athletes.player_id" + ], + [ + "number of players for each country", + "competitors.player_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.player_id" + ], + [ + 0, + "athletes.player_id" + ], + [ + 0, + "competitors.player_id" + ] + ], + "linking_list_col": [ + [ + "players.player_id", + "athletes.player_id" + ], + [ + "players.player_id", + "competitors.player_id" + ], + [ + "athletes.player_id", + "competitors.player_id" + ], + [ + "players.first_name", + "athletes.first_name" + ], + [ + "players.first_name", + "competitors.first_name" + ], + [ + "athletes.first_name", + "competitors.first_name" + ], + [ + "players.last_name", + "athletes.last_name" + ], + [ + "players.last_name", + "competitors.last_name" + ], + [ + "athletes.last_name", + "competitors.last_name" + ], + [ + "players.hand", + "athletes.hand" + ], + [ + "players.hand", + "competitors.hand" + ], + [ + "athletes.hand", + "competitors.hand" + ], + [ + "players.birth_date", + "athletes.birth_date" + ], + [ + "players.birth_date", + "competitors.birth_date" + ], + [ + "athletes.birth_date", + "competitors.birth_date" + ], + [ + "players.country_code", + "athletes.country_code" + ], + [ + "players.country_code", + "competitors.country_code" + ], + [ + "athletes.country_code", + "competitors.country_code" + ] + ] + }, + { + "question": "find the #code of the country# where has the greatest number of players.", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "athletes": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "competitors": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ] + }, + "linking_list": [ + [ + "code of the country", + "players.country_code" + ], + [ + "code of the country", + "athletes.country_code" + ], + [ + "code of the country", + "competitors.country_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.country_code" + ], + [ + 0, + "athletes.country_code" + ], + [ + 0, + "competitors.country_code" + ] + ], + "linking_list_col": [ + [ + "players.player_id", + "athletes.player_id" + ], + [ + "players.player_id", + "competitors.player_id" + ], + [ + "athletes.player_id", + "competitors.player_id" + ], + [ + "players.first_name", + "athletes.first_name" + ], + [ + "players.first_name", + "competitors.first_name" + ], + [ + "athletes.first_name", + "competitors.first_name" + ], + [ + "players.last_name", + "athletes.last_name" + ], + [ + "players.last_name", + "competitors.last_name" + ], + [ + "athletes.last_name", + "competitors.last_name" + ], + [ + "players.hand", + "athletes.hand" + ], + [ + "players.hand", + "competitors.hand" + ], + [ + "athletes.hand", + "competitors.hand" + ], + [ + "players.birth_date", + "athletes.birth_date" + ], + [ + "players.birth_date", + "competitors.birth_date" + ], + [ + "athletes.birth_date", + "competitors.birth_date" + ], + [ + "players.country_code", + "athletes.country_code" + ], + [ + "players.country_code", + "competitors.country_code" + ], + [ + "athletes.country_code", + "competitors.country_code" + ] + ] + }, + { + "question": "what is the #code of the country# with the most players?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "athletes": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "competitors": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ] + }, + "linking_list": [ + [ + "code of the country", + "players.country_code" + ], + [ + "code of the country", + "athletes.country_code" + ], + [ + "code of the country", + "competitors.country_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.country_code" + ], + [ + 0, + "athletes.country_code" + ], + [ + 0, + "competitors.country_code" + ] + ], + "linking_list_col": [ + [ + "players.player_id", + "athletes.player_id" + ], + [ + "players.player_id", + "competitors.player_id" + ], + [ + "athletes.player_id", + "competitors.player_id" + ], + [ + "players.first_name", + "athletes.first_name" + ], + [ + "players.first_name", + "competitors.first_name" + ], + [ + "athletes.first_name", + "competitors.first_name" + ], + [ + "players.last_name", + "athletes.last_name" + ], + [ + "players.last_name", + "competitors.last_name" + ], + [ + "athletes.last_name", + "competitors.last_name" + ], + [ + "players.hand", + "athletes.hand" + ], + [ + "players.hand", + "competitors.hand" + ], + [ + "athletes.hand", + "competitors.hand" + ], + [ + "players.birth_date", + "athletes.birth_date" + ], + [ + "players.birth_date", + "competitors.birth_date" + ], + [ + "athletes.birth_date", + "competitors.birth_date" + ], + [ + "players.country_code", + "athletes.country_code" + ], + [ + "players.country_code", + "competitors.country_code" + ], + [ + "athletes.country_code", + "competitors.country_code" + ] + ] + }, + { + "question": "find the #codes of countries# that have more than 50 players.", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "athletes": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "competitors": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ] + }, + "linking_list": [ + [ + "codes of countries", + "players.country_code" + ], + [ + "codes of countries", + "athletes.country_code" + ], + [ + "codes of countries", + "competitors.country_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.country_code" + ], + [ + 0, + "athletes.country_code" + ], + [ + 0, + "competitors.country_code" + ] + ], + "linking_list_col": [ + [ + "players.player_id", + "athletes.player_id" + ], + [ + "players.player_id", + "competitors.player_id" + ], + [ + "athletes.player_id", + "competitors.player_id" + ], + [ + "players.first_name", + "athletes.first_name" + ], + [ + "players.first_name", + "competitors.first_name" + ], + [ + "athletes.first_name", + "competitors.first_name" + ], + [ + "players.last_name", + "athletes.last_name" + ], + [ + "players.last_name", + "competitors.last_name" + ], + [ + "athletes.last_name", + "competitors.last_name" + ], + [ + "players.hand", + "athletes.hand" + ], + [ + "players.hand", + "competitors.hand" + ], + [ + "athletes.hand", + "competitors.hand" + ], + [ + "players.birth_date", + "athletes.birth_date" + ], + [ + "players.birth_date", + "competitors.birth_date" + ], + [ + "athletes.birth_date", + "competitors.birth_date" + ], + [ + "players.country_code", + "athletes.country_code" + ], + [ + "players.country_code", + "competitors.country_code" + ], + [ + "athletes.country_code", + "competitors.country_code" + ] + ] + }, + { + "question": "what are the #codes of countries# with more than 50 players?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "athletes": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "competitors": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ] + }, + "linking_list": [ + [ + "codes of countries", + "players.country_code" + ], + [ + "codes of countries", + "athletes.country_code" + ], + [ + "codes of countries", + "competitors.country_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.country_code" + ], + [ + 0, + "athletes.country_code" + ], + [ + 0, + "competitors.country_code" + ] + ], + "linking_list_col": [ + [ + "players.player_id", + "athletes.player_id" + ], + [ + "players.player_id", + "competitors.player_id" + ], + [ + "athletes.player_id", + "competitors.player_id" + ], + [ + "players.first_name", + "athletes.first_name" + ], + [ + "players.first_name", + "competitors.first_name" + ], + [ + "athletes.first_name", + "competitors.first_name" + ], + [ + "players.last_name", + "athletes.last_name" + ], + [ + "players.last_name", + "competitors.last_name" + ], + [ + "athletes.last_name", + "competitors.last_name" + ], + [ + "players.hand", + "athletes.hand" + ], + [ + "players.hand", + "competitors.hand" + ], + [ + "athletes.hand", + "competitors.hand" + ], + [ + "players.birth_date", + "athletes.birth_date" + ], + [ + "players.birth_date", + "competitors.birth_date" + ], + [ + "athletes.birth_date", + "competitors.birth_date" + ], + [ + "players.country_code", + "athletes.country_code" + ], + [ + "players.country_code", + "competitors.country_code" + ], + [ + "athletes.country_code", + "competitors.country_code" + ] + ] + }, + { + "question": "find the #total number of tours for each ranking date# .", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "standings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "leaderboard": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "total number of tours for each ranking date", + "rankings.tours" + ], + [ + "total number of tours for each ranking date", + "standings.tours" + ], + [ + "total number of tours for each ranking date", + "leaderboard.tours" + ] + ], + "linking_list_idx": [ + [ + 0, + "rankings.tours" + ], + [ + 0, + "standings.tours" + ], + [ + 0, + "leaderboard.tours" + ] + ], + "linking_list_col": [ + [ + "rankings.ranking_date", + "standings.ranking_date" + ], + [ + "rankings.ranking_date", + "leaderboard.ranking_date" + ], + [ + "standings.ranking_date", + "leaderboard.ranking_date" + ], + [ + "rankings.ranking", + "standings.ranking" + ], + [ + "rankings.ranking", + "leaderboard.ranking" + ], + [ + "standings.ranking", + "leaderboard.ranking" + ], + [ + "rankings.player_id", + "standings.player_id" + ], + [ + "rankings.player_id", + "leaderboard.player_id" + ], + [ + "standings.player_id", + "leaderboard.player_id" + ], + [ + "rankings.ranking_points", + "standings.ranking_points" + ], + [ + "rankings.ranking_points", + "leaderboard.ranking_points" + ], + [ + "standings.ranking_points", + "leaderboard.ranking_points" + ], + [ + "rankings.tours", + "standings.tours" + ], + [ + "rankings.tours", + "leaderboard.tours" + ], + [ + "standings.tours", + "leaderboard.tours" + ] + ] + }, + { + "question": "how many #total tours# were there for each ranking date?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "standings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "leaderboard": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "total tours", + "rankings.tours" + ], + [ + "total tours", + "standings.tours" + ], + [ + "total tours", + "leaderboard.tours" + ] + ], + "linking_list_idx": [ + [ + 0, + "rankings.tours" + ], + [ + 0, + "standings.tours" + ], + [ + 0, + "leaderboard.tours" + ] + ], + "linking_list_col": [ + [ + "rankings.ranking_date", + "standings.ranking_date" + ], + [ + "rankings.ranking_date", + "leaderboard.ranking_date" + ], + [ + "standings.ranking_date", + "leaderboard.ranking_date" + ], + [ + "rankings.ranking", + "standings.ranking" + ], + [ + "rankings.ranking", + "leaderboard.ranking" + ], + [ + "standings.ranking", + "leaderboard.ranking" + ], + [ + "rankings.player_id", + "standings.player_id" + ], + [ + "rankings.player_id", + "leaderboard.player_id" + ], + [ + "standings.player_id", + "leaderboard.player_id" + ], + [ + "rankings.ranking_points", + "standings.ranking_points" + ], + [ + "rankings.ranking_points", + "leaderboard.ranking_points" + ], + [ + "standings.ranking_points", + "leaderboard.ranking_points" + ], + [ + "rankings.tours", + "standings.tours" + ], + [ + "rankings.tours", + "leaderboard.tours" + ], + [ + "standings.tours", + "leaderboard.tours" + ] + ] + }, + { + "question": "find the number of matches happened in each #year# .", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "games": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "contests": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ] + }, + "linking_list": [ + [ + "year", + "matches.year" + ], + [ + "year", + "games.year" + ], + [ + "year", + "contests.year" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.year" + ], + [ + 0, + "games.year" + ], + [ + 0, + "contests.year" + ] + ], + "linking_list_col": [ + [ + "matches.best_of", + "games.best_of" + ], + [ + "matches.best_of", + "contests.best_of" + ], + [ + "games.best_of", + "contests.best_of" + ], + [ + "matches.draw_size", + "games.draw_size" + ], + [ + "matches.draw_size", + "contests.draw_size" + ], + [ + "games.draw_size", + "contests.draw_size" + ], + [ + "matches.loser_age", + "games.loser_age" + ], + [ + "matches.loser_age", + "contests.loser_age" + ], + [ + "games.loser_age", + "contests.loser_age" + ], + [ + "matches.loser_entry", + "games.loser_entry" + ], + [ + "matches.loser_entry", + "contests.loser_entry" + ], + [ + "games.loser_entry", + "contests.loser_entry" + ], + [ + "matches.loser_hand", + "games.loser_hand" + ], + [ + "matches.loser_hand", + "contests.loser_hand" + ], + [ + "games.loser_hand", + "contests.loser_hand" + ], + [ + "matches.loser_ht", + "games.loser_ht" + ], + [ + "matches.loser_ht", + "contests.loser_ht" + ], + [ + "games.loser_ht", + "contests.loser_ht" + ], + [ + "matches.loser_id", + "games.loser_id" + ], + [ + "matches.loser_id", + "contests.loser_id" + ], + [ + "games.loser_id", + "contests.loser_id" + ], + [ + "matches.loser_ioc", + "games.loser_ioc" + ], + [ + "matches.loser_ioc", + "contests.loser_ioc" + ], + [ + "games.loser_ioc", + "contests.loser_ioc" + ], + [ + "matches.loser_name", + "games.loser_name" + ], + [ + "matches.loser_name", + "contests.loser_name" + ], + [ + "games.loser_name", + "contests.loser_name" + ], + [ + "matches.loser_rank", + "games.loser_rank" + ], + [ + "matches.loser_rank", + "contests.loser_rank" + ], + [ + "games.loser_rank", + "contests.loser_rank" + ], + [ + "matches.loser_rank_points", + "games.loser_rank_points" + ], + [ + "matches.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "games.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "matches.loser_seed", + "games.loser_seed" + ], + [ + "matches.loser_seed", + "contests.loser_seed" + ], + [ + "games.loser_seed", + "contests.loser_seed" + ], + [ + "matches.match_num", + "games.match_num" + ], + [ + "matches.match_num", + "contests.match_num" + ], + [ + "games.match_num", + "contests.match_num" + ], + [ + "matches.minutes", + "games.minutes" + ], + [ + "matches.minutes", + "contests.minutes" + ], + [ + "games.minutes", + "contests.minutes" + ], + [ + "matches.round", + "games.round" + ], + [ + "matches.round", + "contests.round" + ], + [ + "games.round", + "contests.round" + ], + [ + "matches.score", + "games.score" + ], + [ + "matches.score", + "contests.score" + ], + [ + "games.score", + "contests.score" + ], + [ + "matches.surface", + "games.surface" + ], + [ + "matches.surface", + "contests.surface" + ], + [ + "games.surface", + "contests.surface" + ], + [ + "matches.tourney_date", + "games.tourney_date" + ], + [ + "matches.tourney_date", + "contests.tourney_date" + ], + [ + "games.tourney_date", + "contests.tourney_date" + ], + [ + "matches.tourney_id", + "games.tourney_id" + ], + [ + "matches.tourney_id", + "contests.tourney_id" + ], + [ + "games.tourney_id", + "contests.tourney_id" + ], + [ + "matches.tourney_level", + "games.tourney_level" + ], + [ + "matches.tourney_level", + "contests.tourney_level" + ], + [ + "games.tourney_level", + "contests.tourney_level" + ], + [ + "matches.tourney_name", + "games.tourney_name" + ], + [ + "matches.tourney_name", + "contests.tourney_name" + ], + [ + "games.tourney_name", + "contests.tourney_name" + ], + [ + "matches.winner_age", + "games.winner_age" + ], + [ + "matches.winner_age", + "contests.winner_age" + ], + [ + "games.winner_age", + "contests.winner_age" + ], + [ + "matches.winner_entry", + "games.winner_entry" + ], + [ + "matches.winner_entry", + "contests.winner_entry" + ], + [ + "games.winner_entry", + "contests.winner_entry" + ], + [ + "matches.winner_hand", + "games.winner_hand" + ], + [ + "matches.winner_hand", + "contests.winner_hand" + ], + [ + "games.winner_hand", + "contests.winner_hand" + ], + [ + "matches.winner_ht", + "games.winner_ht" + ], + [ + "matches.winner_ht", + "contests.winner_ht" + ], + [ + "games.winner_ht", + "contests.winner_ht" + ], + [ + "matches.winner_id", + "games.winner_id" + ], + [ + "matches.winner_id", + "contests.winner_id" + ], + [ + "games.winner_id", + "contests.winner_id" + ], + [ + "matches.winner_ioc", + "games.winner_ioc" + ], + [ + "matches.winner_ioc", + "contests.winner_ioc" + ], + [ + "games.winner_ioc", + "contests.winner_ioc" + ], + [ + "matches.winner_name", + "games.winner_name" + ], + [ + "matches.winner_name", + "contests.winner_name" + ], + [ + "games.winner_name", + "contests.winner_name" + ], + [ + "matches.winner_rank", + "games.winner_rank" + ], + [ + "matches.winner_rank", + "contests.winner_rank" + ], + [ + "games.winner_rank", + "contests.winner_rank" + ], + [ + "matches.winner_rank_points", + "games.winner_rank_points" + ], + [ + "matches.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "games.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "matches.winner_seed", + "games.winner_seed" + ], + [ + "matches.winner_seed", + "contests.winner_seed" + ], + [ + "games.winner_seed", + "contests.winner_seed" + ], + [ + "matches.year", + "games.year" + ], + [ + "matches.year", + "contests.year" + ], + [ + "games.year", + "contests.year" + ] + ] + }, + { + "question": "find the #name# and #rank# of the 3 youngest winners across all matches.", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "games": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "contests": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ] + }, + "linking_list": [ + [ + "name", + "matches.winner_name" + ], + [ + "name", + "games.winner_name" + ], + [ + "name", + "contests.winner_name" + ], + [ + "rank", + "matches.winner_rank" + ], + [ + "rank", + "games.winner_rank" + ], + [ + "rank", + "contests.winner_rank" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.winner_name" + ], + [ + 0, + "games.winner_name" + ], + [ + 0, + "contests.winner_name" + ], + [ + 1, + "matches.winner_rank" + ], + [ + 1, + "games.winner_rank" + ], + [ + 1, + "contests.winner_rank" + ] + ], + "linking_list_col": [ + [ + "matches.best_of", + "games.best_of" + ], + [ + "matches.best_of", + "contests.best_of" + ], + [ + "games.best_of", + "contests.best_of" + ], + [ + "matches.draw_size", + "games.draw_size" + ], + [ + "matches.draw_size", + "contests.draw_size" + ], + [ + "games.draw_size", + "contests.draw_size" + ], + [ + "matches.loser_age", + "games.loser_age" + ], + [ + "matches.loser_age", + "contests.loser_age" + ], + [ + "games.loser_age", + "contests.loser_age" + ], + [ + "matches.loser_entry", + "games.loser_entry" + ], + [ + "matches.loser_entry", + "contests.loser_entry" + ], + [ + "games.loser_entry", + "contests.loser_entry" + ], + [ + "matches.loser_hand", + "games.loser_hand" + ], + [ + "matches.loser_hand", + "contests.loser_hand" + ], + [ + "games.loser_hand", + "contests.loser_hand" + ], + [ + "matches.loser_ht", + "games.loser_ht" + ], + [ + "matches.loser_ht", + "contests.loser_ht" + ], + [ + "games.loser_ht", + "contests.loser_ht" + ], + [ + "matches.loser_id", + "games.loser_id" + ], + [ + "matches.loser_id", + "contests.loser_id" + ], + [ + "games.loser_id", + "contests.loser_id" + ], + [ + "matches.loser_ioc", + "games.loser_ioc" + ], + [ + "matches.loser_ioc", + "contests.loser_ioc" + ], + [ + "games.loser_ioc", + "contests.loser_ioc" + ], + [ + "matches.loser_name", + "games.loser_name" + ], + [ + "matches.loser_name", + "contests.loser_name" + ], + [ + "games.loser_name", + "contests.loser_name" + ], + [ + "matches.loser_rank", + "games.loser_rank" + ], + [ + "matches.loser_rank", + "contests.loser_rank" + ], + [ + "games.loser_rank", + "contests.loser_rank" + ], + [ + "matches.loser_rank_points", + "games.loser_rank_points" + ], + [ + "matches.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "games.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "matches.loser_seed", + "games.loser_seed" + ], + [ + "matches.loser_seed", + "contests.loser_seed" + ], + [ + "games.loser_seed", + "contests.loser_seed" + ], + [ + "matches.match_num", + "games.match_num" + ], + [ + "matches.match_num", + "contests.match_num" + ], + [ + "games.match_num", + "contests.match_num" + ], + [ + "matches.minutes", + "games.minutes" + ], + [ + "matches.minutes", + "contests.minutes" + ], + [ + "games.minutes", + "contests.minutes" + ], + [ + "matches.round", + "games.round" + ], + [ + "matches.round", + "contests.round" + ], + [ + "games.round", + "contests.round" + ], + [ + "matches.score", + "games.score" + ], + [ + "matches.score", + "contests.score" + ], + [ + "games.score", + "contests.score" + ], + [ + "matches.surface", + "games.surface" + ], + [ + "matches.surface", + "contests.surface" + ], + [ + "games.surface", + "contests.surface" + ], + [ + "matches.tourney_date", + "games.tourney_date" + ], + [ + "matches.tourney_date", + "contests.tourney_date" + ], + [ + "games.tourney_date", + "contests.tourney_date" + ], + [ + "matches.tourney_id", + "games.tourney_id" + ], + [ + "matches.tourney_id", + "contests.tourney_id" + ], + [ + "games.tourney_id", + "contests.tourney_id" + ], + [ + "matches.tourney_level", + "games.tourney_level" + ], + [ + "matches.tourney_level", + "contests.tourney_level" + ], + [ + "games.tourney_level", + "contests.tourney_level" + ], + [ + "matches.tourney_name", + "games.tourney_name" + ], + [ + "matches.tourney_name", + "contests.tourney_name" + ], + [ + "games.tourney_name", + "contests.tourney_name" + ], + [ + "matches.winner_age", + "games.winner_age" + ], + [ + "matches.winner_age", + "contests.winner_age" + ], + [ + "games.winner_age", + "contests.winner_age" + ], + [ + "matches.winner_entry", + "games.winner_entry" + ], + [ + "matches.winner_entry", + "contests.winner_entry" + ], + [ + "games.winner_entry", + "contests.winner_entry" + ], + [ + "matches.winner_hand", + "games.winner_hand" + ], + [ + "matches.winner_hand", + "contests.winner_hand" + ], + [ + "games.winner_hand", + "contests.winner_hand" + ], + [ + "matches.winner_ht", + "games.winner_ht" + ], + [ + "matches.winner_ht", + "contests.winner_ht" + ], + [ + "games.winner_ht", + "contests.winner_ht" + ], + [ + "matches.winner_id", + "games.winner_id" + ], + [ + "matches.winner_id", + "contests.winner_id" + ], + [ + "games.winner_id", + "contests.winner_id" + ], + [ + "matches.winner_ioc", + "games.winner_ioc" + ], + [ + "matches.winner_ioc", + "contests.winner_ioc" + ], + [ + "games.winner_ioc", + "contests.winner_ioc" + ], + [ + "matches.winner_name", + "games.winner_name" + ], + [ + "matches.winner_name", + "contests.winner_name" + ], + [ + "games.winner_name", + "contests.winner_name" + ], + [ + "matches.winner_rank", + "games.winner_rank" + ], + [ + "matches.winner_rank", + "contests.winner_rank" + ], + [ + "games.winner_rank", + "contests.winner_rank" + ], + [ + "matches.winner_rank_points", + "games.winner_rank_points" + ], + [ + "matches.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "games.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "matches.winner_seed", + "games.winner_seed" + ], + [ + "matches.winner_seed", + "contests.winner_seed" + ], + [ + "games.winner_seed", + "contests.winner_seed" + ], + [ + "matches.year", + "games.year" + ], + [ + "matches.year", + "contests.year" + ], + [ + "games.year", + "contests.year" + ] + ] + }, + { + "question": "what are the #names# and #ranks# of the three #youngest winners# across all matches?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "games": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "contests": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ] + }, + "linking_list": [ + [ + "names", + "matches.winner_name" + ], + [ + "names", + "games.winner_name" + ], + [ + "names", + "contests.winner_name" + ], + [ + "ranks", + "matches.winner_rank" + ], + [ + "ranks", + "games.winner_rank" + ], + [ + "ranks", + "contests.winner_rank" + ], + [ + "youngest winners", + "matches.winner_age" + ], + [ + "youngest winners", + "games.winner_age" + ], + [ + "youngest winners", + "contests.winner_age" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.winner_name" + ], + [ + 0, + "games.winner_name" + ], + [ + 0, + "contests.winner_name" + ], + [ + 1, + "matches.winner_rank" + ], + [ + 1, + "games.winner_rank" + ], + [ + 1, + "contests.winner_rank" + ], + [ + 2, + "matches.winner_age" + ], + [ + 2, + "games.winner_age" + ], + [ + 2, + "contests.winner_age" + ] + ], + "linking_list_col": [ + [ + "matches.best_of", + "games.best_of" + ], + [ + "matches.best_of", + "contests.best_of" + ], + [ + "games.best_of", + "contests.best_of" + ], + [ + "matches.draw_size", + "games.draw_size" + ], + [ + "matches.draw_size", + "contests.draw_size" + ], + [ + "games.draw_size", + "contests.draw_size" + ], + [ + "matches.loser_age", + "games.loser_age" + ], + [ + "matches.loser_age", + "contests.loser_age" + ], + [ + "games.loser_age", + "contests.loser_age" + ], + [ + "matches.loser_entry", + "games.loser_entry" + ], + [ + "matches.loser_entry", + "contests.loser_entry" + ], + [ + "games.loser_entry", + "contests.loser_entry" + ], + [ + "matches.loser_hand", + "games.loser_hand" + ], + [ + "matches.loser_hand", + "contests.loser_hand" + ], + [ + "games.loser_hand", + "contests.loser_hand" + ], + [ + "matches.loser_ht", + "games.loser_ht" + ], + [ + "matches.loser_ht", + "contests.loser_ht" + ], + [ + "games.loser_ht", + "contests.loser_ht" + ], + [ + "matches.loser_id", + "games.loser_id" + ], + [ + "matches.loser_id", + "contests.loser_id" + ], + [ + "games.loser_id", + "contests.loser_id" + ], + [ + "matches.loser_ioc", + "games.loser_ioc" + ], + [ + "matches.loser_ioc", + "contests.loser_ioc" + ], + [ + "games.loser_ioc", + "contests.loser_ioc" + ], + [ + "matches.loser_name", + "games.loser_name" + ], + [ + "matches.loser_name", + "contests.loser_name" + ], + [ + "games.loser_name", + "contests.loser_name" + ], + [ + "matches.loser_rank", + "games.loser_rank" + ], + [ + "matches.loser_rank", + "contests.loser_rank" + ], + [ + "games.loser_rank", + "contests.loser_rank" + ], + [ + "matches.loser_rank_points", + "games.loser_rank_points" + ], + [ + "matches.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "games.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "matches.loser_seed", + "games.loser_seed" + ], + [ + "matches.loser_seed", + "contests.loser_seed" + ], + [ + "games.loser_seed", + "contests.loser_seed" + ], + [ + "matches.match_num", + "games.match_num" + ], + [ + "matches.match_num", + "contests.match_num" + ], + [ + "games.match_num", + "contests.match_num" + ], + [ + "matches.minutes", + "games.minutes" + ], + [ + "matches.minutes", + "contests.minutes" + ], + [ + "games.minutes", + "contests.minutes" + ], + [ + "matches.round", + "games.round" + ], + [ + "matches.round", + "contests.round" + ], + [ + "games.round", + "contests.round" + ], + [ + "matches.score", + "games.score" + ], + [ + "matches.score", + "contests.score" + ], + [ + "games.score", + "contests.score" + ], + [ + "matches.surface", + "games.surface" + ], + [ + "matches.surface", + "contests.surface" + ], + [ + "games.surface", + "contests.surface" + ], + [ + "matches.tourney_date", + "games.tourney_date" + ], + [ + "matches.tourney_date", + "contests.tourney_date" + ], + [ + "games.tourney_date", + "contests.tourney_date" + ], + [ + "matches.tourney_id", + "games.tourney_id" + ], + [ + "matches.tourney_id", + "contests.tourney_id" + ], + [ + "games.tourney_id", + "contests.tourney_id" + ], + [ + "matches.tourney_level", + "games.tourney_level" + ], + [ + "matches.tourney_level", + "contests.tourney_level" + ], + [ + "games.tourney_level", + "contests.tourney_level" + ], + [ + "matches.tourney_name", + "games.tourney_name" + ], + [ + "matches.tourney_name", + "contests.tourney_name" + ], + [ + "games.tourney_name", + "contests.tourney_name" + ], + [ + "matches.winner_age", + "games.winner_age" + ], + [ + "matches.winner_age", + "contests.winner_age" + ], + [ + "games.winner_age", + "contests.winner_age" + ], + [ + "matches.winner_entry", + "games.winner_entry" + ], + [ + "matches.winner_entry", + "contests.winner_entry" + ], + [ + "games.winner_entry", + "contests.winner_entry" + ], + [ + "matches.winner_hand", + "games.winner_hand" + ], + [ + "matches.winner_hand", + "contests.winner_hand" + ], + [ + "games.winner_hand", + "contests.winner_hand" + ], + [ + "matches.winner_ht", + "games.winner_ht" + ], + [ + "matches.winner_ht", + "contests.winner_ht" + ], + [ + "games.winner_ht", + "contests.winner_ht" + ], + [ + "matches.winner_id", + "games.winner_id" + ], + [ + "matches.winner_id", + "contests.winner_id" + ], + [ + "games.winner_id", + "contests.winner_id" + ], + [ + "matches.winner_ioc", + "games.winner_ioc" + ], + [ + "matches.winner_ioc", + "contests.winner_ioc" + ], + [ + "games.winner_ioc", + "contests.winner_ioc" + ], + [ + "matches.winner_name", + "games.winner_name" + ], + [ + "matches.winner_name", + "contests.winner_name" + ], + [ + "games.winner_name", + "contests.winner_name" + ], + [ + "matches.winner_rank", + "games.winner_rank" + ], + [ + "matches.winner_rank", + "contests.winner_rank" + ], + [ + "games.winner_rank", + "contests.winner_rank" + ], + [ + "matches.winner_rank_points", + "games.winner_rank_points" + ], + [ + "matches.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "games.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "matches.winner_seed", + "games.winner_seed" + ], + [ + "matches.winner_seed", + "contests.winner_seed" + ], + [ + "games.winner_seed", + "contests.winner_seed" + ], + [ + "matches.year", + "games.year" + ], + [ + "matches.year", + "contests.year" + ], + [ + "games.year", + "contests.year" + ] + ] + }, + { + "question": "how many different #winners# both participated in the #wta championships# and were left handed?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "games": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "contests": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ] + }, + "linking_list": [ + [ + "winners", + "matches.winner_name" + ], + [ + "winners", + "games.winner_name" + ], + [ + "winners", + "contests.winner_name" + ], + [ + "WTA Championships", + "matches.tourney_name" + ], + [ + "WTA Championships", + "games.tourney_name" + ], + [ + "WTA Championships", + "contests.tourney_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.winner_name" + ], + [ + 0, + "games.winner_name" + ], + [ + 0, + "contests.winner_name" + ], + [ + 1, + "matches.tourney_name" + ], + [ + 1, + "games.tourney_name" + ], + [ + 1, + "contests.tourney_name" + ] + ], + "linking_list_col": [ + [ + "matches.best_of", + "games.best_of" + ], + [ + "matches.best_of", + "contests.best_of" + ], + [ + "games.best_of", + "contests.best_of" + ], + [ + "matches.draw_size", + "games.draw_size" + ], + [ + "matches.draw_size", + "contests.draw_size" + ], + [ + "games.draw_size", + "contests.draw_size" + ], + [ + "matches.loser_age", + "games.loser_age" + ], + [ + "matches.loser_age", + "contests.loser_age" + ], + [ + "games.loser_age", + "contests.loser_age" + ], + [ + "matches.loser_entry", + "games.loser_entry" + ], + [ + "matches.loser_entry", + "contests.loser_entry" + ], + [ + "games.loser_entry", + "contests.loser_entry" + ], + [ + "matches.loser_hand", + "games.loser_hand" + ], + [ + "matches.loser_hand", + "contests.loser_hand" + ], + [ + "games.loser_hand", + "contests.loser_hand" + ], + [ + "matches.loser_ht", + "games.loser_ht" + ], + [ + "matches.loser_ht", + "contests.loser_ht" + ], + [ + "games.loser_ht", + "contests.loser_ht" + ], + [ + "matches.loser_id", + "games.loser_id" + ], + [ + "matches.loser_id", + "contests.loser_id" + ], + [ + "games.loser_id", + "contests.loser_id" + ], + [ + "matches.loser_ioc", + "games.loser_ioc" + ], + [ + "matches.loser_ioc", + "contests.loser_ioc" + ], + [ + "games.loser_ioc", + "contests.loser_ioc" + ], + [ + "matches.loser_name", + "games.loser_name" + ], + [ + "matches.loser_name", + "contests.loser_name" + ], + [ + "games.loser_name", + "contests.loser_name" + ], + [ + "matches.loser_rank", + "games.loser_rank" + ], + [ + "matches.loser_rank", + "contests.loser_rank" + ], + [ + "games.loser_rank", + "contests.loser_rank" + ], + [ + "matches.loser_rank_points", + "games.loser_rank_points" + ], + [ + "matches.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "games.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "matches.loser_seed", + "games.loser_seed" + ], + [ + "matches.loser_seed", + "contests.loser_seed" + ], + [ + "games.loser_seed", + "contests.loser_seed" + ], + [ + "matches.match_num", + "games.match_num" + ], + [ + "matches.match_num", + "contests.match_num" + ], + [ + "games.match_num", + "contests.match_num" + ], + [ + "matches.minutes", + "games.minutes" + ], + [ + "matches.minutes", + "contests.minutes" + ], + [ + "games.minutes", + "contests.minutes" + ], + [ + "matches.round", + "games.round" + ], + [ + "matches.round", + "contests.round" + ], + [ + "games.round", + "contests.round" + ], + [ + "matches.score", + "games.score" + ], + [ + "matches.score", + "contests.score" + ], + [ + "games.score", + "contests.score" + ], + [ + "matches.surface", + "games.surface" + ], + [ + "matches.surface", + "contests.surface" + ], + [ + "games.surface", + "contests.surface" + ], + [ + "matches.tourney_date", + "games.tourney_date" + ], + [ + "matches.tourney_date", + "contests.tourney_date" + ], + [ + "games.tourney_date", + "contests.tourney_date" + ], + [ + "matches.tourney_id", + "games.tourney_id" + ], + [ + "matches.tourney_id", + "contests.tourney_id" + ], + [ + "games.tourney_id", + "contests.tourney_id" + ], + [ + "matches.tourney_level", + "games.tourney_level" + ], + [ + "matches.tourney_level", + "contests.tourney_level" + ], + [ + "games.tourney_level", + "contests.tourney_level" + ], + [ + "matches.tourney_name", + "games.tourney_name" + ], + [ + "matches.tourney_name", + "contests.tourney_name" + ], + [ + "games.tourney_name", + "contests.tourney_name" + ], + [ + "matches.winner_age", + "games.winner_age" + ], + [ + "matches.winner_age", + "contests.winner_age" + ], + [ + "games.winner_age", + "contests.winner_age" + ], + [ + "matches.winner_entry", + "games.winner_entry" + ], + [ + "matches.winner_entry", + "contests.winner_entry" + ], + [ + "games.winner_entry", + "contests.winner_entry" + ], + [ + "matches.winner_hand", + "games.winner_hand" + ], + [ + "matches.winner_hand", + "contests.winner_hand" + ], + [ + "games.winner_hand", + "contests.winner_hand" + ], + [ + "matches.winner_ht", + "games.winner_ht" + ], + [ + "matches.winner_ht", + "contests.winner_ht" + ], + [ + "games.winner_ht", + "contests.winner_ht" + ], + [ + "matches.winner_id", + "games.winner_id" + ], + [ + "matches.winner_id", + "contests.winner_id" + ], + [ + "games.winner_id", + "contests.winner_id" + ], + [ + "matches.winner_ioc", + "games.winner_ioc" + ], + [ + "matches.winner_ioc", + "contests.winner_ioc" + ], + [ + "games.winner_ioc", + "contests.winner_ioc" + ], + [ + "matches.winner_name", + "games.winner_name" + ], + [ + "matches.winner_name", + "contests.winner_name" + ], + [ + "games.winner_name", + "contests.winner_name" + ], + [ + "matches.winner_rank", + "games.winner_rank" + ], + [ + "matches.winner_rank", + "contests.winner_rank" + ], + [ + "games.winner_rank", + "contests.winner_rank" + ], + [ + "matches.winner_rank_points", + "games.winner_rank_points" + ], + [ + "matches.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "games.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "matches.winner_seed", + "games.winner_seed" + ], + [ + "matches.winner_seed", + "contests.winner_seed" + ], + [ + "games.winner_seed", + "contests.winner_seed" + ], + [ + "matches.year", + "games.year" + ], + [ + "matches.year", + "contests.year" + ], + [ + "games.year", + "contests.year" + ] + ] + }, + { + "question": "find the number of left handed winners who participated in the #wta championships# .", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "games": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "contests": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ] + }, + "linking_list": [ + [ + "WTA Championships", + "matches.tourney_name" + ], + [ + "WTA Championships", + "games.tourney_name" + ], + [ + "WTA Championships", + "contests.tourney_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.tourney_name" + ], + [ + 0, + "games.tourney_name" + ], + [ + 0, + "contests.tourney_name" + ] + ], + "linking_list_col": [ + [ + "matches.best_of", + "games.best_of" + ], + [ + "matches.best_of", + "contests.best_of" + ], + [ + "games.best_of", + "contests.best_of" + ], + [ + "matches.draw_size", + "games.draw_size" + ], + [ + "matches.draw_size", + "contests.draw_size" + ], + [ + "games.draw_size", + "contests.draw_size" + ], + [ + "matches.loser_age", + "games.loser_age" + ], + [ + "matches.loser_age", + "contests.loser_age" + ], + [ + "games.loser_age", + "contests.loser_age" + ], + [ + "matches.loser_entry", + "games.loser_entry" + ], + [ + "matches.loser_entry", + "contests.loser_entry" + ], + [ + "games.loser_entry", + "contests.loser_entry" + ], + [ + "matches.loser_hand", + "games.loser_hand" + ], + [ + "matches.loser_hand", + "contests.loser_hand" + ], + [ + "games.loser_hand", + "contests.loser_hand" + ], + [ + "matches.loser_ht", + "games.loser_ht" + ], + [ + "matches.loser_ht", + "contests.loser_ht" + ], + [ + "games.loser_ht", + "contests.loser_ht" + ], + [ + "matches.loser_id", + "games.loser_id" + ], + [ + "matches.loser_id", + "contests.loser_id" + ], + [ + "games.loser_id", + "contests.loser_id" + ], + [ + "matches.loser_ioc", + "games.loser_ioc" + ], + [ + "matches.loser_ioc", + "contests.loser_ioc" + ], + [ + "games.loser_ioc", + "contests.loser_ioc" + ], + [ + "matches.loser_name", + "games.loser_name" + ], + [ + "matches.loser_name", + "contests.loser_name" + ], + [ + "games.loser_name", + "contests.loser_name" + ], + [ + "matches.loser_rank", + "games.loser_rank" + ], + [ + "matches.loser_rank", + "contests.loser_rank" + ], + [ + "games.loser_rank", + "contests.loser_rank" + ], + [ + "matches.loser_rank_points", + "games.loser_rank_points" + ], + [ + "matches.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "games.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "matches.loser_seed", + "games.loser_seed" + ], + [ + "matches.loser_seed", + "contests.loser_seed" + ], + [ + "games.loser_seed", + "contests.loser_seed" + ], + [ + "matches.match_num", + "games.match_num" + ], + [ + "matches.match_num", + "contests.match_num" + ], + [ + "games.match_num", + "contests.match_num" + ], + [ + "matches.minutes", + "games.minutes" + ], + [ + "matches.minutes", + "contests.minutes" + ], + [ + "games.minutes", + "contests.minutes" + ], + [ + "matches.round", + "games.round" + ], + [ + "matches.round", + "contests.round" + ], + [ + "games.round", + "contests.round" + ], + [ + "matches.score", + "games.score" + ], + [ + "matches.score", + "contests.score" + ], + [ + "games.score", + "contests.score" + ], + [ + "matches.surface", + "games.surface" + ], + [ + "matches.surface", + "contests.surface" + ], + [ + "games.surface", + "contests.surface" + ], + [ + "matches.tourney_date", + "games.tourney_date" + ], + [ + "matches.tourney_date", + "contests.tourney_date" + ], + [ + "games.tourney_date", + "contests.tourney_date" + ], + [ + "matches.tourney_id", + "games.tourney_id" + ], + [ + "matches.tourney_id", + "contests.tourney_id" + ], + [ + "games.tourney_id", + "contests.tourney_id" + ], + [ + "matches.tourney_level", + "games.tourney_level" + ], + [ + "matches.tourney_level", + "contests.tourney_level" + ], + [ + "games.tourney_level", + "contests.tourney_level" + ], + [ + "matches.tourney_name", + "games.tourney_name" + ], + [ + "matches.tourney_name", + "contests.tourney_name" + ], + [ + "games.tourney_name", + "contests.tourney_name" + ], + [ + "matches.winner_age", + "games.winner_age" + ], + [ + "matches.winner_age", + "contests.winner_age" + ], + [ + "games.winner_age", + "contests.winner_age" + ], + [ + "matches.winner_entry", + "games.winner_entry" + ], + [ + "matches.winner_entry", + "contests.winner_entry" + ], + [ + "games.winner_entry", + "contests.winner_entry" + ], + [ + "matches.winner_hand", + "games.winner_hand" + ], + [ + "matches.winner_hand", + "contests.winner_hand" + ], + [ + "games.winner_hand", + "contests.winner_hand" + ], + [ + "matches.winner_ht", + "games.winner_ht" + ], + [ + "matches.winner_ht", + "contests.winner_ht" + ], + [ + "games.winner_ht", + "contests.winner_ht" + ], + [ + "matches.winner_id", + "games.winner_id" + ], + [ + "matches.winner_id", + "contests.winner_id" + ], + [ + "games.winner_id", + "contests.winner_id" + ], + [ + "matches.winner_ioc", + "games.winner_ioc" + ], + [ + "matches.winner_ioc", + "contests.winner_ioc" + ], + [ + "games.winner_ioc", + "contests.winner_ioc" + ], + [ + "matches.winner_name", + "games.winner_name" + ], + [ + "matches.winner_name", + "contests.winner_name" + ], + [ + "games.winner_name", + "contests.winner_name" + ], + [ + "matches.winner_rank", + "games.winner_rank" + ], + [ + "matches.winner_rank", + "contests.winner_rank" + ], + [ + "games.winner_rank", + "contests.winner_rank" + ], + [ + "matches.winner_rank_points", + "games.winner_rank_points" + ], + [ + "matches.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "games.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "matches.winner_seed", + "games.winner_seed" + ], + [ + "matches.winner_seed", + "contests.winner_seed" + ], + [ + "games.winner_seed", + "contests.winner_seed" + ], + [ + "matches.year", + "games.year" + ], + [ + "matches.year", + "contests.year" + ], + [ + "games.year", + "contests.year" + ] + ] + }, + { + "question": "find the #first name# , #country code# and #birth date of the winner# who has the highest #rank points in all matches# .", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "games": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "contests": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ] + }, + "linking_list": [ + [ + "first name", + "players.first_name" + ], + [ + "country code", + "players.country_code" + ], + [ + "birth date of the winner", + "players.birth_date" + ], + [ + "rank points in all matches", + "matches.winner_rank_points" + ], + [ + "rank points in all matches", + "games.winner_rank_points" + ], + [ + "rank points in all matches", + "contests.winner_rank_points" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.first_name" + ], + [ + 1, + "players.country_code" + ], + [ + 2, + "players.birth_date" + ], + [ + 3, + "matches.winner_rank_points" + ], + [ + 3, + "games.winner_rank_points" + ], + [ + 3, + "contests.winner_rank_points" + ] + ], + "linking_list_col": [ + [ + "matches.best_of", + "games.best_of" + ], + [ + "matches.best_of", + "contests.best_of" + ], + [ + "games.best_of", + "contests.best_of" + ], + [ + "matches.draw_size", + "games.draw_size" + ], + [ + "matches.draw_size", + "contests.draw_size" + ], + [ + "games.draw_size", + "contests.draw_size" + ], + [ + "matches.loser_age", + "games.loser_age" + ], + [ + "matches.loser_age", + "contests.loser_age" + ], + [ + "games.loser_age", + "contests.loser_age" + ], + [ + "matches.loser_entry", + "games.loser_entry" + ], + [ + "matches.loser_entry", + "contests.loser_entry" + ], + [ + "games.loser_entry", + "contests.loser_entry" + ], + [ + "matches.loser_hand", + "games.loser_hand" + ], + [ + "matches.loser_hand", + "contests.loser_hand" + ], + [ + "games.loser_hand", + "contests.loser_hand" + ], + [ + "matches.loser_ht", + "games.loser_ht" + ], + [ + "matches.loser_ht", + "contests.loser_ht" + ], + [ + "games.loser_ht", + "contests.loser_ht" + ], + [ + "matches.loser_id", + "games.loser_id" + ], + [ + "matches.loser_id", + "contests.loser_id" + ], + [ + "games.loser_id", + "contests.loser_id" + ], + [ + "matches.loser_ioc", + "games.loser_ioc" + ], + [ + "matches.loser_ioc", + "contests.loser_ioc" + ], + [ + "games.loser_ioc", + "contests.loser_ioc" + ], + [ + "matches.loser_name", + "games.loser_name" + ], + [ + "matches.loser_name", + "contests.loser_name" + ], + [ + "games.loser_name", + "contests.loser_name" + ], + [ + "matches.loser_rank", + "games.loser_rank" + ], + [ + "matches.loser_rank", + "contests.loser_rank" + ], + [ + "games.loser_rank", + "contests.loser_rank" + ], + [ + "matches.loser_rank_points", + "games.loser_rank_points" + ], + [ + "matches.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "games.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "matches.loser_seed", + "games.loser_seed" + ], + [ + "matches.loser_seed", + "contests.loser_seed" + ], + [ + "games.loser_seed", + "contests.loser_seed" + ], + [ + "matches.match_num", + "games.match_num" + ], + [ + "matches.match_num", + "contests.match_num" + ], + [ + "games.match_num", + "contests.match_num" + ], + [ + "matches.minutes", + "games.minutes" + ], + [ + "matches.minutes", + "contests.minutes" + ], + [ + "games.minutes", + "contests.minutes" + ], + [ + "matches.round", + "games.round" + ], + [ + "matches.round", + "contests.round" + ], + [ + "games.round", + "contests.round" + ], + [ + "matches.score", + "games.score" + ], + [ + "matches.score", + "contests.score" + ], + [ + "games.score", + "contests.score" + ], + [ + "matches.surface", + "games.surface" + ], + [ + "matches.surface", + "contests.surface" + ], + [ + "games.surface", + "contests.surface" + ], + [ + "matches.tourney_date", + "games.tourney_date" + ], + [ + "matches.tourney_date", + "contests.tourney_date" + ], + [ + "games.tourney_date", + "contests.tourney_date" + ], + [ + "matches.tourney_id", + "games.tourney_id" + ], + [ + "matches.tourney_id", + "contests.tourney_id" + ], + [ + "games.tourney_id", + "contests.tourney_id" + ], + [ + "matches.tourney_level", + "games.tourney_level" + ], + [ + "matches.tourney_level", + "contests.tourney_level" + ], + [ + "games.tourney_level", + "contests.tourney_level" + ], + [ + "matches.tourney_name", + "games.tourney_name" + ], + [ + "matches.tourney_name", + "contests.tourney_name" + ], + [ + "games.tourney_name", + "contests.tourney_name" + ], + [ + "matches.winner_age", + "games.winner_age" + ], + [ + "matches.winner_age", + "contests.winner_age" + ], + [ + "games.winner_age", + "contests.winner_age" + ], + [ + "matches.winner_entry", + "games.winner_entry" + ], + [ + "matches.winner_entry", + "contests.winner_entry" + ], + [ + "games.winner_entry", + "contests.winner_entry" + ], + [ + "matches.winner_hand", + "games.winner_hand" + ], + [ + "matches.winner_hand", + "contests.winner_hand" + ], + [ + "games.winner_hand", + "contests.winner_hand" + ], + [ + "matches.winner_ht", + "games.winner_ht" + ], + [ + "matches.winner_ht", + "contests.winner_ht" + ], + [ + "games.winner_ht", + "contests.winner_ht" + ], + [ + "matches.winner_id", + "games.winner_id" + ], + [ + "matches.winner_id", + "contests.winner_id" + ], + [ + "games.winner_id", + "contests.winner_id" + ], + [ + "matches.winner_ioc", + "games.winner_ioc" + ], + [ + "matches.winner_ioc", + "contests.winner_ioc" + ], + [ + "games.winner_ioc", + "contests.winner_ioc" + ], + [ + "matches.winner_name", + "games.winner_name" + ], + [ + "matches.winner_name", + "contests.winner_name" + ], + [ + "games.winner_name", + "contests.winner_name" + ], + [ + "matches.winner_rank", + "games.winner_rank" + ], + [ + "matches.winner_rank", + "contests.winner_rank" + ], + [ + "games.winner_rank", + "contests.winner_rank" + ], + [ + "matches.winner_rank_points", + "games.winner_rank_points" + ], + [ + "matches.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "games.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "matches.winner_seed", + "games.winner_seed" + ], + [ + "matches.winner_seed", + "contests.winner_seed" + ], + [ + "games.winner_seed", + "contests.winner_seed" + ], + [ + "matches.year", + "games.year" + ], + [ + "matches.year", + "contests.year" + ], + [ + "games.year", + "contests.year" + ] + ] + }, + { + "question": "what is the #first name# , #country code# , and #birth date of the player# with the most #winner rank points# across all matches?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "games": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "contests": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ] + }, + "linking_list": [ + [ + "first name", + "players.first_name" + ], + [ + "country code", + "players.country_code" + ], + [ + "birth date of the player", + "players.birth_date" + ], + [ + "winner rank points", + "matches.winner_rank_points" + ], + [ + "winner rank points", + "games.winner_rank_points" + ], + [ + "winner rank points", + "contests.winner_rank_points" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.first_name" + ], + [ + 1, + "players.country_code" + ], + [ + 2, + "players.birth_date" + ], + [ + 3, + "matches.winner_rank_points" + ], + [ + 3, + "games.winner_rank_points" + ], + [ + 3, + "contests.winner_rank_points" + ] + ], + "linking_list_col": [ + [ + "matches.best_of", + "games.best_of" + ], + [ + "matches.best_of", + "contests.best_of" + ], + [ + "games.best_of", + "contests.best_of" + ], + [ + "matches.draw_size", + "games.draw_size" + ], + [ + "matches.draw_size", + "contests.draw_size" + ], + [ + "games.draw_size", + "contests.draw_size" + ], + [ + "matches.loser_age", + "games.loser_age" + ], + [ + "matches.loser_age", + "contests.loser_age" + ], + [ + "games.loser_age", + "contests.loser_age" + ], + [ + "matches.loser_entry", + "games.loser_entry" + ], + [ + "matches.loser_entry", + "contests.loser_entry" + ], + [ + "games.loser_entry", + "contests.loser_entry" + ], + [ + "matches.loser_hand", + "games.loser_hand" + ], + [ + "matches.loser_hand", + "contests.loser_hand" + ], + [ + "games.loser_hand", + "contests.loser_hand" + ], + [ + "matches.loser_ht", + "games.loser_ht" + ], + [ + "matches.loser_ht", + "contests.loser_ht" + ], + [ + "games.loser_ht", + "contests.loser_ht" + ], + [ + "matches.loser_id", + "games.loser_id" + ], + [ + "matches.loser_id", + "contests.loser_id" + ], + [ + "games.loser_id", + "contests.loser_id" + ], + [ + "matches.loser_ioc", + "games.loser_ioc" + ], + [ + "matches.loser_ioc", + "contests.loser_ioc" + ], + [ + "games.loser_ioc", + "contests.loser_ioc" + ], + [ + "matches.loser_name", + "games.loser_name" + ], + [ + "matches.loser_name", + "contests.loser_name" + ], + [ + "games.loser_name", + "contests.loser_name" + ], + [ + "matches.loser_rank", + "games.loser_rank" + ], + [ + "matches.loser_rank", + "contests.loser_rank" + ], + [ + "games.loser_rank", + "contests.loser_rank" + ], + [ + "matches.loser_rank_points", + "games.loser_rank_points" + ], + [ + "matches.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "games.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "matches.loser_seed", + "games.loser_seed" + ], + [ + "matches.loser_seed", + "contests.loser_seed" + ], + [ + "games.loser_seed", + "contests.loser_seed" + ], + [ + "matches.match_num", + "games.match_num" + ], + [ + "matches.match_num", + "contests.match_num" + ], + [ + "games.match_num", + "contests.match_num" + ], + [ + "matches.minutes", + "games.minutes" + ], + [ + "matches.minutes", + "contests.minutes" + ], + [ + "games.minutes", + "contests.minutes" + ], + [ + "matches.round", + "games.round" + ], + [ + "matches.round", + "contests.round" + ], + [ + "games.round", + "contests.round" + ], + [ + "matches.score", + "games.score" + ], + [ + "matches.score", + "contests.score" + ], + [ + "games.score", + "contests.score" + ], + [ + "matches.surface", + "games.surface" + ], + [ + "matches.surface", + "contests.surface" + ], + [ + "games.surface", + "contests.surface" + ], + [ + "matches.tourney_date", + "games.tourney_date" + ], + [ + "matches.tourney_date", + "contests.tourney_date" + ], + [ + "games.tourney_date", + "contests.tourney_date" + ], + [ + "matches.tourney_id", + "games.tourney_id" + ], + [ + "matches.tourney_id", + "contests.tourney_id" + ], + [ + "games.tourney_id", + "contests.tourney_id" + ], + [ + "matches.tourney_level", + "games.tourney_level" + ], + [ + "matches.tourney_level", + "contests.tourney_level" + ], + [ + "games.tourney_level", + "contests.tourney_level" + ], + [ + "matches.tourney_name", + "games.tourney_name" + ], + [ + "matches.tourney_name", + "contests.tourney_name" + ], + [ + "games.tourney_name", + "contests.tourney_name" + ], + [ + "matches.winner_age", + "games.winner_age" + ], + [ + "matches.winner_age", + "contests.winner_age" + ], + [ + "games.winner_age", + "contests.winner_age" + ], + [ + "matches.winner_entry", + "games.winner_entry" + ], + [ + "matches.winner_entry", + "contests.winner_entry" + ], + [ + "games.winner_entry", + "contests.winner_entry" + ], + [ + "matches.winner_hand", + "games.winner_hand" + ], + [ + "matches.winner_hand", + "contests.winner_hand" + ], + [ + "games.winner_hand", + "contests.winner_hand" + ], + [ + "matches.winner_ht", + "games.winner_ht" + ], + [ + "matches.winner_ht", + "contests.winner_ht" + ], + [ + "games.winner_ht", + "contests.winner_ht" + ], + [ + "matches.winner_id", + "games.winner_id" + ], + [ + "matches.winner_id", + "contests.winner_id" + ], + [ + "games.winner_id", + "contests.winner_id" + ], + [ + "matches.winner_ioc", + "games.winner_ioc" + ], + [ + "matches.winner_ioc", + "contests.winner_ioc" + ], + [ + "games.winner_ioc", + "contests.winner_ioc" + ], + [ + "matches.winner_name", + "games.winner_name" + ], + [ + "matches.winner_name", + "contests.winner_name" + ], + [ + "games.winner_name", + "contests.winner_name" + ], + [ + "matches.winner_rank", + "games.winner_rank" + ], + [ + "matches.winner_rank", + "contests.winner_rank" + ], + [ + "games.winner_rank", + "contests.winner_rank" + ], + [ + "matches.winner_rank_points", + "games.winner_rank_points" + ], + [ + "matches.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "games.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "matches.winner_seed", + "games.winner_seed" + ], + [ + "matches.winner_seed", + "contests.winner_seed" + ], + [ + "games.winner_seed", + "contests.winner_seed" + ], + [ + "matches.year", + "games.year" + ], + [ + "matches.year", + "contests.year" + ], + [ + "games.year", + "contests.year" + ] + ] + }, + { + "question": "find the #number of players for each hand type# .", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "athletes": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "competitors": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ] + }, + "linking_list": [ + [ + "number of players for each hand type", + "players.player_id" + ], + [ + "number of players for each hand type", + "athletes.player_id" + ], + [ + "number of players for each hand type", + "competitors.player_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.player_id" + ], + [ + 0, + "athletes.player_id" + ], + [ + 0, + "competitors.player_id" + ] + ], + "linking_list_col": [ + [ + "players.player_id", + "athletes.player_id" + ], + [ + "players.player_id", + "competitors.player_id" + ], + [ + "athletes.player_id", + "competitors.player_id" + ], + [ + "players.first_name", + "athletes.first_name" + ], + [ + "players.first_name", + "competitors.first_name" + ], + [ + "athletes.first_name", + "competitors.first_name" + ], + [ + "players.last_name", + "athletes.last_name" + ], + [ + "players.last_name", + "competitors.last_name" + ], + [ + "athletes.last_name", + "competitors.last_name" + ], + [ + "players.hand", + "athletes.hand" + ], + [ + "players.hand", + "competitors.hand" + ], + [ + "athletes.hand", + "competitors.hand" + ], + [ + "players.birth_date", + "athletes.birth_date" + ], + [ + "players.birth_date", + "competitors.birth_date" + ], + [ + "athletes.birth_date", + "competitors.birth_date" + ], + [ + "players.country_code", + "athletes.country_code" + ], + [ + "players.country_code", + "competitors.country_code" + ], + [ + "athletes.country_code", + "competitors.country_code" + ] + ] + }, + { + "question": "list the #name# and #tonnage# ordered by in descending alphaetical order for the names.", + "db_schema": { + "battle": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result" + ], + "ship": [ + "lost_in_battle", + "id", + "name", + "tonnage", + "ship_type", + "location", + "disposition_of_ship" + ], + "death": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured" + ], + "vessel": [ + "lost_in_battle", + "id", + "name", + "tonnage", + "ship_type", + "location", + "disposition_of_ship" + ], + "navy": [ + "lost_in_battle", + "id", + "name", + "tonnage", + "ship_type", + "location", + "disposition_of_ship" + ] + }, + "linking_list": [ + [ + "name", + "ship.name" + ], + [ + "name", + "vessel.name" + ], + [ + "name", + "navy.name" + ], + [ + "tonnage", + "ship.tonnage" + ], + [ + "tonnage", + "vessel.tonnage" + ], + [ + "tonnage", + "navy.tonnage" + ] + ], + "linking_list_idx": [ + [ + 0, + "ship.name" + ], + [ + 0, + "vessel.name" + ], + [ + 0, + "navy.name" + ], + [ + 1, + "ship.tonnage" + ], + [ + 1, + "vessel.tonnage" + ], + [ + 1, + "navy.tonnage" + ] + ], + "linking_list_col": [ + [ + "ship.lost_in_battle", + "vessel.lost_in_battle" + ], + [ + "ship.lost_in_battle", + "navy.lost_in_battle" + ], + [ + "vessel.lost_in_battle", + "navy.lost_in_battle" + ], + [ + "ship.id", + "vessel.id" + ], + [ + "ship.id", + "navy.id" + ], + [ + "vessel.id", + "navy.id" + ], + [ + "ship.name", + "vessel.name" + ], + [ + "ship.name", + "navy.name" + ], + [ + "vessel.name", + "navy.name" + ], + [ + "ship.tonnage", + "vessel.tonnage" + ], + [ + "ship.tonnage", + "navy.tonnage" + ], + [ + "vessel.tonnage", + "navy.tonnage" + ], + [ + "ship.ship_type", + "vessel.ship_type" + ], + [ + "ship.ship_type", + "navy.ship_type" + ], + [ + "vessel.ship_type", + "navy.ship_type" + ], + [ + "ship.location", + "vessel.location" + ], + [ + "ship.location", + "navy.location" + ], + [ + "vessel.location", + "navy.location" + ], + [ + "ship.disposition_of_ship", + "vessel.disposition_of_ship" + ], + [ + "ship.disposition_of_ship", + "navy.disposition_of_ship" + ], + [ + "vessel.disposition_of_ship", + "navy.disposition_of_ship" + ] + ] + }, + { + "question": "what are the #death# and #injury# situations caused by the #ship with tonnage# 't'?", + "db_schema": { + "battle": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result" + ], + "ship": [ + "lost_in_battle", + "id", + "name", + "tonnage", + "ship_type", + "location", + "disposition_of_ship" + ], + "death": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured" + ], + "fatality": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured" + ], + "mortality": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured" + ] + }, + "linking_list": [ + [ + "death", + "death.killed" + ], + [ + "death", + "fatality.killed" + ], + [ + "death", + "mortality.killed" + ], + [ + "injury", + "death.injured" + ], + [ + "injury", + "fatality.injured" + ], + [ + "injury", + "mortality.injured" + ], + [ + "ship with tonnage", + "ship.tonnage" + ] + ], + "linking_list_idx": [ + [ + 0, + "death.killed" + ], + [ + 0, + "fatality.killed" + ], + [ + 0, + "mortality.killed" + ], + [ + 1, + "death.injured" + ], + [ + 1, + "fatality.injured" + ], + [ + 1, + "mortality.injured" + ], + [ + 2, + "ship.tonnage" + ] + ], + "linking_list_col": [ + [ + "death.caused_by_ship_id", + "fatality.caused_by_ship_id" + ], + [ + "death.caused_by_ship_id", + "mortality.caused_by_ship_id" + ], + [ + "fatality.caused_by_ship_id", + "mortality.caused_by_ship_id" + ], + [ + "death.id", + "fatality.id" + ], + [ + "death.id", + "mortality.id" + ], + [ + "fatality.id", + "mortality.id" + ], + [ + "death.note", + "fatality.note" + ], + [ + "death.note", + "mortality.note" + ], + [ + "fatality.note", + "mortality.note" + ], + [ + "death.killed", + "fatality.killed" + ], + [ + "death.killed", + "mortality.killed" + ], + [ + "fatality.killed", + "mortality.killed" + ], + [ + "death.injured", + "fatality.injured" + ], + [ + "death.injured", + "mortality.injured" + ], + [ + "fatality.injured", + "mortality.injured" + ] + ] + }, + { + "question": "what are the #name# and #results# of the battles when the #bulgarian commander# is not 'boril'", + "db_schema": { + "battle": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result" + ], + "ship": [ + "lost_in_battle", + "id", + "name", + "tonnage", + "ship_type", + "location", + "disposition_of_ship" + ], + "death": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured" + ], + "warfare": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result" + ], + "conflict": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result" + ] + }, + "linking_list": [ + [ + "name", + "battle.name" + ], + [ + "name", + "warfare.name" + ], + [ + "name", + "conflict.name" + ], + [ + "results", + "battle.result" + ], + [ + "results", + "warfare.result" + ], + [ + "results", + "conflict.result" + ], + [ + "bulgarian commander", + "battle.bulgarian_commander" + ], + [ + "bulgarian commander", + "warfare.bulgarian_commander" + ], + [ + "bulgarian commander", + "conflict.bulgarian_commander" + ] + ], + "linking_list_idx": [ + [ + 0, + "battle.name" + ], + [ + 0, + "warfare.name" + ], + [ + 0, + "conflict.name" + ], + [ + 1, + "battle.result" + ], + [ + 1, + "warfare.result" + ], + [ + 1, + "conflict.result" + ], + [ + 2, + "battle.bulgarian_commander" + ], + [ + 2, + "warfare.bulgarian_commander" + ], + [ + 2, + "conflict.bulgarian_commander" + ] + ], + "linking_list_col": [ + [ + "battle.id", + "warfare.id" + ], + [ + "battle.id", + "conflict.id" + ], + [ + "warfare.id", + "conflict.id" + ], + [ + "battle.name", + "warfare.name" + ], + [ + "battle.name", + "conflict.name" + ], + [ + "warfare.name", + "conflict.name" + ], + [ + "battle.date", + "warfare.date" + ], + [ + "battle.date", + "conflict.date" + ], + [ + "warfare.date", + "conflict.date" + ], + [ + "battle.bulgarian_commander", + "warfare.bulgarian_commander" + ], + [ + "battle.bulgarian_commander", + "conflict.bulgarian_commander" + ], + [ + "warfare.bulgarian_commander", + "conflict.bulgarian_commander" + ], + [ + "battle.latin_commander", + "warfare.latin_commander" + ], + [ + "battle.latin_commander", + "conflict.latin_commander" + ], + [ + "warfare.latin_commander", + "conflict.latin_commander" + ], + [ + "battle.result", + "warfare.result" + ], + [ + "battle.result", + "conflict.result" + ], + [ + "warfare.result", + "conflict.result" + ] + ] + }, + { + "question": "what are the #ids# and #names of the battles# that led to more than 10 people #killed# in total.", + "db_schema": { + "battle": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result" + ], + "ship": [ + "lost_in_battle", + "id", + "name", + "tonnage", + "ship_type", + "location", + "disposition_of_ship" + ], + "death": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured" + ], + "fatality": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured" + ], + "mortality": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured" + ] + }, + "linking_list": [ + [ + "ids", + "battle.id" + ], + [ + "names of the battles", + "battle.name" + ], + [ + "killed", + "death.killed" + ], + [ + "killed", + "fatality.killed" + ], + [ + "killed", + "mortality.killed" + ] + ], + "linking_list_idx": [ + [ + 0, + "battle.id" + ], + [ + 1, + "battle.name" + ], + [ + 2, + "death.killed" + ], + [ + 2, + "fatality.killed" + ], + [ + 2, + "mortality.killed" + ] + ], + "linking_list_col": [ + [ + "death.caused_by_ship_id", + "fatality.caused_by_ship_id" + ], + [ + "death.caused_by_ship_id", + "mortality.caused_by_ship_id" + ], + [ + "fatality.caused_by_ship_id", + "mortality.caused_by_ship_id" + ], + [ + "death.id", + "fatality.id" + ], + [ + "death.id", + "mortality.id" + ], + [ + "fatality.id", + "mortality.id" + ], + [ + "death.note", + "fatality.note" + ], + [ + "death.note", + "mortality.note" + ], + [ + "fatality.note", + "mortality.note" + ], + [ + "death.killed", + "fatality.killed" + ], + [ + "death.killed", + "mortality.killed" + ], + [ + "fatality.killed", + "mortality.killed" + ], + [ + "death.injured", + "fatality.injured" + ], + [ + "death.injured", + "mortality.injured" + ], + [ + "fatality.injured", + "mortality.injured" + ] + ] + }, + { + "question": "what are the distinct #battle names# which are between #bulgarian commander# 'kaloyan' and #latin commander# 'baldwin i'?", + "db_schema": { + "battle": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result" + ], + "ship": [ + "lost_in_battle", + "id", + "name", + "tonnage", + "ship_type", + "location", + "disposition_of_ship" + ], + "death": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured" + ], + "warfare": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result" + ], + "conflict": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result" + ] + }, + "linking_list": [ + [ + "battle names", + "battle.name" + ], + [ + "battle names", + "warfare.name" + ], + [ + "battle names", + "conflict.name" + ], + [ + "bulgarian commander", + "battle.bulgarian_commander" + ], + [ + "bulgarian commander", + "warfare.bulgarian_commander" + ], + [ + "bulgarian commander", + "conflict.bulgarian_commander" + ], + [ + "latin commander", + "battle.latin_commander" + ], + [ + "latin commander", + "warfare.latin_commander" + ], + [ + "latin commander", + "conflict.latin_commander" + ] + ], + "linking_list_idx": [ + [ + 0, + "battle.name" + ], + [ + 0, + "warfare.name" + ], + [ + 0, + "conflict.name" + ], + [ + 1, + "battle.bulgarian_commander" + ], + [ + 1, + "warfare.bulgarian_commander" + ], + [ + 1, + "conflict.bulgarian_commander" + ], + [ + 2, + "battle.latin_commander" + ], + [ + 2, + "warfare.latin_commander" + ], + [ + 2, + "conflict.latin_commander" + ] + ], + "linking_list_col": [ + [ + "battle.id", + "warfare.id" + ], + [ + "battle.id", + "conflict.id" + ], + [ + "warfare.id", + "conflict.id" + ], + [ + "battle.name", + "warfare.name" + ], + [ + "battle.name", + "conflict.name" + ], + [ + "warfare.name", + "conflict.name" + ], + [ + "battle.date", + "warfare.date" + ], + [ + "battle.date", + "conflict.date" + ], + [ + "warfare.date", + "conflict.date" + ], + [ + "battle.bulgarian_commander", + "warfare.bulgarian_commander" + ], + [ + "battle.bulgarian_commander", + "conflict.bulgarian_commander" + ], + [ + "warfare.bulgarian_commander", + "conflict.bulgarian_commander" + ], + [ + "battle.latin_commander", + "warfare.latin_commander" + ], + [ + "battle.latin_commander", + "conflict.latin_commander" + ], + [ + "warfare.latin_commander", + "conflict.latin_commander" + ], + [ + "battle.result", + "warfare.result" + ], + [ + "battle.result", + "conflict.result" + ], + [ + "warfare.result", + "conflict.result" + ] + ] + }, + { + "question": "how many battles did not #lose any ship with tonnage# '225'?", + "db_schema": { + "battle": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result" + ], + "ship": [ + "lost_in_battle", + "id", + "name", + "tonnage", + "ship_type", + "location", + "disposition_of_ship" + ], + "death": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured" + ], + "vessel": [ + "lost_in_battle", + "id", + "name", + "tonnage", + "ship_type", + "location", + "disposition_of_ship" + ], + "navy": [ + "lost_in_battle", + "id", + "name", + "tonnage", + "ship_type", + "location", + "disposition_of_ship" + ] + }, + "linking_list": [ + [ + "lose any ship with tonnage", + "ship.lost_in_battle" + ], + [ + "lose any ship with tonnage", + "vessel.lost_in_battle" + ], + [ + "lose any ship with tonnage", + "navy.lost_in_battle" + ] + ], + "linking_list_idx": [ + [ + 0, + "ship.lost_in_battle" + ], + [ + 0, + "vessel.lost_in_battle" + ], + [ + 0, + "navy.lost_in_battle" + ] + ], + "linking_list_col": [ + [ + "ship.lost_in_battle", + "vessel.lost_in_battle" + ], + [ + "ship.lost_in_battle", + "navy.lost_in_battle" + ], + [ + "vessel.lost_in_battle", + "navy.lost_in_battle" + ], + [ + "ship.id", + "vessel.id" + ], + [ + "ship.id", + "navy.id" + ], + [ + "vessel.id", + "navy.id" + ], + [ + "ship.name", + "vessel.name" + ], + [ + "ship.name", + "navy.name" + ], + [ + "vessel.name", + "navy.name" + ], + [ + "ship.tonnage", + "vessel.tonnage" + ], + [ + "ship.tonnage", + "navy.tonnage" + ], + [ + "vessel.tonnage", + "navy.tonnage" + ], + [ + "ship.ship_type", + "vessel.ship_type" + ], + [ + "ship.ship_type", + "navy.ship_type" + ], + [ + "vessel.ship_type", + "navy.ship_type" + ], + [ + "ship.location", + "vessel.location" + ], + [ + "ship.location", + "navy.location" + ], + [ + "vessel.location", + "navy.location" + ], + [ + "ship.disposition_of_ship", + "vessel.disposition_of_ship" + ], + [ + "ship.disposition_of_ship", + "navy.disposition_of_ship" + ], + [ + "vessel.disposition_of_ship", + "navy.disposition_of_ship" + ] + ] + }, + { + "question": "what are the #notes of the death events# which has substring 'east'?", + "db_schema": { + "battle": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result" + ], + "ship": [ + "lost_in_battle", + "id", + "name", + "tonnage", + "ship_type", + "location", + "disposition_of_ship" + ], + "death": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured" + ], + "fatality": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured" + ], + "mortality": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured" + ] + }, + "linking_list": [ + [ + "notes of the death events", + "death.note" + ], + [ + "notes of the death events", + "fatality.note" + ], + [ + "notes of the death events", + "mortality.note" + ] + ], + "linking_list_idx": [ + [ + 0, + "death.note" + ], + [ + 0, + "fatality.note" + ], + [ + 0, + "mortality.note" + ] + ], + "linking_list_col": [ + [ + "death.caused_by_ship_id", + "fatality.caused_by_ship_id" + ], + [ + "death.caused_by_ship_id", + "mortality.caused_by_ship_id" + ], + [ + "fatality.caused_by_ship_id", + "mortality.caused_by_ship_id" + ], + [ + "death.id", + "fatality.id" + ], + [ + "death.id", + "mortality.id" + ], + [ + "fatality.id", + "mortality.id" + ], + [ + "death.note", + "fatality.note" + ], + [ + "death.note", + "mortality.note" + ], + [ + "fatality.note", + "mortality.note" + ], + [ + "death.killed", + "fatality.killed" + ], + [ + "death.killed", + "mortality.killed" + ], + [ + "fatality.killed", + "mortality.killed" + ], + [ + "death.injured", + "fatality.injured" + ], + [ + "death.injured", + "mortality.injured" + ], + [ + "fatality.injured", + "mortality.injured" + ] + ] + }, + { + "question": "how is the #math course# described?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "Subjects": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "Modules": [ + "course_id", + "course_name", + "course_description", + "other_details" + ] + }, + "linking_list": [ + [ + "math course", + "courses.course_name" + ], + [ + "math course", + "Subjects.course_name" + ], + [ + "math course", + "Modules.course_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "courses.course_name" + ], + [ + 0, + "Subjects.course_name" + ], + [ + 0, + "Modules.course_name" + ] + ], + "linking_list_col": [ + [ + "courses.course_id", + "subjects.course_id" + ], + [ + "courses.course_id", + "modules.course_id" + ], + [ + "subjects.course_id", + "modules.course_id" + ], + [ + "courses.course_name", + "subjects.course_name" + ], + [ + "courses.course_name", + "modules.course_name" + ], + [ + "subjects.course_name", + "modules.course_name" + ], + [ + "courses.course_description", + "subjects.course_description" + ], + [ + "courses.course_description", + "modules.course_description" + ], + [ + "subjects.course_description", + "modules.course_description" + ], + [ + "courses.other_details", + "subjects.other_details" + ], + [ + "courses.other_details", + "modules.other_details" + ], + [ + "subjects.other_details", + "modules.other_details" + ] + ] + }, + { + "question": "what is the #zip code of the address in the city# port chelsea?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "Locations": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "Residences": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ] + }, + "linking_list": [ + [ + "zip code of the address in the city", + "addresses.zip_postcode" + ], + [ + "zip code of the address in the city", + "Locations.zip_postcode" + ], + [ + "zip code of the address in the city", + "Residences.zip_postcode" + ] + ], + "linking_list_idx": [ + [ + 0, + "addresses.zip_postcode" + ], + [ + 0, + "Locations.zip_postcode" + ], + [ + 0, + "Residences.zip_postcode" + ] + ], + "linking_list_col": [ + [ + "addresses.address_id", + "locations.address_id" + ], + [ + "addresses.address_id", + "residences.address_id" + ], + [ + "locations.address_id", + "residences.address_id" + ], + [ + "addresses.line_1", + "locations.line_1" + ], + [ + "addresses.line_1", + "residences.line_1" + ], + [ + "locations.line_1", + "residences.line_1" + ], + [ + "addresses.line_2", + "locations.line_2" + ], + [ + "addresses.line_2", + "residences.line_2" + ], + [ + "locations.line_2", + "residences.line_2" + ], + [ + "addresses.line_3", + "locations.line_3" + ], + [ + "addresses.line_3", + "residences.line_3" + ], + [ + "locations.line_3", + "residences.line_3" + ], + [ + "addresses.city", + "locations.city" + ], + [ + "addresses.city", + "residences.city" + ], + [ + "locations.city", + "residences.city" + ], + [ + "addresses.zip_postcode", + "locations.zip_postcode" + ], + [ + "addresses.zip_postcode", + "residences.zip_postcode" + ], + [ + "locations.zip_postcode", + "residences.zip_postcode" + ], + [ + "addresses.state_province_county", + "locations.state_province_county" + ], + [ + "addresses.state_province_county", + "residences.state_province_county" + ], + [ + "locations.state_province_county", + "residences.state_province_county" + ], + [ + "addresses.country", + "locations.country" + ], + [ + "addresses.country", + "residences.country" + ], + [ + "locations.country", + "residences.country" + ], + [ + "addresses.other_address_details", + "locations.other_address_details" + ], + [ + "addresses.other_address_details", + "residences.other_address_details" + ], + [ + "locations.other_address_details", + "residences.other_address_details" + ] + ] + }, + { + "question": "list the #section_name# in reversed lexicographical order.", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "Classes": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "Sessions": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ] + }, + "linking_list": [ + [ + "section_name", + "sections.section_name" + ], + [ + "section_name", + "Classes.section_name" + ], + [ + "section_name", + "Sessions.section_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "sections.section_name" + ], + [ + 0, + "Classes.section_name" + ], + [ + 0, + "Sessions.section_name" + ] + ], + "linking_list_col": [ + [ + "sections.section_id", + "classes.section_id" + ], + [ + "sections.section_id", + "sessions.section_id" + ], + [ + "classes.section_id", + "sessions.section_id" + ], + [ + "sections.course_id", + "classes.course_id" + ], + [ + "sections.course_id", + "sessions.course_id" + ], + [ + "classes.course_id", + "sessions.course_id" + ], + [ + "sections.section_name", + "classes.section_name" + ], + [ + "sections.section_name", + "sessions.section_name" + ], + [ + "classes.section_name", + "sessions.section_name" + ], + [ + "sections.section_description", + "classes.section_description" + ], + [ + "sections.section_description", + "sessions.section_description" + ], + [ + "classes.section_description", + "sessions.section_description" + ], + [ + "sections.other_details", + "classes.other_details" + ], + [ + "sections.other_details", + "sessions.other_details" + ], + [ + "classes.other_details", + "sessions.other_details" + ] + ] + }, + { + "question": "what is the semester which most #student registered# in? show both the name and the id.", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "Student_Registration": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "Enrolment_Tracking": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ] + }, + "linking_list": [ + [ + "student registered", + "student_enrolment.student_id" + ], + [ + "student registered", + "Student_Registration.student_id" + ], + [ + "student registered", + "Enrolment_Tracking.student_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "student_enrolment.student_id" + ], + [ + 0, + "Student_Registration.student_id" + ], + [ + 0, + "Enrolment_Tracking.student_id" + ] + ], + "linking_list_col": [ + [ + "student_enrolment.student_enrolment_id", + "student_registration.student_enrolment_id" + ], + [ + "student_enrolment.student_enrolment_id", + "enrolment_tracking.student_enrolment_id" + ], + [ + "student_registration.student_enrolment_id", + "enrolment_tracking.student_enrolment_id" + ], + [ + "student_enrolment.degree_program_id", + "student_registration.degree_program_id" + ], + [ + "student_enrolment.degree_program_id", + "enrolment_tracking.degree_program_id" + ], + [ + "student_registration.degree_program_id", + "enrolment_tracking.degree_program_id" + ], + [ + "student_enrolment.semester_id", + "student_registration.semester_id" + ], + [ + "student_enrolment.semester_id", + "enrolment_tracking.semester_id" + ], + [ + "student_registration.semester_id", + "enrolment_tracking.semester_id" + ], + [ + "student_enrolment.student_id", + "student_registration.student_id" + ], + [ + "student_enrolment.student_id", + "enrolment_tracking.student_id" + ], + [ + "student_registration.student_id", + "enrolment_tracking.student_id" + ], + [ + "student_enrolment.other_details", + "student_registration.other_details" + ], + [ + "student_enrolment.other_details", + "enrolment_tracking.other_details" + ], + [ + "student_registration.other_details", + "enrolment_tracking.other_details" + ] + ] + }, + { + "question": "what is the #description# of the department whose #name# has the substring the computer?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "faculties": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "schools": [ + "department_id", + "department_name", + "department_description", + "other_details" + ] + }, + "linking_list": [ + [ + "description", + "departments.department_description" + ], + [ + "description", + "faculties.department_description" + ], + [ + "description", + "schools.department_description" + ], + [ + "name", + "departments.department_name" + ], + [ + "name", + "faculties.department_name" + ], + [ + "name", + "schools.department_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "departments.department_description" + ], + [ + 0, + "faculties.department_description" + ], + [ + 0, + "schools.department_description" + ], + [ + 1, + "departments.department_name" + ], + [ + 1, + "faculties.department_name" + ], + [ + 1, + "schools.department_name" + ] + ], + "linking_list_col": [ + [ + "departments.department_id", + "faculties.department_id" + ], + [ + "departments.department_id", + "schools.department_id" + ], + [ + "faculties.department_id", + "schools.department_id" + ], + [ + "departments.department_name", + "faculties.department_name" + ], + [ + "departments.department_name", + "schools.department_name" + ], + [ + "faculties.department_name", + "schools.department_name" + ], + [ + "departments.department_description", + "faculties.department_description" + ], + [ + "departments.department_description", + "schools.department_description" + ], + [ + "faculties.department_description", + "schools.department_description" + ], + [ + "departments.other_details", + "faculties.other_details" + ], + [ + "departments.other_details", + "schools.other_details" + ], + [ + "faculties.other_details", + "schools.other_details" + ] + ] + }, + { + "question": "what is the #department description# for the one whose name has the word computer?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "faculties": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "schools": [ + "department_id", + "department_name", + "department_description", + "other_details" + ] + }, + "linking_list": [ + [ + "department description", + "departments.department_description" + ], + [ + "department description", + "faculties.department_description" + ], + [ + "department description", + "schools.department_description" + ] + ], + "linking_list_idx": [ + [ + 0, + "departments.department_description" + ], + [ + 0, + "faculties.department_description" + ], + [ + 0, + "schools.department_description" + ] + ], + "linking_list_col": [ + [ + "departments.department_id", + "faculties.department_id" + ], + [ + "departments.department_id", + "schools.department_id" + ], + [ + "faculties.department_id", + "schools.department_id" + ], + [ + "departments.department_name", + "faculties.department_name" + ], + [ + "departments.department_name", + "schools.department_name" + ], + [ + "faculties.department_name", + "schools.department_name" + ], + [ + "departments.department_description", + "faculties.department_description" + ], + [ + "departments.department_description", + "schools.department_description" + ], + [ + "faculties.department_description", + "schools.department_description" + ], + [ + "departments.other_details", + "faculties.other_details" + ], + [ + "departments.other_details", + "schools.other_details" + ], + [ + "faculties.other_details", + "schools.other_details" + ] + ] + }, + { + "question": "which student has enrolled for the most times in any program? list the id, #first name# , #middle name# , #last name# , the #number of enrollments# and #student id# .", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "Student_Registration": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "Enrolment_Tracking": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ] + }, + "linking_list": [ + [ + "first name", + "students.first_name" + ], + [ + "middle name", + "students.middle_name" + ], + [ + "last name", + "students.last_name" + ], + [ + "number of enrollments", + "student_enrolment.student_id" + ], + [ + "number of enrollments", + "Student_Registration.student_id" + ], + [ + "number of enrollments", + "Enrolment_Tracking.student_id" + ], + [ + "student id", + "students.student_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.first_name" + ], + [ + 1, + "students.middle_name" + ], + [ + 2, + "students.last_name" + ], + [ + 3, + "student_enrolment.student_id" + ], + [ + 3, + "Student_Registration.student_id" + ], + [ + 3, + "Enrolment_Tracking.student_id" + ], + [ + 4, + "students.student_id" + ] + ], + "linking_list_col": [ + [ + "student_enrolment.student_enrolment_id", + "student_registration.student_enrolment_id" + ], + [ + "student_enrolment.student_enrolment_id", + "enrolment_tracking.student_enrolment_id" + ], + [ + "student_registration.student_enrolment_id", + "enrolment_tracking.student_enrolment_id" + ], + [ + "student_enrolment.degree_program_id", + "student_registration.degree_program_id" + ], + [ + "student_enrolment.degree_program_id", + "enrolment_tracking.degree_program_id" + ], + [ + "student_registration.degree_program_id", + "enrolment_tracking.degree_program_id" + ], + [ + "student_enrolment.semester_id", + "student_registration.semester_id" + ], + [ + "student_enrolment.semester_id", + "enrolment_tracking.semester_id" + ], + [ + "student_registration.semester_id", + "enrolment_tracking.semester_id" + ], + [ + "student_enrolment.student_id", + "student_registration.student_id" + ], + [ + "student_enrolment.student_id", + "enrolment_tracking.student_id" + ], + [ + "student_registration.student_id", + "enrolment_tracking.student_id" + ], + [ + "student_enrolment.other_details", + "student_registration.other_details" + ], + [ + "student_enrolment.other_details", + "enrolment_tracking.other_details" + ], + [ + "student_registration.other_details", + "enrolment_tracking.other_details" + ] + ] + }, + { + "question": "what is the first, middle, and #last name# , along with the #id# and #number of enrollments# , for the student who enrolled the most in any program?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "Student_Registration": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "Enrolment_Tracking": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ] + }, + "linking_list": [ + [ + "last name", + "students.last_name" + ], + [ + "id", + "students.student_id" + ], + [ + "number of enrollments", + "student_enrolment.student_id" + ], + [ + "number of enrollments", + "Student_Registration.student_id" + ], + [ + "number of enrollments", + "Enrolment_Tracking.student_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.last_name" + ], + [ + 1, + "students.student_id" + ], + [ + 2, + "student_enrolment.student_id" + ], + [ + 2, + "Student_Registration.student_id" + ], + [ + 2, + "Enrolment_Tracking.student_id" + ] + ], + "linking_list_col": [ + [ + "student_enrolment.student_enrolment_id", + "student_registration.student_enrolment_id" + ], + [ + "student_enrolment.student_enrolment_id", + "enrolment_tracking.student_enrolment_id" + ], + [ + "student_registration.student_enrolment_id", + "enrolment_tracking.student_enrolment_id" + ], + [ + "student_enrolment.degree_program_id", + "student_registration.degree_program_id" + ], + [ + "student_enrolment.degree_program_id", + "enrolment_tracking.degree_program_id" + ], + [ + "student_registration.degree_program_id", + "enrolment_tracking.degree_program_id" + ], + [ + "student_enrolment.semester_id", + "student_registration.semester_id" + ], + [ + "student_enrolment.semester_id", + "enrolment_tracking.semester_id" + ], + [ + "student_registration.semester_id", + "enrolment_tracking.semester_id" + ], + [ + "student_enrolment.student_id", + "student_registration.student_id" + ], + [ + "student_enrolment.student_id", + "enrolment_tracking.student_id" + ], + [ + "student_registration.student_id", + "enrolment_tracking.student_id" + ], + [ + "student_enrolment.other_details", + "student_registration.other_details" + ], + [ + "student_enrolment.other_details", + "enrolment_tracking.other_details" + ], + [ + "student_registration.other_details", + "enrolment_tracking.other_details" + ] + ] + }, + { + "question": "show the #date# and #id# of the transcript with at least 2 #course results# .", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "Grades": [ + "student_course_id", + "transcript_id" + ], + "Academic_Record": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "date", + "transcripts.transcript_date" + ], + [ + "id", + "transcript_contents.transcript_id" + ], + [ + "id", + "Grades.transcript_id" + ], + [ + "id", + "Academic_Record.transcript_id" + ], + [ + "course results", + "transcript_contents.student_course_id" + ], + [ + "course results", + "Grades.student_course_id" + ], + [ + "course results", + "Academic_Record.student_course_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "transcripts.transcript_date" + ], + [ + 1, + "transcript_contents.transcript_id" + ], + [ + 1, + "Grades.transcript_id" + ], + [ + 1, + "Academic_Record.transcript_id" + ], + [ + 2, + "transcript_contents.student_course_id" + ], + [ + 2, + "Grades.student_course_id" + ], + [ + 2, + "Academic_Record.student_course_id" + ] + ], + "linking_list_col": [ + [ + "transcript_contents.student_course_id", + "grades.student_course_id" + ], + [ + "transcript_contents.student_course_id", + "academic_record.student_course_id" + ], + [ + "grades.student_course_id", + "academic_record.student_course_id" + ], + [ + "transcript_contents.transcript_id", + "grades.transcript_id" + ], + [ + "transcript_contents.transcript_id", + "academic_record.transcript_id" + ], + [ + "grades.transcript_id", + "academic_record.transcript_id" + ] + ] + }, + { + "question": "what is the #date# and #id of the transcript# with at least 2 #courses# listed?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "Grades": [ + "student_course_id", + "transcript_id" + ], + "Academic_Record": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "date", + "transcripts.transcript_date" + ], + [ + "id of the transcript", + "transcripts.transcript_id" + ], + [ + "courses", + "transcript_contents.student_course_id" + ], + [ + "courses", + "Grades.student_course_id" + ], + [ + "courses", + "Academic_Record.student_course_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "transcripts.transcript_date" + ], + [ + 1, + "transcripts.transcript_id" + ], + [ + 2, + "transcript_contents.student_course_id" + ], + [ + 2, + "Grades.student_course_id" + ], + [ + 2, + "Academic_Record.student_course_id" + ] + ], + "linking_list_col": [ + [ + "transcript_contents.student_course_id", + "grades.student_course_id" + ], + [ + "transcript_contents.student_course_id", + "academic_record.student_course_id" + ], + [ + "grades.student_course_id", + "academic_record.student_course_id" + ], + [ + "transcript_contents.transcript_id", + "grades.transcript_id" + ], + [ + "transcript_contents.transcript_id", + "academic_record.transcript_id" + ], + [ + "grades.transcript_id", + "academic_record.transcript_id" + ] + ] + }, + { + "question": "what is the #phone number# of the man with the #first name# timmothy and the #last name# ward?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "Learners": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "Pupils": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ] + }, + "linking_list": [ + [ + "phone number", + "students.cell_mobile_number" + ], + [ + "phone number", + "Learners.cell_mobile_number" + ], + [ + "phone number", + "Pupils.cell_mobile_number" + ], + [ + "first name", + "students.first_name" + ], + [ + "first name", + "Learners.first_name" + ], + [ + "first name", + "Pupils.first_name" + ], + [ + "last name", + "students.last_name" + ], + [ + "last name", + "Learners.last_name" + ], + [ + "last name", + "Pupils.last_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.cell_mobile_number" + ], + [ + 0, + "Learners.cell_mobile_number" + ], + [ + 0, + "Pupils.cell_mobile_number" + ], + [ + 1, + "students.first_name" + ], + [ + 1, + "Learners.first_name" + ], + [ + 1, + "Pupils.first_name" + ], + [ + 2, + "students.last_name" + ], + [ + 2, + "Learners.last_name" + ], + [ + 2, + "Pupils.last_name" + ] + ], + "linking_list_col": [ + [ + "students.student_id", + "learners.student_id" + ], + [ + "students.student_id", + "pupils.student_id" + ], + [ + "learners.student_id", + "pupils.student_id" + ], + [ + "students.current_address_id", + "learners.current_address_id" + ], + [ + "students.current_address_id", + "pupils.current_address_id" + ], + [ + "learners.current_address_id", + "pupils.current_address_id" + ], + [ + "students.permanent_address_id", + "learners.permanent_address_id" + ], + [ + "students.permanent_address_id", + "pupils.permanent_address_id" + ], + [ + "learners.permanent_address_id", + "pupils.permanent_address_id" + ], + [ + "students.first_name", + "learners.first_name" + ], + [ + "students.first_name", + "pupils.first_name" + ], + [ + "learners.first_name", + "pupils.first_name" + ], + [ + "students.middle_name", + "learners.middle_name" + ], + [ + "students.middle_name", + "pupils.middle_name" + ], + [ + "learners.middle_name", + "pupils.middle_name" + ], + [ + "students.last_name", + "learners.last_name" + ], + [ + "students.last_name", + "pupils.last_name" + ], + [ + "learners.last_name", + "pupils.last_name" + ], + [ + "students.cell_mobile_number", + "learners.cell_mobile_number" + ], + [ + "students.cell_mobile_number", + "pupils.cell_mobile_number" + ], + [ + "learners.cell_mobile_number", + "pupils.cell_mobile_number" + ], + [ + "students.email_address", + "learners.email_address" + ], + [ + "students.email_address", + "pupils.email_address" + ], + [ + "learners.email_address", + "pupils.email_address" + ], + [ + "students.ssn", + "learners.ssn" + ], + [ + "students.ssn", + "pupils.ssn" + ], + [ + "learners.ssn", + "pupils.ssn" + ], + [ + "students.date_first_registered", + "learners.date_first_registered" + ], + [ + "students.date_first_registered", + "pupils.date_first_registered" + ], + [ + "learners.date_first_registered", + "pupils.date_first_registered" + ], + [ + "students.date_left", + "learners.date_left" + ], + [ + "students.date_left", + "pupils.date_left" + ], + [ + "learners.date_left", + "pupils.date_left" + ], + [ + "students.other_student_details", + "learners.other_student_details" + ], + [ + "students.other_student_details", + "pupils.other_student_details" + ], + [ + "learners.other_student_details", + "pupils.other_student_details" + ] + ] + }, + { + "question": "who is the first student to register? list the #first name# , #middle name# and #last name# .", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "Learners": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "Pupils": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ] + }, + "linking_list": [ + [ + "first name", + "students.first_name" + ], + [ + "first name", + "Learners.first_name" + ], + [ + "first name", + "Pupils.first_name" + ], + [ + "middle name", + "students.middle_name" + ], + [ + "middle name", + "Learners.middle_name" + ], + [ + "middle name", + "Pupils.middle_name" + ], + [ + "last name", + "students.last_name" + ], + [ + "last name", + "Learners.last_name" + ], + [ + "last name", + "Pupils.last_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.first_name" + ], + [ + 0, + "Learners.first_name" + ], + [ + 0, + "Pupils.first_name" + ], + [ + 1, + "students.middle_name" + ], + [ + 1, + "Learners.middle_name" + ], + [ + 1, + "Pupils.middle_name" + ], + [ + 2, + "students.last_name" + ], + [ + 2, + "Learners.last_name" + ], + [ + 2, + "Pupils.last_name" + ] + ], + "linking_list_col": [ + [ + "students.student_id", + "learners.student_id" + ], + [ + "students.student_id", + "pupils.student_id" + ], + [ + "learners.student_id", + "pupils.student_id" + ], + [ + "students.current_address_id", + "learners.current_address_id" + ], + [ + "students.current_address_id", + "pupils.current_address_id" + ], + [ + "learners.current_address_id", + "pupils.current_address_id" + ], + [ + "students.permanent_address_id", + "learners.permanent_address_id" + ], + [ + "students.permanent_address_id", + "pupils.permanent_address_id" + ], + [ + "learners.permanent_address_id", + "pupils.permanent_address_id" + ], + [ + "students.first_name", + "learners.first_name" + ], + [ + "students.first_name", + "pupils.first_name" + ], + [ + "learners.first_name", + "pupils.first_name" + ], + [ + "students.middle_name", + "learners.middle_name" + ], + [ + "students.middle_name", + "pupils.middle_name" + ], + [ + "learners.middle_name", + "pupils.middle_name" + ], + [ + "students.last_name", + "learners.last_name" + ], + [ + "students.last_name", + "pupils.last_name" + ], + [ + "learners.last_name", + "pupils.last_name" + ], + [ + "students.cell_mobile_number", + "learners.cell_mobile_number" + ], + [ + "students.cell_mobile_number", + "pupils.cell_mobile_number" + ], + [ + "learners.cell_mobile_number", + "pupils.cell_mobile_number" + ], + [ + "students.email_address", + "learners.email_address" + ], + [ + "students.email_address", + "pupils.email_address" + ], + [ + "learners.email_address", + "pupils.email_address" + ], + [ + "students.ssn", + "learners.ssn" + ], + [ + "students.ssn", + "pupils.ssn" + ], + [ + "learners.ssn", + "pupils.ssn" + ], + [ + "students.date_first_registered", + "learners.date_first_registered" + ], + [ + "students.date_first_registered", + "pupils.date_first_registered" + ], + [ + "learners.date_first_registered", + "pupils.date_first_registered" + ], + [ + "students.date_left", + "learners.date_left" + ], + [ + "students.date_left", + "pupils.date_left" + ], + [ + "learners.date_left", + "pupils.date_left" + ], + [ + "students.other_student_details", + "learners.other_student_details" + ], + [ + "students.other_student_details", + "pupils.other_student_details" + ], + [ + "learners.other_student_details", + "pupils.other_student_details" + ] + ] + }, + { + "question": "who is the earliest #graduate# of the school? list the #first name# , #middle name# and #last name# .", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "Learners": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "Pupils": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ] + }, + "linking_list": [ + [ + "graduate", + "students.date_left" + ], + [ + "graduate", + "Learners.date_left" + ], + [ + "graduate", + "Pupils.date_left" + ], + [ + "first name", + "students.first_name" + ], + [ + "first name", + "Learners.first_name" + ], + [ + "first name", + "Pupils.first_name" + ], + [ + "middle name", + "students.middle_name" + ], + [ + "middle name", + "Learners.middle_name" + ], + [ + "middle name", + "Pupils.middle_name" + ], + [ + "last name", + "students.last_name" + ], + [ + "last name", + "Learners.last_name" + ], + [ + "last name", + "Pupils.last_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.date_left" + ], + [ + 0, + "Learners.date_left" + ], + [ + 0, + "Pupils.date_left" + ], + [ + 1, + "students.first_name" + ], + [ + 1, + "Learners.first_name" + ], + [ + 1, + "Pupils.first_name" + ], + [ + 2, + "students.middle_name" + ], + [ + 2, + "Learners.middle_name" + ], + [ + 2, + "Pupils.middle_name" + ], + [ + 3, + "students.last_name" + ], + [ + 3, + "Learners.last_name" + ], + [ + 3, + "Pupils.last_name" + ] + ], + "linking_list_col": [ + [ + "students.student_id", + "learners.student_id" + ], + [ + "students.student_id", + "pupils.student_id" + ], + [ + "learners.student_id", + "pupils.student_id" + ], + [ + "students.current_address_id", + "learners.current_address_id" + ], + [ + "students.current_address_id", + "pupils.current_address_id" + ], + [ + "learners.current_address_id", + "pupils.current_address_id" + ], + [ + "students.permanent_address_id", + "learners.permanent_address_id" + ], + [ + "students.permanent_address_id", + "pupils.permanent_address_id" + ], + [ + "learners.permanent_address_id", + "pupils.permanent_address_id" + ], + [ + "students.first_name", + "learners.first_name" + ], + [ + "students.first_name", + "pupils.first_name" + ], + [ + "learners.first_name", + "pupils.first_name" + ], + [ + "students.middle_name", + "learners.middle_name" + ], + [ + "students.middle_name", + "pupils.middle_name" + ], + [ + "learners.middle_name", + "pupils.middle_name" + ], + [ + "students.last_name", + "learners.last_name" + ], + [ + "students.last_name", + "pupils.last_name" + ], + [ + "learners.last_name", + "pupils.last_name" + ], + [ + "students.cell_mobile_number", + "learners.cell_mobile_number" + ], + [ + "students.cell_mobile_number", + "pupils.cell_mobile_number" + ], + [ + "learners.cell_mobile_number", + "pupils.cell_mobile_number" + ], + [ + "students.email_address", + "learners.email_address" + ], + [ + "students.email_address", + "pupils.email_address" + ], + [ + "learners.email_address", + "pupils.email_address" + ], + [ + "students.ssn", + "learners.ssn" + ], + [ + "students.ssn", + "pupils.ssn" + ], + [ + "learners.ssn", + "pupils.ssn" + ], + [ + "students.date_first_registered", + "learners.date_first_registered" + ], + [ + "students.date_first_registered", + "pupils.date_first_registered" + ], + [ + "learners.date_first_registered", + "pupils.date_first_registered" + ], + [ + "students.date_left", + "learners.date_left" + ], + [ + "students.date_left", + "pupils.date_left" + ], + [ + "learners.date_left", + "pupils.date_left" + ], + [ + "students.other_student_details", + "learners.other_student_details" + ], + [ + "students.other_student_details", + "pupils.other_student_details" + ], + [ + "learners.other_student_details", + "pupils.other_student_details" + ] + ] + }, + { + "question": "whose #permanent address# is different from his or her current address? list his or her #first name# .", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "Learners": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "Pupils": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ] + }, + "linking_list": [ + [ + "permanent address", + "students.permanent_address_id" + ], + [ + "permanent address", + "Learners.permanent_address_id" + ], + [ + "permanent address", + "Pupils.permanent_address_id" + ], + [ + "first name", + "students.first_name" + ], + [ + "first name", + "Learners.first_name" + ], + [ + "first name", + "Pupils.first_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.permanent_address_id" + ], + [ + 0, + "Learners.permanent_address_id" + ], + [ + 0, + "Pupils.permanent_address_id" + ], + [ + 1, + "students.first_name" + ], + [ + 1, + "Learners.first_name" + ], + [ + 1, + "Pupils.first_name" + ] + ], + "linking_list_col": [ + [ + "students.student_id", + "learners.student_id" + ], + [ + "students.student_id", + "pupils.student_id" + ], + [ + "learners.student_id", + "pupils.student_id" + ], + [ + "students.current_address_id", + "learners.current_address_id" + ], + [ + "students.current_address_id", + "pupils.current_address_id" + ], + [ + "learners.current_address_id", + "pupils.current_address_id" + ], + [ + "students.permanent_address_id", + "learners.permanent_address_id" + ], + [ + "students.permanent_address_id", + "pupils.permanent_address_id" + ], + [ + "learners.permanent_address_id", + "pupils.permanent_address_id" + ], + [ + "students.first_name", + "learners.first_name" + ], + [ + "students.first_name", + "pupils.first_name" + ], + [ + "learners.first_name", + "pupils.first_name" + ], + [ + "students.middle_name", + "learners.middle_name" + ], + [ + "students.middle_name", + "pupils.middle_name" + ], + [ + "learners.middle_name", + "pupils.middle_name" + ], + [ + "students.last_name", + "learners.last_name" + ], + [ + "students.last_name", + "pupils.last_name" + ], + [ + "learners.last_name", + "pupils.last_name" + ], + [ + "students.cell_mobile_number", + "learners.cell_mobile_number" + ], + [ + "students.cell_mobile_number", + "pupils.cell_mobile_number" + ], + [ + "learners.cell_mobile_number", + "pupils.cell_mobile_number" + ], + [ + "students.email_address", + "learners.email_address" + ], + [ + "students.email_address", + "pupils.email_address" + ], + [ + "learners.email_address", + "pupils.email_address" + ], + [ + "students.ssn", + "learners.ssn" + ], + [ + "students.ssn", + "pupils.ssn" + ], + [ + "learners.ssn", + "pupils.ssn" + ], + [ + "students.date_first_registered", + "learners.date_first_registered" + ], + [ + "students.date_first_registered", + "pupils.date_first_registered" + ], + [ + "learners.date_first_registered", + "pupils.date_first_registered" + ], + [ + "students.date_left", + "learners.date_left" + ], + [ + "students.date_left", + "pupils.date_left" + ], + [ + "learners.date_left", + "pupils.date_left" + ], + [ + "students.other_student_details", + "learners.other_student_details" + ], + [ + "students.other_student_details", + "pupils.other_student_details" + ], + [ + "learners.other_student_details", + "pupils.other_student_details" + ] + ] + }, + { + "question": "what is the #first name of the student# whose #permanent address# is different from his or her current one?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "Learners": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "Pupils": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ] + }, + "linking_list": [ + [ + "first name of the student", + "students.first_name" + ], + [ + "first name of the student", + "Learners.first_name" + ], + [ + "first name of the student", + "Pupils.first_name" + ], + [ + "permanent address", + "students.permanent_address_id" + ], + [ + "permanent address", + "Learners.permanent_address_id" + ], + [ + "permanent address", + "Pupils.permanent_address_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.first_name" + ], + [ + 0, + "Learners.first_name" + ], + [ + 0, + "Pupils.first_name" + ], + [ + 1, + "students.permanent_address_id" + ], + [ + 1, + "Learners.permanent_address_id" + ], + [ + 1, + "Pupils.permanent_address_id" + ] + ], + "linking_list_col": [ + [ + "students.student_id", + "learners.student_id" + ], + [ + "students.student_id", + "pupils.student_id" + ], + [ + "learners.student_id", + "pupils.student_id" + ], + [ + "students.current_address_id", + "learners.current_address_id" + ], + [ + "students.current_address_id", + "pupils.current_address_id" + ], + [ + "learners.current_address_id", + "pupils.current_address_id" + ], + [ + "students.permanent_address_id", + "learners.permanent_address_id" + ], + [ + "students.permanent_address_id", + "pupils.permanent_address_id" + ], + [ + "learners.permanent_address_id", + "pupils.permanent_address_id" + ], + [ + "students.first_name", + "learners.first_name" + ], + [ + "students.first_name", + "pupils.first_name" + ], + [ + "learners.first_name", + "pupils.first_name" + ], + [ + "students.middle_name", + "learners.middle_name" + ], + [ + "students.middle_name", + "pupils.middle_name" + ], + [ + "learners.middle_name", + "pupils.middle_name" + ], + [ + "students.last_name", + "learners.last_name" + ], + [ + "students.last_name", + "pupils.last_name" + ], + [ + "learners.last_name", + "pupils.last_name" + ], + [ + "students.cell_mobile_number", + "learners.cell_mobile_number" + ], + [ + "students.cell_mobile_number", + "pupils.cell_mobile_number" + ], + [ + "learners.cell_mobile_number", + "pupils.cell_mobile_number" + ], + [ + "students.email_address", + "learners.email_address" + ], + [ + "students.email_address", + "pupils.email_address" + ], + [ + "learners.email_address", + "pupils.email_address" + ], + [ + "students.ssn", + "learners.ssn" + ], + [ + "students.ssn", + "pupils.ssn" + ], + [ + "learners.ssn", + "pupils.ssn" + ], + [ + "students.date_first_registered", + "learners.date_first_registered" + ], + [ + "students.date_first_registered", + "pupils.date_first_registered" + ], + [ + "learners.date_first_registered", + "pupils.date_first_registered" + ], + [ + "students.date_left", + "learners.date_left" + ], + [ + "students.date_left", + "pupils.date_left" + ], + [ + "learners.date_left", + "pupils.date_left" + ], + [ + "students.other_student_details", + "learners.other_student_details" + ], + [ + "students.other_student_details", + "pupils.other_student_details" + ], + [ + "learners.other_student_details", + "pupils.other_student_details" + ] + ] + }, + { + "question": "when is the first transcript released? list the #date# and #details# .", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "Academic_History": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "Grade_Report": [ + "transcript_id", + "transcript_date", + "other_details" + ] + }, + "linking_list": [ + [ + "date", + "transcripts.transcript_date" + ], + [ + "date", + "Academic_History.transcript_date" + ], + [ + "date", + "Grade_Report.transcript_date" + ], + [ + "details", + "transcripts.other_details" + ], + [ + "details", + "Academic_History.other_details" + ], + [ + "details", + "Grade_Report.other_details" + ] + ], + "linking_list_idx": [ + [ + 0, + "transcripts.transcript_date" + ], + [ + 0, + "Academic_History.transcript_date" + ], + [ + 0, + "Grade_Report.transcript_date" + ], + [ + 1, + "transcripts.other_details" + ], + [ + 1, + "Academic_History.other_details" + ], + [ + 1, + "Grade_Report.other_details" + ] + ], + "linking_list_col": [ + [ + "transcripts.transcript_id", + "academic_history.transcript_id" + ], + [ + "transcripts.transcript_id", + "grade_report.transcript_id" + ], + [ + "academic_history.transcript_id", + "grade_report.transcript_id" + ], + [ + "transcripts.transcript_date", + "academic_history.transcript_date" + ], + [ + "transcripts.transcript_date", + "grade_report.transcript_date" + ], + [ + "academic_history.transcript_date", + "grade_report.transcript_date" + ], + [ + "transcripts.other_details", + "academic_history.other_details" + ], + [ + "transcripts.other_details", + "grade_report.other_details" + ], + [ + "academic_history.other_details", + "grade_report.other_details" + ] + ] + }, + { + "question": "what is the earliest #date of a transcript release# , and what #details# can you tell me?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "Academic_History": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "Grade_Report": [ + "transcript_id", + "transcript_date", + "other_details" + ] + }, + "linking_list": [ + [ + "date of a transcript release", + "transcripts.transcript_date" + ], + [ + "date of a transcript release", + "Academic_History.transcript_date" + ], + [ + "date of a transcript release", + "Grade_Report.transcript_date" + ], + [ + "details", + "transcripts.other_details" + ], + [ + "details", + "Academic_History.other_details" + ], + [ + "details", + "Grade_Report.other_details" + ] + ], + "linking_list_idx": [ + [ + 0, + "transcripts.transcript_date" + ], + [ + 0, + "Academic_History.transcript_date" + ], + [ + 0, + "Grade_Report.transcript_date" + ], + [ + 1, + "transcripts.other_details" + ], + [ + 1, + "Academic_History.other_details" + ], + [ + 1, + "Grade_Report.other_details" + ] + ], + "linking_list_col": [ + [ + "transcripts.transcript_id", + "academic_history.transcript_id" + ], + [ + "transcripts.transcript_id", + "grade_report.transcript_id" + ], + [ + "academic_history.transcript_id", + "grade_report.transcript_id" + ], + [ + "transcripts.transcript_date", + "academic_history.transcript_date" + ], + [ + "transcripts.transcript_date", + "grade_report.transcript_date" + ], + [ + "academic_history.transcript_date", + "grade_report.transcript_date" + ], + [ + "transcripts.other_details", + "academic_history.other_details" + ], + [ + "transcripts.other_details", + "grade_report.other_details" + ], + [ + "academic_history.other_details", + "grade_report.other_details" + ] + ] + }, + { + "question": "when was the last #transcript# released?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "Academic_History": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "Grade_Report": [ + "transcript_id", + "transcript_date", + "other_details" + ] + }, + "linking_list": [ + [ + "transcript", + "transcripts.transcript_date" + ], + [ + "transcript", + "Academic_History.transcript_date" + ], + [ + "transcript", + "Grade_Report.transcript_date" + ] + ], + "linking_list_idx": [ + [ + 0, + "transcripts.transcript_date" + ], + [ + 0, + "Academic_History.transcript_date" + ], + [ + 0, + "Grade_Report.transcript_date" + ] + ], + "linking_list_col": [ + [ + "transcripts.transcript_id", + "academic_history.transcript_id" + ], + [ + "transcripts.transcript_id", + "grade_report.transcript_id" + ], + [ + "academic_history.transcript_id", + "grade_report.transcript_id" + ], + [ + "transcripts.transcript_date", + "academic_history.transcript_date" + ], + [ + "transcripts.transcript_date", + "grade_report.transcript_date" + ], + [ + "academic_history.transcript_date", + "grade_report.transcript_date" + ], + [ + "transcripts.other_details", + "academic_history.other_details" + ], + [ + "transcripts.other_details", + "grade_report.other_details" + ], + [ + "academic_history.other_details", + "grade_report.other_details" + ] + ] + }, + { + "question": "how many times at most can a #course enrollment result# show in different transcripts? also show the #course enrollment id# .", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "Grades": [ + "student_course_id", + "transcript_id" + ], + "Academic_Record": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "course enrollment result", + "transcript_contents.student_course_id" + ], + [ + "course enrollment result", + "Grades.student_course_id" + ], + [ + "course enrollment result", + "Academic_Record.student_course_id" + ], + [ + "course enrollment id", + "transcript_contents.student_course_id" + ], + [ + "course enrollment id", + "Grades.student_course_id" + ], + [ + "course enrollment id", + "Academic_Record.student_course_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "transcript_contents.student_course_id" + ], + [ + 0, + "Grades.student_course_id" + ], + [ + 0, + "Academic_Record.student_course_id" + ], + [ + 1, + "transcript_contents.student_course_id" + ], + [ + 1, + "Grades.student_course_id" + ], + [ + 1, + "Academic_Record.student_course_id" + ] + ], + "linking_list_col": [ + [ + "transcript_contents.student_course_id", + "grades.student_course_id" + ], + [ + "transcript_contents.student_course_id", + "academic_record.student_course_id" + ], + [ + "grades.student_course_id", + "academic_record.student_course_id" + ], + [ + "transcript_contents.transcript_id", + "grades.transcript_id" + ], + [ + "transcript_contents.transcript_id", + "academic_record.transcript_id" + ], + [ + "grades.transcript_id", + "academic_record.transcript_id" + ] + ] + }, + { + "question": "what is the maximum #number of times that a course shows up in different transcripts# and what is that course's enrollment id?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "Grades": [ + "student_course_id", + "transcript_id" + ], + "Academic_Record": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "number of times that a course shows up in different transcripts", + "transcript_contents.student_course_id" + ], + [ + "number of times that a course shows up in different transcripts", + "Grades.student_course_id" + ], + [ + "number of times that a course shows up in different transcripts", + "Academic_Record.student_course_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "transcript_contents.student_course_id" + ], + [ + 0, + "Grades.student_course_id" + ], + [ + 0, + "Academic_Record.student_course_id" + ] + ], + "linking_list_col": [ + [ + "transcript_contents.student_course_id", + "grades.student_course_id" + ], + [ + "transcript_contents.student_course_id", + "academic_record.student_course_id" + ], + [ + "grades.student_course_id", + "academic_record.student_course_id" + ], + [ + "transcript_contents.transcript_id", + "grades.transcript_id" + ], + [ + "transcript_contents.transcript_id", + "academic_record.transcript_id" + ], + [ + "grades.transcript_id", + "academic_record.transcript_id" + ] + ] + }, + { + "question": "list all the #student details# in reversed lexicographical order.", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "Learners": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "Pupils": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ] + }, + "linking_list": [ + [ + "student details", + "students.other_student_details" + ], + [ + "student details", + "Learners.other_student_details" + ], + [ + "student details", + "Pupils.other_student_details" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.other_student_details" + ], + [ + 0, + "Learners.other_student_details" + ], + [ + 0, + "Pupils.other_student_details" + ] + ], + "linking_list_col": [ + [ + "students.student_id", + "learners.student_id" + ], + [ + "students.student_id", + "pupils.student_id" + ], + [ + "learners.student_id", + "pupils.student_id" + ], + [ + "students.current_address_id", + "learners.current_address_id" + ], + [ + "students.current_address_id", + "pupils.current_address_id" + ], + [ + "learners.current_address_id", + "pupils.current_address_id" + ], + [ + "students.permanent_address_id", + "learners.permanent_address_id" + ], + [ + "students.permanent_address_id", + "pupils.permanent_address_id" + ], + [ + "learners.permanent_address_id", + "pupils.permanent_address_id" + ], + [ + "students.first_name", + "learners.first_name" + ], + [ + "students.first_name", + "pupils.first_name" + ], + [ + "learners.first_name", + "pupils.first_name" + ], + [ + "students.middle_name", + "learners.middle_name" + ], + [ + "students.middle_name", + "pupils.middle_name" + ], + [ + "learners.middle_name", + "pupils.middle_name" + ], + [ + "students.last_name", + "learners.last_name" + ], + [ + "students.last_name", + "pupils.last_name" + ], + [ + "learners.last_name", + "pupils.last_name" + ], + [ + "students.cell_mobile_number", + "learners.cell_mobile_number" + ], + [ + "students.cell_mobile_number", + "pupils.cell_mobile_number" + ], + [ + "learners.cell_mobile_number", + "pupils.cell_mobile_number" + ], + [ + "students.email_address", + "learners.email_address" + ], + [ + "students.email_address", + "pupils.email_address" + ], + [ + "learners.email_address", + "pupils.email_address" + ], + [ + "students.ssn", + "learners.ssn" + ], + [ + "students.ssn", + "pupils.ssn" + ], + [ + "learners.ssn", + "pupils.ssn" + ], + [ + "students.date_first_registered", + "learners.date_first_registered" + ], + [ + "students.date_first_registered", + "pupils.date_first_registered" + ], + [ + "learners.date_first_registered", + "pupils.date_first_registered" + ], + [ + "students.date_left", + "learners.date_left" + ], + [ + "students.date_left", + "pupils.date_left" + ], + [ + "learners.date_left", + "pupils.date_left" + ], + [ + "students.other_student_details", + "learners.other_student_details" + ], + [ + "students.other_student_details", + "pupils.other_student_details" + ], + [ + "learners.other_student_details", + "pupils.other_student_details" + ] + ] + }, + { + "question": "what #other details# can you tell me about students in reverse alphabetical order?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "Learners": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "Pupils": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ] + }, + "linking_list": [ + [ + "other details", + "students.other_student_details" + ], + [ + "other details", + "Learners.other_student_details" + ], + [ + "other details", + "Pupils.other_student_details" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.other_student_details" + ], + [ + 0, + "Learners.other_student_details" + ], + [ + 0, + "Pupils.other_student_details" + ] + ], + "linking_list_col": [ + [ + "students.student_id", + "learners.student_id" + ], + [ + "students.student_id", + "pupils.student_id" + ], + [ + "learners.student_id", + "pupils.student_id" + ], + [ + "students.current_address_id", + "learners.current_address_id" + ], + [ + "students.current_address_id", + "pupils.current_address_id" + ], + [ + "learners.current_address_id", + "pupils.current_address_id" + ], + [ + "students.permanent_address_id", + "learners.permanent_address_id" + ], + [ + "students.permanent_address_id", + "pupils.permanent_address_id" + ], + [ + "learners.permanent_address_id", + "pupils.permanent_address_id" + ], + [ + "students.first_name", + "learners.first_name" + ], + [ + "students.first_name", + "pupils.first_name" + ], + [ + "learners.first_name", + "pupils.first_name" + ], + [ + "students.middle_name", + "learners.middle_name" + ], + [ + "students.middle_name", + "pupils.middle_name" + ], + [ + "learners.middle_name", + "pupils.middle_name" + ], + [ + "students.last_name", + "learners.last_name" + ], + [ + "students.last_name", + "pupils.last_name" + ], + [ + "learners.last_name", + "pupils.last_name" + ], + [ + "students.cell_mobile_number", + "learners.cell_mobile_number" + ], + [ + "students.cell_mobile_number", + "pupils.cell_mobile_number" + ], + [ + "learners.cell_mobile_number", + "pupils.cell_mobile_number" + ], + [ + "students.email_address", + "learners.email_address" + ], + [ + "students.email_address", + "pupils.email_address" + ], + [ + "learners.email_address", + "pupils.email_address" + ], + [ + "students.ssn", + "learners.ssn" + ], + [ + "students.ssn", + "pupils.ssn" + ], + [ + "learners.ssn", + "pupils.ssn" + ], + [ + "students.date_first_registered", + "learners.date_first_registered" + ], + [ + "students.date_first_registered", + "pupils.date_first_registered" + ], + [ + "learners.date_first_registered", + "pupils.date_first_registered" + ], + [ + "students.date_left", + "learners.date_left" + ], + [ + "students.date_left", + "pupils.date_left" + ], + [ + "learners.date_left", + "pupils.date_left" + ], + [ + "students.other_student_details", + "learners.other_student_details" + ], + [ + "students.other_student_details", + "pupils.other_student_details" + ], + [ + "learners.other_student_details", + "pupils.other_student_details" + ] + ] + }, + { + "question": "list the #title of all cartoons# in alphabetical order.", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "animated_series": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "toons": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "title of all cartoons", + "cartoon.title" + ], + [ + "title of all cartoons", + "animated_series.title" + ], + [ + "title of all cartoons", + "toons.title" + ] + ], + "linking_list_idx": [ + [ + 0, + "cartoon.title" + ], + [ + 0, + "animated_series.title" + ], + [ + 0, + "toons.title" + ] + ], + "linking_list_col": [ + [ + "cartoon.id", + "animated_series.id" + ], + [ + "cartoon.id", + "toons.id" + ], + [ + "animated_series.id", + "toons.id" + ], + [ + "cartoon.title", + "animated_series.title" + ], + [ + "cartoon.title", + "toons.title" + ], + [ + "animated_series.title", + "toons.title" + ], + [ + "cartoon.directed_by", + "animated_series.directed_by" + ], + [ + "cartoon.directed_by", + "toons.directed_by" + ], + [ + "animated_series.directed_by", + "toons.directed_by" + ], + [ + "cartoon.written_by", + "animated_series.written_by" + ], + [ + "cartoon.written_by", + "toons.written_by" + ], + [ + "animated_series.written_by", + "toons.written_by" + ], + [ + "cartoon.original_air_date", + "animated_series.original_air_date" + ], + [ + "cartoon.original_air_date", + "toons.original_air_date" + ], + [ + "animated_series.original_air_date", + "toons.original_air_date" + ], + [ + "cartoon.production_code", + "animated_series.production_code" + ], + [ + "cartoon.production_code", + "toons.production_code" + ], + [ + "animated_series.production_code", + "toons.production_code" + ], + [ + "cartoon.channel", + "animated_series.channel" + ], + [ + "cartoon.channel", + "toons.channel" + ], + [ + "animated_series.channel", + "toons.channel" + ] + ] + }, + { + "question": "what are the #titles of the cartoons# sorted alphabetically?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "animated_series": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "toons": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "titles of the cartoons", + "cartoon.title" + ], + [ + "titles of the cartoons", + "animated_series.title" + ], + [ + "titles of the cartoons", + "toons.title" + ] + ], + "linking_list_idx": [ + [ + 0, + "cartoon.title" + ], + [ + 0, + "animated_series.title" + ], + [ + 0, + "toons.title" + ] + ], + "linking_list_col": [ + [ + "cartoon.id", + "animated_series.id" + ], + [ + "cartoon.id", + "toons.id" + ], + [ + "animated_series.id", + "toons.id" + ], + [ + "cartoon.title", + "animated_series.title" + ], + [ + "cartoon.title", + "toons.title" + ], + [ + "animated_series.title", + "toons.title" + ], + [ + "cartoon.directed_by", + "animated_series.directed_by" + ], + [ + "cartoon.directed_by", + "toons.directed_by" + ], + [ + "animated_series.directed_by", + "toons.directed_by" + ], + [ + "cartoon.written_by", + "animated_series.written_by" + ], + [ + "cartoon.written_by", + "toons.written_by" + ], + [ + "animated_series.written_by", + "toons.written_by" + ], + [ + "cartoon.original_air_date", + "animated_series.original_air_date" + ], + [ + "cartoon.original_air_date", + "toons.original_air_date" + ], + [ + "animated_series.original_air_date", + "toons.original_air_date" + ], + [ + "cartoon.production_code", + "animated_series.production_code" + ], + [ + "cartoon.production_code", + "toons.production_code" + ], + [ + "animated_series.production_code", + "toons.production_code" + ], + [ + "cartoon.channel", + "animated_series.channel" + ], + [ + "cartoon.channel", + "toons.channel" + ], + [ + "animated_series.channel", + "toons.channel" + ] + ] + }, + { + "question": "how many cartoons were #written by# \"joseph kuhr\"?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "animated_series": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "toons": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "written by", + "cartoon.written_by" + ], + [ + "written by", + "animated_series.written_by" + ], + [ + "written by", + "toons.written_by" + ] + ], + "linking_list_idx": [ + [ + 0, + "cartoon.written_by" + ], + [ + 0, + "animated_series.written_by" + ], + [ + 0, + "toons.written_by" + ] + ], + "linking_list_col": [ + [ + "cartoon.id", + "animated_series.id" + ], + [ + "cartoon.id", + "toons.id" + ], + [ + "animated_series.id", + "toons.id" + ], + [ + "cartoon.title", + "animated_series.title" + ], + [ + "cartoon.title", + "toons.title" + ], + [ + "animated_series.title", + "toons.title" + ], + [ + "cartoon.directed_by", + "animated_series.directed_by" + ], + [ + "cartoon.directed_by", + "toons.directed_by" + ], + [ + "animated_series.directed_by", + "toons.directed_by" + ], + [ + "cartoon.written_by", + "animated_series.written_by" + ], + [ + "cartoon.written_by", + "toons.written_by" + ], + [ + "animated_series.written_by", + "toons.written_by" + ], + [ + "cartoon.original_air_date", + "animated_series.original_air_date" + ], + [ + "cartoon.original_air_date", + "toons.original_air_date" + ], + [ + "animated_series.original_air_date", + "toons.original_air_date" + ], + [ + "cartoon.production_code", + "animated_series.production_code" + ], + [ + "cartoon.production_code", + "toons.production_code" + ], + [ + "animated_series.production_code", + "toons.production_code" + ], + [ + "cartoon.channel", + "animated_series.channel" + ], + [ + "cartoon.channel", + "toons.channel" + ], + [ + "animated_series.channel", + "toons.channel" + ] + ] + }, + { + "question": "list all #cartoon titles# and their #directors# ordered by their air date", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "animated_series": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "toons": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "cartoon titles", + "cartoon.title" + ], + [ + "cartoon titles", + "animated_series.title" + ], + [ + "cartoon titles", + "toons.title" + ], + [ + "directors", + "cartoon.directed_by" + ], + [ + "directors", + "animated_series.directed_by" + ], + [ + "directors", + "toons.directed_by" + ] + ], + "linking_list_idx": [ + [ + 0, + "cartoon.title" + ], + [ + 0, + "animated_series.title" + ], + [ + 0, + "toons.title" + ], + [ + 1, + "cartoon.directed_by" + ], + [ + 1, + "animated_series.directed_by" + ], + [ + 1, + "toons.directed_by" + ] + ], + "linking_list_col": [ + [ + "cartoon.id", + "animated_series.id" + ], + [ + "cartoon.id", + "toons.id" + ], + [ + "animated_series.id", + "toons.id" + ], + [ + "cartoon.title", + "animated_series.title" + ], + [ + "cartoon.title", + "toons.title" + ], + [ + "animated_series.title", + "toons.title" + ], + [ + "cartoon.directed_by", + "animated_series.directed_by" + ], + [ + "cartoon.directed_by", + "toons.directed_by" + ], + [ + "animated_series.directed_by", + "toons.directed_by" + ], + [ + "cartoon.written_by", + "animated_series.written_by" + ], + [ + "cartoon.written_by", + "toons.written_by" + ], + [ + "animated_series.written_by", + "toons.written_by" + ], + [ + "cartoon.original_air_date", + "animated_series.original_air_date" + ], + [ + "cartoon.original_air_date", + "toons.original_air_date" + ], + [ + "animated_series.original_air_date", + "toons.original_air_date" + ], + [ + "cartoon.production_code", + "animated_series.production_code" + ], + [ + "cartoon.production_code", + "toons.production_code" + ], + [ + "animated_series.production_code", + "toons.production_code" + ], + [ + "cartoon.channel", + "animated_series.channel" + ], + [ + "cartoon.channel", + "toons.channel" + ], + [ + "animated_series.channel", + "toons.channel" + ] + ] + }, + { + "question": "what is the #name# and #directors of all the cartoons# that are ordered by air date?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "animated_series": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "toons": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "name", + "cartoon.title" + ], + [ + "name", + "animated_series.title" + ], + [ + "name", + "toons.title" + ], + [ + "directors of all the cartoons", + "cartoon.directed_by" + ], + [ + "directors of all the cartoons", + "animated_series.directed_by" + ], + [ + "directors of all the cartoons", + "toons.directed_by" + ] + ], + "linking_list_idx": [ + [ + 0, + "cartoon.title" + ], + [ + 0, + "animated_series.title" + ], + [ + 0, + "toons.title" + ], + [ + 1, + "cartoon.directed_by" + ], + [ + 1, + "animated_series.directed_by" + ], + [ + 1, + "toons.directed_by" + ] + ], + "linking_list_col": [ + [ + "cartoon.id", + "animated_series.id" + ], + [ + "cartoon.id", + "toons.id" + ], + [ + "animated_series.id", + "toons.id" + ], + [ + "cartoon.title", + "animated_series.title" + ], + [ + "cartoon.title", + "toons.title" + ], + [ + "animated_series.title", + "toons.title" + ], + [ + "cartoon.directed_by", + "animated_series.directed_by" + ], + [ + "cartoon.directed_by", + "toons.directed_by" + ], + [ + "animated_series.directed_by", + "toons.directed_by" + ], + [ + "cartoon.written_by", + "animated_series.written_by" + ], + [ + "cartoon.written_by", + "toons.written_by" + ], + [ + "animated_series.written_by", + "toons.written_by" + ], + [ + "cartoon.original_air_date", + "animated_series.original_air_date" + ], + [ + "cartoon.original_air_date", + "toons.original_air_date" + ], + [ + "animated_series.original_air_date", + "toons.original_air_date" + ], + [ + "cartoon.production_code", + "animated_series.production_code" + ], + [ + "cartoon.production_code", + "toons.production_code" + ], + [ + "animated_series.production_code", + "toons.production_code" + ], + [ + "cartoon.channel", + "animated_series.channel" + ], + [ + "cartoon.channel", + "toons.channel" + ], + [ + "animated_series.channel", + "toons.channel" + ] + ] + }, + { + "question": "which #country# has the most of tv channels? list the country and number of tv channels it has.", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "Broadcasting_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "Television_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ] + }, + "linking_list": [ + [ + "country", + "tv_channel.country" + ], + [ + "country", + "Broadcasting_Channel.country" + ], + [ + "country", + "Television_Channel.country" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.country" + ], + [ + 0, + "Broadcasting_Channel.country" + ], + [ + 0, + "Television_Channel.country" + ] + ], + "linking_list_col": [ + [ + "tv_channel.id", + "broadcasting_channel.id" + ], + [ + "tv_channel.id", + "television_channel.id" + ], + [ + "broadcasting_channel.id", + "television_channel.id" + ], + [ + "tv_channel.series_name", + "broadcasting_channel.series_name" + ], + [ + "tv_channel.series_name", + "television_channel.series_name" + ], + [ + "broadcasting_channel.series_name", + "television_channel.series_name" + ], + [ + "tv_channel.country", + "broadcasting_channel.country" + ], + [ + "tv_channel.country", + "television_channel.country" + ], + [ + "broadcasting_channel.country", + "television_channel.country" + ], + [ + "tv_channel.language", + "broadcasting_channel.language" + ], + [ + "tv_channel.language", + "television_channel.language" + ], + [ + "broadcasting_channel.language", + "television_channel.language" + ], + [ + "tv_channel.content", + "broadcasting_channel.content" + ], + [ + "tv_channel.content", + "television_channel.content" + ], + [ + "broadcasting_channel.content", + "television_channel.content" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "broadcasting_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "broadcasting_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.hight_definition_tv", + "broadcasting_channel.hight_definition_tv" + ], + [ + "tv_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "broadcasting_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "tv_channel.pay_per_view_ppv", + "broadcasting_channel.pay_per_view_ppv" + ], + [ + "tv_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "broadcasting_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "tv_channel.package_option", + "broadcasting_channel.package_option" + ], + [ + "tv_channel.package_option", + "television_channel.package_option" + ], + [ + "broadcasting_channel.package_option", + "television_channel.package_option" + ] + ] + }, + { + "question": "what is the #country# with the most number of tv channels and how many does it have?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "Broadcasting_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "Television_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ] + }, + "linking_list": [ + [ + "country", + "tv_channel.country" + ], + [ + "country", + "Broadcasting_Channel.country" + ], + [ + "country", + "Television_Channel.country" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.country" + ], + [ + 0, + "Broadcasting_Channel.country" + ], + [ + 0, + "Television_Channel.country" + ] + ], + "linking_list_col": [ + [ + "tv_channel.id", + "broadcasting_channel.id" + ], + [ + "tv_channel.id", + "television_channel.id" + ], + [ + "broadcasting_channel.id", + "television_channel.id" + ], + [ + "tv_channel.series_name", + "broadcasting_channel.series_name" + ], + [ + "tv_channel.series_name", + "television_channel.series_name" + ], + [ + "broadcasting_channel.series_name", + "television_channel.series_name" + ], + [ + "tv_channel.country", + "broadcasting_channel.country" + ], + [ + "tv_channel.country", + "television_channel.country" + ], + [ + "broadcasting_channel.country", + "television_channel.country" + ], + [ + "tv_channel.language", + "broadcasting_channel.language" + ], + [ + "tv_channel.language", + "television_channel.language" + ], + [ + "broadcasting_channel.language", + "television_channel.language" + ], + [ + "tv_channel.content", + "broadcasting_channel.content" + ], + [ + "tv_channel.content", + "television_channel.content" + ], + [ + "broadcasting_channel.content", + "television_channel.content" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "broadcasting_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "broadcasting_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.hight_definition_tv", + "broadcasting_channel.hight_definition_tv" + ], + [ + "tv_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "broadcasting_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "tv_channel.pay_per_view_ppv", + "broadcasting_channel.pay_per_view_ppv" + ], + [ + "tv_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "broadcasting_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "tv_channel.package_option", + "broadcasting_channel.package_option" + ], + [ + "tv_channel.package_option", + "television_channel.package_option" + ], + [ + "broadcasting_channel.package_option", + "television_channel.package_option" + ] + ] + }, + { + "question": "what is the #content of tv channel with serial name# \"sky radio\"?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "Broadcasting_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "Television_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ] + }, + "linking_list": [ + [ + "content of TV Channel with serial name", + "tv_channel.content" + ], + [ + "content of TV Channel with serial name", + "Broadcasting_Channel.content" + ], + [ + "content of TV Channel with serial name", + "Television_Channel.content" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.content" + ], + [ + 0, + "Broadcasting_Channel.content" + ], + [ + 0, + "Television_Channel.content" + ] + ], + "linking_list_col": [ + [ + "tv_channel.id", + "broadcasting_channel.id" + ], + [ + "tv_channel.id", + "television_channel.id" + ], + [ + "broadcasting_channel.id", + "television_channel.id" + ], + [ + "tv_channel.series_name", + "broadcasting_channel.series_name" + ], + [ + "tv_channel.series_name", + "television_channel.series_name" + ], + [ + "broadcasting_channel.series_name", + "television_channel.series_name" + ], + [ + "tv_channel.country", + "broadcasting_channel.country" + ], + [ + "tv_channel.country", + "television_channel.country" + ], + [ + "broadcasting_channel.country", + "television_channel.country" + ], + [ + "tv_channel.language", + "broadcasting_channel.language" + ], + [ + "tv_channel.language", + "television_channel.language" + ], + [ + "broadcasting_channel.language", + "television_channel.language" + ], + [ + "tv_channel.content", + "broadcasting_channel.content" + ], + [ + "tv_channel.content", + "television_channel.content" + ], + [ + "broadcasting_channel.content", + "television_channel.content" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "broadcasting_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "broadcasting_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.hight_definition_tv", + "broadcasting_channel.hight_definition_tv" + ], + [ + "tv_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "broadcasting_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "tv_channel.pay_per_view_ppv", + "broadcasting_channel.pay_per_view_ppv" + ], + [ + "tv_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "broadcasting_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "tv_channel.package_option", + "broadcasting_channel.package_option" + ], + [ + "tv_channel.package_option", + "television_channel.package_option" + ], + [ + "broadcasting_channel.package_option", + "television_channel.package_option" + ] + ] + }, + { + "question": "what is the #content of the series# sky radio?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "Broadcasting_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "Television_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ] + }, + "linking_list": [ + [ + "content of the series", + "tv_channel.content" + ], + [ + "content of the series", + "Broadcasting_Channel.content" + ], + [ + "content of the series", + "Television_Channel.content" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.content" + ], + [ + 0, + "Broadcasting_Channel.content" + ], + [ + 0, + "Television_Channel.content" + ] + ], + "linking_list_col": [ + [ + "tv_channel.id", + "broadcasting_channel.id" + ], + [ + "tv_channel.id", + "television_channel.id" + ], + [ + "broadcasting_channel.id", + "television_channel.id" + ], + [ + "tv_channel.series_name", + "broadcasting_channel.series_name" + ], + [ + "tv_channel.series_name", + "television_channel.series_name" + ], + [ + "broadcasting_channel.series_name", + "television_channel.series_name" + ], + [ + "tv_channel.country", + "broadcasting_channel.country" + ], + [ + "tv_channel.country", + "television_channel.country" + ], + [ + "broadcasting_channel.country", + "television_channel.country" + ], + [ + "tv_channel.language", + "broadcasting_channel.language" + ], + [ + "tv_channel.language", + "television_channel.language" + ], + [ + "broadcasting_channel.language", + "television_channel.language" + ], + [ + "tv_channel.content", + "broadcasting_channel.content" + ], + [ + "tv_channel.content", + "television_channel.content" + ], + [ + "broadcasting_channel.content", + "television_channel.content" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "broadcasting_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "broadcasting_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.hight_definition_tv", + "broadcasting_channel.hight_definition_tv" + ], + [ + "tv_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "broadcasting_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "tv_channel.pay_per_view_ppv", + "broadcasting_channel.pay_per_view_ppv" + ], + [ + "tv_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "broadcasting_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "tv_channel.package_option", + "broadcasting_channel.package_option" + ], + [ + "tv_channel.package_option", + "television_channel.package_option" + ], + [ + "broadcasting_channel.package_option", + "television_channel.package_option" + ] + ] + }, + { + "question": "what is the #package option of tv channel with serial name# \"sky radio\"?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "Broadcasting_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "Television_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ] + }, + "linking_list": [ + [ + "Package Option of TV Channel with serial name", + "tv_channel.package_option" + ], + [ + "Package Option of TV Channel with serial name", + "Broadcasting_Channel.package_option" + ], + [ + "Package Option of TV Channel with serial name", + "Television_Channel.package_option" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.package_option" + ], + [ + 0, + "Broadcasting_Channel.package_option" + ], + [ + 0, + "Television_Channel.package_option" + ] + ], + "linking_list_col": [ + [ + "tv_channel.id", + "broadcasting_channel.id" + ], + [ + "tv_channel.id", + "television_channel.id" + ], + [ + "broadcasting_channel.id", + "television_channel.id" + ], + [ + "tv_channel.series_name", + "broadcasting_channel.series_name" + ], + [ + "tv_channel.series_name", + "television_channel.series_name" + ], + [ + "broadcasting_channel.series_name", + "television_channel.series_name" + ], + [ + "tv_channel.country", + "broadcasting_channel.country" + ], + [ + "tv_channel.country", + "television_channel.country" + ], + [ + "broadcasting_channel.country", + "television_channel.country" + ], + [ + "tv_channel.language", + "broadcasting_channel.language" + ], + [ + "tv_channel.language", + "television_channel.language" + ], + [ + "broadcasting_channel.language", + "television_channel.language" + ], + [ + "tv_channel.content", + "broadcasting_channel.content" + ], + [ + "tv_channel.content", + "television_channel.content" + ], + [ + "broadcasting_channel.content", + "television_channel.content" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "broadcasting_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "broadcasting_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.hight_definition_tv", + "broadcasting_channel.hight_definition_tv" + ], + [ + "tv_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "broadcasting_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "tv_channel.pay_per_view_ppv", + "broadcasting_channel.pay_per_view_ppv" + ], + [ + "tv_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "broadcasting_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "tv_channel.package_option", + "broadcasting_channel.package_option" + ], + [ + "tv_channel.package_option", + "television_channel.package_option" + ], + [ + "broadcasting_channel.package_option", + "television_channel.package_option" + ] + ] + }, + { + "question": "what are the #package options of the tv channels# whose #series names# are sky radio?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "Broadcasting_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "Television_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ] + }, + "linking_list": [ + [ + "Package Options of the TV Channels", + "tv_channel.package_option" + ], + [ + "Package Options of the TV Channels", + "Broadcasting_Channel.package_option" + ], + [ + "Package Options of the TV Channels", + "Television_Channel.package_option" + ], + [ + "series names", + "tv_channel.series_name" + ], + [ + "series names", + "Broadcasting_Channel.series_name" + ], + [ + "series names", + "Television_Channel.series_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.package_option" + ], + [ + 0, + "Broadcasting_Channel.package_option" + ], + [ + 0, + "Television_Channel.package_option" + ], + [ + 1, + "tv_channel.series_name" + ], + [ + 1, + "Broadcasting_Channel.series_name" + ], + [ + 1, + "Television_Channel.series_name" + ] + ], + "linking_list_col": [ + [ + "tv_channel.id", + "broadcasting_channel.id" + ], + [ + "tv_channel.id", + "television_channel.id" + ], + [ + "broadcasting_channel.id", + "television_channel.id" + ], + [ + "tv_channel.series_name", + "broadcasting_channel.series_name" + ], + [ + "tv_channel.series_name", + "television_channel.series_name" + ], + [ + "broadcasting_channel.series_name", + "television_channel.series_name" + ], + [ + "tv_channel.country", + "broadcasting_channel.country" + ], + [ + "tv_channel.country", + "television_channel.country" + ], + [ + "broadcasting_channel.country", + "television_channel.country" + ], + [ + "tv_channel.language", + "broadcasting_channel.language" + ], + [ + "tv_channel.language", + "television_channel.language" + ], + [ + "broadcasting_channel.language", + "television_channel.language" + ], + [ + "tv_channel.content", + "broadcasting_channel.content" + ], + [ + "tv_channel.content", + "television_channel.content" + ], + [ + "broadcasting_channel.content", + "television_channel.content" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "broadcasting_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "broadcasting_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.hight_definition_tv", + "broadcasting_channel.hight_definition_tv" + ], + [ + "tv_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "broadcasting_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "tv_channel.pay_per_view_ppv", + "broadcasting_channel.pay_per_view_ppv" + ], + [ + "tv_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "broadcasting_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "tv_channel.package_option", + "broadcasting_channel.package_option" + ], + [ + "tv_channel.package_option", + "television_channel.package_option" + ], + [ + "broadcasting_channel.package_option", + "television_channel.package_option" + ] + ] + }, + { + "question": "list the #language# used least number of tv channel. list language and number of tv channel.", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "Broadcasting_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "Television_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ] + }, + "linking_list": [ + [ + "language", + "tv_channel.language" + ], + [ + "language", + "Broadcasting_Channel.language" + ], + [ + "language", + "Television_Channel.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.language" + ], + [ + 0, + "Broadcasting_Channel.language" + ], + [ + 0, + "Television_Channel.language" + ] + ], + "linking_list_col": [ + [ + "tv_channel.id", + "broadcasting_channel.id" + ], + [ + "tv_channel.id", + "television_channel.id" + ], + [ + "broadcasting_channel.id", + "television_channel.id" + ], + [ + "tv_channel.series_name", + "broadcasting_channel.series_name" + ], + [ + "tv_channel.series_name", + "television_channel.series_name" + ], + [ + "broadcasting_channel.series_name", + "television_channel.series_name" + ], + [ + "tv_channel.country", + "broadcasting_channel.country" + ], + [ + "tv_channel.country", + "television_channel.country" + ], + [ + "broadcasting_channel.country", + "television_channel.country" + ], + [ + "tv_channel.language", + "broadcasting_channel.language" + ], + [ + "tv_channel.language", + "television_channel.language" + ], + [ + "broadcasting_channel.language", + "television_channel.language" + ], + [ + "tv_channel.content", + "broadcasting_channel.content" + ], + [ + "tv_channel.content", + "television_channel.content" + ], + [ + "broadcasting_channel.content", + "television_channel.content" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "broadcasting_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "broadcasting_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.hight_definition_tv", + "broadcasting_channel.hight_definition_tv" + ], + [ + "tv_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "broadcasting_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "tv_channel.pay_per_view_ppv", + "broadcasting_channel.pay_per_view_ppv" + ], + [ + "tv_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "broadcasting_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "tv_channel.package_option", + "broadcasting_channel.package_option" + ], + [ + "tv_channel.package_option", + "television_channel.package_option" + ], + [ + "broadcasting_channel.package_option", + "television_channel.package_option" + ] + ] + }, + { + "question": "what are the #languages# used by the least number of tv channels and how many channels use it?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "Broadcasting_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "Television_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ] + }, + "linking_list": [ + [ + "languages", + "tv_channel.language" + ], + [ + "languages", + "Broadcasting_Channel.language" + ], + [ + "languages", + "Television_Channel.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.language" + ], + [ + 0, + "Broadcasting_Channel.language" + ], + [ + 0, + "Television_Channel.language" + ] + ], + "linking_list_col": [ + [ + "tv_channel.id", + "broadcasting_channel.id" + ], + [ + "tv_channel.id", + "television_channel.id" + ], + [ + "broadcasting_channel.id", + "television_channel.id" + ], + [ + "tv_channel.series_name", + "broadcasting_channel.series_name" + ], + [ + "tv_channel.series_name", + "television_channel.series_name" + ], + [ + "broadcasting_channel.series_name", + "television_channel.series_name" + ], + [ + "tv_channel.country", + "broadcasting_channel.country" + ], + [ + "tv_channel.country", + "television_channel.country" + ], + [ + "broadcasting_channel.country", + "television_channel.country" + ], + [ + "tv_channel.language", + "broadcasting_channel.language" + ], + [ + "tv_channel.language", + "television_channel.language" + ], + [ + "broadcasting_channel.language", + "television_channel.language" + ], + [ + "tv_channel.content", + "broadcasting_channel.content" + ], + [ + "tv_channel.content", + "television_channel.content" + ], + [ + "broadcasting_channel.content", + "television_channel.content" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "broadcasting_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "broadcasting_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.hight_definition_tv", + "broadcasting_channel.hight_definition_tv" + ], + [ + "tv_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "broadcasting_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "tv_channel.pay_per_view_ppv", + "broadcasting_channel.pay_per_view_ppv" + ], + [ + "tv_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "broadcasting_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "tv_channel.package_option", + "broadcasting_channel.package_option" + ], + [ + "tv_channel.package_option", + "television_channel.package_option" + ], + [ + "broadcasting_channel.package_option", + "television_channel.package_option" + ] + ] + }, + { + "question": "list each #language# and the number of tv channels using it.", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "Broadcasting_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "Television_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ] + }, + "linking_list": [ + [ + "language", + "tv_channel.language" + ], + [ + "language", + "Broadcasting_Channel.language" + ], + [ + "language", + "Television_Channel.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.language" + ], + [ + 0, + "Broadcasting_Channel.language" + ], + [ + 0, + "Television_Channel.language" + ] + ], + "linking_list_col": [ + [ + "tv_channel.id", + "broadcasting_channel.id" + ], + [ + "tv_channel.id", + "television_channel.id" + ], + [ + "broadcasting_channel.id", + "television_channel.id" + ], + [ + "tv_channel.series_name", + "broadcasting_channel.series_name" + ], + [ + "tv_channel.series_name", + "television_channel.series_name" + ], + [ + "broadcasting_channel.series_name", + "television_channel.series_name" + ], + [ + "tv_channel.country", + "broadcasting_channel.country" + ], + [ + "tv_channel.country", + "television_channel.country" + ], + [ + "broadcasting_channel.country", + "television_channel.country" + ], + [ + "tv_channel.language", + "broadcasting_channel.language" + ], + [ + "tv_channel.language", + "television_channel.language" + ], + [ + "broadcasting_channel.language", + "television_channel.language" + ], + [ + "tv_channel.content", + "broadcasting_channel.content" + ], + [ + "tv_channel.content", + "television_channel.content" + ], + [ + "broadcasting_channel.content", + "television_channel.content" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "broadcasting_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "broadcasting_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.hight_definition_tv", + "broadcasting_channel.hight_definition_tv" + ], + [ + "tv_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "broadcasting_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "tv_channel.pay_per_view_ppv", + "broadcasting_channel.pay_per_view_ppv" + ], + [ + "tv_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "broadcasting_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "tv_channel.package_option", + "broadcasting_channel.package_option" + ], + [ + "tv_channel.package_option", + "television_channel.package_option" + ], + [ + "broadcasting_channel.package_option", + "television_channel.package_option" + ] + ] + }, + { + "question": "for each #language# , list the number of tv channels that use it.", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "Broadcasting_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "Television_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ] + }, + "linking_list": [ + [ + "language", + "tv_channel.language" + ], + [ + "language", + "Broadcasting_Channel.language" + ], + [ + "language", + "Television_Channel.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.language" + ], + [ + 0, + "Broadcasting_Channel.language" + ], + [ + 0, + "Television_Channel.language" + ] + ], + "linking_list_col": [ + [ + "tv_channel.id", + "broadcasting_channel.id" + ], + [ + "tv_channel.id", + "television_channel.id" + ], + [ + "broadcasting_channel.id", + "television_channel.id" + ], + [ + "tv_channel.series_name", + "broadcasting_channel.series_name" + ], + [ + "tv_channel.series_name", + "television_channel.series_name" + ], + [ + "broadcasting_channel.series_name", + "television_channel.series_name" + ], + [ + "tv_channel.country", + "broadcasting_channel.country" + ], + [ + "tv_channel.country", + "television_channel.country" + ], + [ + "broadcasting_channel.country", + "television_channel.country" + ], + [ + "tv_channel.language", + "broadcasting_channel.language" + ], + [ + "tv_channel.language", + "television_channel.language" + ], + [ + "broadcasting_channel.language", + "television_channel.language" + ], + [ + "tv_channel.content", + "broadcasting_channel.content" + ], + [ + "tv_channel.content", + "television_channel.content" + ], + [ + "broadcasting_channel.content", + "television_channel.content" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "broadcasting_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "broadcasting_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.hight_definition_tv", + "broadcasting_channel.hight_definition_tv" + ], + [ + "tv_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "broadcasting_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "tv_channel.pay_per_view_ppv", + "broadcasting_channel.pay_per_view_ppv" + ], + [ + "tv_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "broadcasting_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "tv_channel.package_option", + "broadcasting_channel.package_option" + ], + [ + "tv_channel.package_option", + "television_channel.package_option" + ], + [ + "broadcasting_channel.package_option", + "television_channel.package_option" + ] + ] + }, + { + "question": "list the #title# of all cartoons showed on #tv channel with series name# \"sky radio\".", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "animated_series": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "toons": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "title", + "cartoon.title" + ], + [ + "title", + "animated_series.title" + ], + [ + "title", + "toons.title" + ], + [ + "TV Channel with series name", + "tv_channel.series_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "cartoon.title" + ], + [ + 0, + "animated_series.title" + ], + [ + 0, + "toons.title" + ], + [ + 1, + "tv_channel.series_name" + ] + ], + "linking_list_col": [ + [ + "cartoon.id", + "animated_series.id" + ], + [ + "cartoon.id", + "toons.id" + ], + [ + "animated_series.id", + "toons.id" + ], + [ + "cartoon.title", + "animated_series.title" + ], + [ + "cartoon.title", + "toons.title" + ], + [ + "animated_series.title", + "toons.title" + ], + [ + "cartoon.directed_by", + "animated_series.directed_by" + ], + [ + "cartoon.directed_by", + "toons.directed_by" + ], + [ + "animated_series.directed_by", + "toons.directed_by" + ], + [ + "cartoon.written_by", + "animated_series.written_by" + ], + [ + "cartoon.written_by", + "toons.written_by" + ], + [ + "animated_series.written_by", + "toons.written_by" + ], + [ + "cartoon.original_air_date", + "animated_series.original_air_date" + ], + [ + "cartoon.original_air_date", + "toons.original_air_date" + ], + [ + "animated_series.original_air_date", + "toons.original_air_date" + ], + [ + "cartoon.production_code", + "animated_series.production_code" + ], + [ + "cartoon.production_code", + "toons.production_code" + ], + [ + "animated_series.production_code", + "toons.production_code" + ], + [ + "cartoon.channel", + "animated_series.channel" + ], + [ + "cartoon.channel", + "toons.channel" + ], + [ + "animated_series.channel", + "toons.channel" + ] + ] + }, + { + "question": "what is the #title# of all the cartools that are on the #tv channel with the series name# \"sky radio\"?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "animated_series": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "toons": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "title", + "cartoon.title" + ], + [ + "title", + "animated_series.title" + ], + [ + "title", + "toons.title" + ], + [ + "TV Channel with the series name", + "tv_channel.series_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "cartoon.title" + ], + [ + 0, + "animated_series.title" + ], + [ + 0, + "toons.title" + ], + [ + 1, + "tv_channel.series_name" + ] + ], + "linking_list_col": [ + [ + "cartoon.id", + "animated_series.id" + ], + [ + "cartoon.id", + "toons.id" + ], + [ + "animated_series.id", + "toons.id" + ], + [ + "cartoon.title", + "animated_series.title" + ], + [ + "cartoon.title", + "toons.title" + ], + [ + "animated_series.title", + "toons.title" + ], + [ + "cartoon.directed_by", + "animated_series.directed_by" + ], + [ + "cartoon.directed_by", + "toons.directed_by" + ], + [ + "animated_series.directed_by", + "toons.directed_by" + ], + [ + "cartoon.written_by", + "animated_series.written_by" + ], + [ + "cartoon.written_by", + "toons.written_by" + ], + [ + "animated_series.written_by", + "toons.written_by" + ], + [ + "cartoon.original_air_date", + "animated_series.original_air_date" + ], + [ + "cartoon.original_air_date", + "toons.original_air_date" + ], + [ + "animated_series.original_air_date", + "toons.original_air_date" + ], + [ + "cartoon.production_code", + "animated_series.production_code" + ], + [ + "cartoon.production_code", + "toons.production_code" + ], + [ + "animated_series.production_code", + "toons.production_code" + ], + [ + "cartoon.channel", + "animated_series.channel" + ], + [ + "cartoon.channel", + "toons.channel" + ], + [ + "animated_series.channel", + "toons.channel" + ] + ] + }, + { + "question": "list the #episode of all tv series# sorted by #rating# .", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "TV_show": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "TV_program": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ] + }, + "linking_list": [ + [ + "Episode of all TV series", + "tv_series.episode" + ], + [ + "Episode of all TV series", + "TV_show.episode" + ], + [ + "Episode of all TV series", + "TV_program.episode" + ], + [ + "rating", + "tv_series.rating" + ], + [ + "rating", + "TV_show.rating" + ], + [ + "rating", + "TV_program.rating" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_series.episode" + ], + [ + 0, + "TV_show.episode" + ], + [ + 0, + "TV_program.episode" + ], + [ + 1, + "tv_series.rating" + ], + [ + 1, + "TV_show.rating" + ], + [ + 1, + "TV_program.rating" + ] + ], + "linking_list_col": [ + [ + "tv_series.id", + "tv_show.id" + ], + [ + "tv_series.id", + "tv_program.id" + ], + [ + "tv_show.id", + "tv_program.id" + ], + [ + "tv_series.episode", + "tv_show.episode" + ], + [ + "tv_series.episode", + "tv_program.episode" + ], + [ + "tv_show.episode", + "tv_program.episode" + ], + [ + "tv_series.air_date", + "tv_show.air_date" + ], + [ + "tv_series.air_date", + "tv_program.air_date" + ], + [ + "tv_show.air_date", + "tv_program.air_date" + ], + [ + "tv_series.rating", + "tv_show.rating" + ], + [ + "tv_series.rating", + "tv_program.rating" + ], + [ + "tv_show.rating", + "tv_program.rating" + ], + [ + "tv_series.share", + "tv_show.share" + ], + [ + "tv_series.share", + "tv_program.share" + ], + [ + "tv_show.share", + "tv_program.share" + ], + [ + "tv_series.18_49_rating_share", + "tv_show.18_49_rating_share" + ], + [ + "tv_series.18_49_rating_share", + "tv_program.18_49_rating_share" + ], + [ + "tv_show.18_49_rating_share", + "tv_program.18_49_rating_share" + ], + [ + "tv_series.viewers_m", + "tv_show.viewers_m" + ], + [ + "tv_series.viewers_m", + "tv_program.viewers_m" + ], + [ + "tv_show.viewers_m", + "tv_program.viewers_m" + ], + [ + "tv_series.weekly_rank", + "tv_show.weekly_rank" + ], + [ + "tv_series.weekly_rank", + "tv_program.weekly_rank" + ], + [ + "tv_show.weekly_rank", + "tv_program.weekly_rank" + ], + [ + "tv_series.channel", + "tv_show.channel" + ], + [ + "tv_series.channel", + "tv_program.channel" + ], + [ + "tv_show.channel", + "tv_program.channel" + ] + ] + }, + { + "question": "what are all of the #episodes# ordered by ratings?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "TV_show": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "TV_program": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ] + }, + "linking_list": [ + [ + "episodes", + "tv_series.episode" + ], + [ + "episodes", + "TV_show.episode" + ], + [ + "episodes", + "TV_program.episode" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_series.episode" + ], + [ + 0, + "TV_show.episode" + ], + [ + 0, + "TV_program.episode" + ] + ], + "linking_list_col": [ + [ + "tv_series.id", + "tv_show.id" + ], + [ + "tv_series.id", + "tv_program.id" + ], + [ + "tv_show.id", + "tv_program.id" + ], + [ + "tv_series.episode", + "tv_show.episode" + ], + [ + "tv_series.episode", + "tv_program.episode" + ], + [ + "tv_show.episode", + "tv_program.episode" + ], + [ + "tv_series.air_date", + "tv_show.air_date" + ], + [ + "tv_series.air_date", + "tv_program.air_date" + ], + [ + "tv_show.air_date", + "tv_program.air_date" + ], + [ + "tv_series.rating", + "tv_show.rating" + ], + [ + "tv_series.rating", + "tv_program.rating" + ], + [ + "tv_show.rating", + "tv_program.rating" + ], + [ + "tv_series.share", + "tv_show.share" + ], + [ + "tv_series.share", + "tv_program.share" + ], + [ + "tv_show.share", + "tv_program.share" + ], + [ + "tv_series.18_49_rating_share", + "tv_show.18_49_rating_share" + ], + [ + "tv_series.18_49_rating_share", + "tv_program.18_49_rating_share" + ], + [ + "tv_show.18_49_rating_share", + "tv_program.18_49_rating_share" + ], + [ + "tv_series.viewers_m", + "tv_show.viewers_m" + ], + [ + "tv_series.viewers_m", + "tv_program.viewers_m" + ], + [ + "tv_show.viewers_m", + "tv_program.viewers_m" + ], + [ + "tv_series.weekly_rank", + "tv_show.weekly_rank" + ], + [ + "tv_series.weekly_rank", + "tv_program.weekly_rank" + ], + [ + "tv_show.weekly_rank", + "tv_program.weekly_rank" + ], + [ + "tv_series.channel", + "tv_show.channel" + ], + [ + "tv_series.channel", + "tv_program.channel" + ], + [ + "tv_show.channel", + "tv_program.channel" + ] + ] + }, + { + "question": "list top 3 highest #rating tv series# . list the #tv series's episode# and #rating# .", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "TV_show": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "TV_program": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ] + }, + "linking_list": [ + [ + "Rating TV series", + "tv_series.rating" + ], + [ + "Rating TV series", + "TV_show.rating" + ], + [ + "Rating TV series", + "TV_program.rating" + ], + [ + "Rating", + "tv_series.rating" + ], + [ + "Rating", + "TV_show.rating" + ], + [ + "Rating", + "TV_program.rating" + ], + [ + "TV series's Episode", + "tv_series.episode" + ], + [ + "TV series's Episode", + "TV_show.episode" + ], + [ + "TV series's Episode", + "TV_program.episode" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_series.rating" + ], + [ + 0, + "TV_show.rating" + ], + [ + 0, + "TV_program.rating" + ], + [ + 1, + "tv_series.rating" + ], + [ + 1, + "TV_show.rating" + ], + [ + 1, + "TV_program.rating" + ], + [ + 2, + "tv_series.episode" + ], + [ + 2, + "TV_show.episode" + ], + [ + 2, + "TV_program.episode" + ] + ], + "linking_list_col": [ + [ + "tv_series.id", + "tv_show.id" + ], + [ + "tv_series.id", + "tv_program.id" + ], + [ + "tv_show.id", + "tv_program.id" + ], + [ + "tv_series.episode", + "tv_show.episode" + ], + [ + "tv_series.episode", + "tv_program.episode" + ], + [ + "tv_show.episode", + "tv_program.episode" + ], + [ + "tv_series.air_date", + "tv_show.air_date" + ], + [ + "tv_series.air_date", + "tv_program.air_date" + ], + [ + "tv_show.air_date", + "tv_program.air_date" + ], + [ + "tv_series.rating", + "tv_show.rating" + ], + [ + "tv_series.rating", + "tv_program.rating" + ], + [ + "tv_show.rating", + "tv_program.rating" + ], + [ + "tv_series.share", + "tv_show.share" + ], + [ + "tv_series.share", + "tv_program.share" + ], + [ + "tv_show.share", + "tv_program.share" + ], + [ + "tv_series.18_49_rating_share", + "tv_show.18_49_rating_share" + ], + [ + "tv_series.18_49_rating_share", + "tv_program.18_49_rating_share" + ], + [ + "tv_show.18_49_rating_share", + "tv_program.18_49_rating_share" + ], + [ + "tv_series.viewers_m", + "tv_show.viewers_m" + ], + [ + "tv_series.viewers_m", + "tv_program.viewers_m" + ], + [ + "tv_show.viewers_m", + "tv_program.viewers_m" + ], + [ + "tv_series.weekly_rank", + "tv_show.weekly_rank" + ], + [ + "tv_series.weekly_rank", + "tv_program.weekly_rank" + ], + [ + "tv_show.weekly_rank", + "tv_program.weekly_rank" + ], + [ + "tv_series.channel", + "tv_show.channel" + ], + [ + "tv_series.channel", + "tv_program.channel" + ], + [ + "tv_show.channel", + "tv_program.channel" + ] + ] + }, + { + "question": "what are 3 most highly rated #episodes in the tv series table# and what were those ratings?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "TV_show": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "TV_program": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ] + }, + "linking_list": [ + [ + "episodes in the TV series table", + "tv_series.episode" + ], + [ + "episodes in the TV series table", + "TV_show.episode" + ], + [ + "episodes in the TV series table", + "TV_program.episode" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_series.episode" + ], + [ + 0, + "TV_show.episode" + ], + [ + 0, + "TV_program.episode" + ] + ], + "linking_list_col": [ + [ + "tv_series.id", + "tv_show.id" + ], + [ + "tv_series.id", + "tv_program.id" + ], + [ + "tv_show.id", + "tv_program.id" + ], + [ + "tv_series.episode", + "tv_show.episode" + ], + [ + "tv_series.episode", + "tv_program.episode" + ], + [ + "tv_show.episode", + "tv_program.episode" + ], + [ + "tv_series.air_date", + "tv_show.air_date" + ], + [ + "tv_series.air_date", + "tv_program.air_date" + ], + [ + "tv_show.air_date", + "tv_program.air_date" + ], + [ + "tv_series.rating", + "tv_show.rating" + ], + [ + "tv_series.rating", + "tv_program.rating" + ], + [ + "tv_show.rating", + "tv_program.rating" + ], + [ + "tv_series.share", + "tv_show.share" + ], + [ + "tv_series.share", + "tv_program.share" + ], + [ + "tv_show.share", + "tv_program.share" + ], + [ + "tv_series.18_49_rating_share", + "tv_show.18_49_rating_share" + ], + [ + "tv_series.18_49_rating_share", + "tv_program.18_49_rating_share" + ], + [ + "tv_show.18_49_rating_share", + "tv_program.18_49_rating_share" + ], + [ + "tv_series.viewers_m", + "tv_show.viewers_m" + ], + [ + "tv_series.viewers_m", + "tv_program.viewers_m" + ], + [ + "tv_show.viewers_m", + "tv_program.viewers_m" + ], + [ + "tv_series.weekly_rank", + "tv_show.weekly_rank" + ], + [ + "tv_series.weekly_rank", + "tv_program.weekly_rank" + ], + [ + "tv_show.weekly_rank", + "tv_program.weekly_rank" + ], + [ + "tv_series.channel", + "tv_show.channel" + ], + [ + "tv_series.channel", + "tv_program.channel" + ], + [ + "tv_show.channel", + "tv_program.channel" + ] + ] + }, + { + "question": "what is the #air date of tv series with episode# \"a love of a lifetime\"?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "TV_show": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "TV_program": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ] + }, + "linking_list": [ + [ + "air date of TV series with Episode", + "tv_series.air_date" + ], + [ + "air date of TV series with Episode", + "TV_show.air_date" + ], + [ + "air date of TV series with Episode", + "TV_program.air_date" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_series.air_date" + ], + [ + 0, + "TV_show.air_date" + ], + [ + 0, + "TV_program.air_date" + ] + ], + "linking_list_col": [ + [ + "tv_series.id", + "tv_show.id" + ], + [ + "tv_series.id", + "tv_program.id" + ], + [ + "tv_show.id", + "tv_program.id" + ], + [ + "tv_series.episode", + "tv_show.episode" + ], + [ + "tv_series.episode", + "tv_program.episode" + ], + [ + "tv_show.episode", + "tv_program.episode" + ], + [ + "tv_series.air_date", + "tv_show.air_date" + ], + [ + "tv_series.air_date", + "tv_program.air_date" + ], + [ + "tv_show.air_date", + "tv_program.air_date" + ], + [ + "tv_series.rating", + "tv_show.rating" + ], + [ + "tv_series.rating", + "tv_program.rating" + ], + [ + "tv_show.rating", + "tv_program.rating" + ], + [ + "tv_series.share", + "tv_show.share" + ], + [ + "tv_series.share", + "tv_program.share" + ], + [ + "tv_show.share", + "tv_program.share" + ], + [ + "tv_series.18_49_rating_share", + "tv_show.18_49_rating_share" + ], + [ + "tv_series.18_49_rating_share", + "tv_program.18_49_rating_share" + ], + [ + "tv_show.18_49_rating_share", + "tv_program.18_49_rating_share" + ], + [ + "tv_series.viewers_m", + "tv_show.viewers_m" + ], + [ + "tv_series.viewers_m", + "tv_program.viewers_m" + ], + [ + "tv_show.viewers_m", + "tv_program.viewers_m" + ], + [ + "tv_series.weekly_rank", + "tv_show.weekly_rank" + ], + [ + "tv_series.weekly_rank", + "tv_program.weekly_rank" + ], + [ + "tv_show.weekly_rank", + "tv_program.weekly_rank" + ], + [ + "tv_series.channel", + "tv_show.channel" + ], + [ + "tv_series.channel", + "tv_program.channel" + ], + [ + "tv_show.channel", + "tv_program.channel" + ] + ] + }, + { + "question": "when did the #episode# \"a love of a lifetime\" air?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "TV_show": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "TV_program": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ] + }, + "linking_list": [ + [ + "episode", + "tv_series.episode" + ], + [ + "episode", + "TV_show.episode" + ], + [ + "episode", + "TV_program.episode" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_series.episode" + ], + [ + 0, + "TV_show.episode" + ], + [ + 0, + "TV_program.episode" + ] + ], + "linking_list_col": [ + [ + "tv_series.id", + "tv_show.id" + ], + [ + "tv_series.id", + "tv_program.id" + ], + [ + "tv_show.id", + "tv_program.id" + ], + [ + "tv_series.episode", + "tv_show.episode" + ], + [ + "tv_series.episode", + "tv_program.episode" + ], + [ + "tv_show.episode", + "tv_program.episode" + ], + [ + "tv_series.air_date", + "tv_show.air_date" + ], + [ + "tv_series.air_date", + "tv_program.air_date" + ], + [ + "tv_show.air_date", + "tv_program.air_date" + ], + [ + "tv_series.rating", + "tv_show.rating" + ], + [ + "tv_series.rating", + "tv_program.rating" + ], + [ + "tv_show.rating", + "tv_program.rating" + ], + [ + "tv_series.share", + "tv_show.share" + ], + [ + "tv_series.share", + "tv_program.share" + ], + [ + "tv_show.share", + "tv_program.share" + ], + [ + "tv_series.18_49_rating_share", + "tv_show.18_49_rating_share" + ], + [ + "tv_series.18_49_rating_share", + "tv_program.18_49_rating_share" + ], + [ + "tv_show.18_49_rating_share", + "tv_program.18_49_rating_share" + ], + [ + "tv_series.viewers_m", + "tv_show.viewers_m" + ], + [ + "tv_series.viewers_m", + "tv_program.viewers_m" + ], + [ + "tv_show.viewers_m", + "tv_program.viewers_m" + ], + [ + "tv_series.weekly_rank", + "tv_show.weekly_rank" + ], + [ + "tv_series.weekly_rank", + "tv_program.weekly_rank" + ], + [ + "tv_show.weekly_rank", + "tv_program.weekly_rank" + ], + [ + "tv_series.channel", + "tv_show.channel" + ], + [ + "tv_series.channel", + "tv_program.channel" + ], + [ + "tv_show.channel", + "tv_program.channel" + ] + ] + }, + { + "question": "what is #weekly rank of tv series with episode# \"a love of a lifetime\"?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "TV_show": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "TV_program": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ] + }, + "linking_list": [ + [ + "Weekly Rank of TV series with Episode", + "tv_series.weekly_rank" + ], + [ + "Weekly Rank of TV series with Episode", + "TV_show.weekly_rank" + ], + [ + "Weekly Rank of TV series with Episode", + "TV_program.weekly_rank" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_series.weekly_rank" + ], + [ + 0, + "TV_show.weekly_rank" + ], + [ + 0, + "TV_program.weekly_rank" + ] + ], + "linking_list_col": [ + [ + "tv_series.id", + "tv_show.id" + ], + [ + "tv_series.id", + "tv_program.id" + ], + [ + "tv_show.id", + "tv_program.id" + ], + [ + "tv_series.episode", + "tv_show.episode" + ], + [ + "tv_series.episode", + "tv_program.episode" + ], + [ + "tv_show.episode", + "tv_program.episode" + ], + [ + "tv_series.air_date", + "tv_show.air_date" + ], + [ + "tv_series.air_date", + "tv_program.air_date" + ], + [ + "tv_show.air_date", + "tv_program.air_date" + ], + [ + "tv_series.rating", + "tv_show.rating" + ], + [ + "tv_series.rating", + "tv_program.rating" + ], + [ + "tv_show.rating", + "tv_program.rating" + ], + [ + "tv_series.share", + "tv_show.share" + ], + [ + "tv_series.share", + "tv_program.share" + ], + [ + "tv_show.share", + "tv_program.share" + ], + [ + "tv_series.18_49_rating_share", + "tv_show.18_49_rating_share" + ], + [ + "tv_series.18_49_rating_share", + "tv_program.18_49_rating_share" + ], + [ + "tv_show.18_49_rating_share", + "tv_program.18_49_rating_share" + ], + [ + "tv_series.viewers_m", + "tv_show.viewers_m" + ], + [ + "tv_series.viewers_m", + "tv_program.viewers_m" + ], + [ + "tv_show.viewers_m", + "tv_program.viewers_m" + ], + [ + "tv_series.weekly_rank", + "tv_show.weekly_rank" + ], + [ + "tv_series.weekly_rank", + "tv_program.weekly_rank" + ], + [ + "tv_show.weekly_rank", + "tv_program.weekly_rank" + ], + [ + "tv_series.channel", + "tv_show.channel" + ], + [ + "tv_series.channel", + "tv_program.channel" + ], + [ + "tv_show.channel", + "tv_program.channel" + ] + ] + }, + { + "question": "what is the #weekly rank for the episode# \"a love of a lifetime\"?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "TV_show": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "TV_program": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ] + }, + "linking_list": [ + [ + "weekly rank for the episode", + "tv_series.weekly_rank" + ], + [ + "weekly rank for the episode", + "TV_show.weekly_rank" + ], + [ + "weekly rank for the episode", + "TV_program.weekly_rank" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_series.weekly_rank" + ], + [ + 0, + "TV_show.weekly_rank" + ], + [ + 0, + "TV_program.weekly_rank" + ] + ], + "linking_list_col": [ + [ + "tv_series.id", + "tv_show.id" + ], + [ + "tv_series.id", + "tv_program.id" + ], + [ + "tv_show.id", + "tv_program.id" + ], + [ + "tv_series.episode", + "tv_show.episode" + ], + [ + "tv_series.episode", + "tv_program.episode" + ], + [ + "tv_show.episode", + "tv_program.episode" + ], + [ + "tv_series.air_date", + "tv_show.air_date" + ], + [ + "tv_series.air_date", + "tv_program.air_date" + ], + [ + "tv_show.air_date", + "tv_program.air_date" + ], + [ + "tv_series.rating", + "tv_show.rating" + ], + [ + "tv_series.rating", + "tv_program.rating" + ], + [ + "tv_show.rating", + "tv_program.rating" + ], + [ + "tv_series.share", + "tv_show.share" + ], + [ + "tv_series.share", + "tv_program.share" + ], + [ + "tv_show.share", + "tv_program.share" + ], + [ + "tv_series.18_49_rating_share", + "tv_show.18_49_rating_share" + ], + [ + "tv_series.18_49_rating_share", + "tv_program.18_49_rating_share" + ], + [ + "tv_show.18_49_rating_share", + "tv_program.18_49_rating_share" + ], + [ + "tv_series.viewers_m", + "tv_show.viewers_m" + ], + [ + "tv_series.viewers_m", + "tv_program.viewers_m" + ], + [ + "tv_show.viewers_m", + "tv_program.viewers_m" + ], + [ + "tv_series.weekly_rank", + "tv_show.weekly_rank" + ], + [ + "tv_series.weekly_rank", + "tv_program.weekly_rank" + ], + [ + "tv_show.weekly_rank", + "tv_program.weekly_rank" + ], + [ + "tv_series.channel", + "tv_show.channel" + ], + [ + "tv_series.channel", + "tv_program.channel" + ], + [ + "tv_show.channel", + "tv_program.channel" + ] + ] + }, + { + "question": "what is the tv channel of #tv series with episode# \"a love of a lifetime\"? list the #tv channel's series name# .", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "TV_show": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "TV_program": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ] + }, + "linking_list": [ + [ + "TV series with Episode", + "tv_series.episode" + ], + [ + "TV series with Episode", + "TV_show.episode" + ], + [ + "TV series with Episode", + "TV_program.episode" + ], + [ + "TV Channel's series name", + "tv_channel.series_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_series.episode" + ], + [ + 0, + "TV_show.episode" + ], + [ + 0, + "TV_program.episode" + ], + [ + 1, + "tv_channel.series_name" + ] + ], + "linking_list_col": [ + [ + "tv_series.id", + "tv_show.id" + ], + [ + "tv_series.id", + "tv_program.id" + ], + [ + "tv_show.id", + "tv_program.id" + ], + [ + "tv_series.episode", + "tv_show.episode" + ], + [ + "tv_series.episode", + "tv_program.episode" + ], + [ + "tv_show.episode", + "tv_program.episode" + ], + [ + "tv_series.air_date", + "tv_show.air_date" + ], + [ + "tv_series.air_date", + "tv_program.air_date" + ], + [ + "tv_show.air_date", + "tv_program.air_date" + ], + [ + "tv_series.rating", + "tv_show.rating" + ], + [ + "tv_series.rating", + "tv_program.rating" + ], + [ + "tv_show.rating", + "tv_program.rating" + ], + [ + "tv_series.share", + "tv_show.share" + ], + [ + "tv_series.share", + "tv_program.share" + ], + [ + "tv_show.share", + "tv_program.share" + ], + [ + "tv_series.18_49_rating_share", + "tv_show.18_49_rating_share" + ], + [ + "tv_series.18_49_rating_share", + "tv_program.18_49_rating_share" + ], + [ + "tv_show.18_49_rating_share", + "tv_program.18_49_rating_share" + ], + [ + "tv_series.viewers_m", + "tv_show.viewers_m" + ], + [ + "tv_series.viewers_m", + "tv_program.viewers_m" + ], + [ + "tv_show.viewers_m", + "tv_program.viewers_m" + ], + [ + "tv_series.weekly_rank", + "tv_show.weekly_rank" + ], + [ + "tv_series.weekly_rank", + "tv_program.weekly_rank" + ], + [ + "tv_show.weekly_rank", + "tv_program.weekly_rank" + ], + [ + "tv_series.channel", + "tv_show.channel" + ], + [ + "tv_series.channel", + "tv_program.channel" + ], + [ + "tv_show.channel", + "tv_program.channel" + ] + ] + }, + { + "question": "what is the #name of the series# that has the #episode# \"a love of a lifetime\"?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "TV_show": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "TV_program": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ] + }, + "linking_list": [ + [ + "name of the series", + "tv_channel.series_name" + ], + [ + "episode", + "tv_series.episode" + ], + [ + "episode", + "TV_show.episode" + ], + [ + "episode", + "TV_program.episode" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.series_name" + ], + [ + 1, + "tv_series.episode" + ], + [ + 1, + "TV_show.episode" + ], + [ + 1, + "TV_program.episode" + ] + ], + "linking_list_col": [ + [ + "tv_series.id", + "tv_show.id" + ], + [ + "tv_series.id", + "tv_program.id" + ], + [ + "tv_show.id", + "tv_program.id" + ], + [ + "tv_series.episode", + "tv_show.episode" + ], + [ + "tv_series.episode", + "tv_program.episode" + ], + [ + "tv_show.episode", + "tv_program.episode" + ], + [ + "tv_series.air_date", + "tv_show.air_date" + ], + [ + "tv_series.air_date", + "tv_program.air_date" + ], + [ + "tv_show.air_date", + "tv_program.air_date" + ], + [ + "tv_series.rating", + "tv_show.rating" + ], + [ + "tv_series.rating", + "tv_program.rating" + ], + [ + "tv_show.rating", + "tv_program.rating" + ], + [ + "tv_series.share", + "tv_show.share" + ], + [ + "tv_series.share", + "tv_program.share" + ], + [ + "tv_show.share", + "tv_program.share" + ], + [ + "tv_series.18_49_rating_share", + "tv_show.18_49_rating_share" + ], + [ + "tv_series.18_49_rating_share", + "tv_program.18_49_rating_share" + ], + [ + "tv_show.18_49_rating_share", + "tv_program.18_49_rating_share" + ], + [ + "tv_series.viewers_m", + "tv_show.viewers_m" + ], + [ + "tv_series.viewers_m", + "tv_program.viewers_m" + ], + [ + "tv_show.viewers_m", + "tv_program.viewers_m" + ], + [ + "tv_series.weekly_rank", + "tv_show.weekly_rank" + ], + [ + "tv_series.weekly_rank", + "tv_program.weekly_rank" + ], + [ + "tv_show.weekly_rank", + "tv_program.weekly_rank" + ], + [ + "tv_series.channel", + "tv_show.channel" + ], + [ + "tv_series.channel", + "tv_program.channel" + ], + [ + "tv_show.channel", + "tv_program.channel" + ] + ] + }, + { + "question": "what is the #episode for the tv series named# \"sky radio\"?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "TV_show": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "TV_program": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ] + }, + "linking_list": [ + [ + "episode for the TV series named", + "tv_series.episode" + ], + [ + "episode for the TV series named", + "TV_show.episode" + ], + [ + "episode for the TV series named", + "TV_program.episode" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_series.episode" + ], + [ + 0, + "TV_show.episode" + ], + [ + 0, + "TV_program.episode" + ] + ], + "linking_list_col": [ + [ + "tv_series.id", + "tv_show.id" + ], + [ + "tv_series.id", + "tv_program.id" + ], + [ + "tv_show.id", + "tv_program.id" + ], + [ + "tv_series.episode", + "tv_show.episode" + ], + [ + "tv_series.episode", + "tv_program.episode" + ], + [ + "tv_show.episode", + "tv_program.episode" + ], + [ + "tv_series.air_date", + "tv_show.air_date" + ], + [ + "tv_series.air_date", + "tv_program.air_date" + ], + [ + "tv_show.air_date", + "tv_program.air_date" + ], + [ + "tv_series.rating", + "tv_show.rating" + ], + [ + "tv_series.rating", + "tv_program.rating" + ], + [ + "tv_show.rating", + "tv_program.rating" + ], + [ + "tv_series.share", + "tv_show.share" + ], + [ + "tv_series.share", + "tv_program.share" + ], + [ + "tv_show.share", + "tv_program.share" + ], + [ + "tv_series.18_49_rating_share", + "tv_show.18_49_rating_share" + ], + [ + "tv_series.18_49_rating_share", + "tv_program.18_49_rating_share" + ], + [ + "tv_show.18_49_rating_share", + "tv_program.18_49_rating_share" + ], + [ + "tv_series.viewers_m", + "tv_show.viewers_m" + ], + [ + "tv_series.viewers_m", + "tv_program.viewers_m" + ], + [ + "tv_show.viewers_m", + "tv_program.viewers_m" + ], + [ + "tv_series.weekly_rank", + "tv_show.weekly_rank" + ], + [ + "tv_series.weekly_rank", + "tv_program.weekly_rank" + ], + [ + "tv_show.weekly_rank", + "tv_program.weekly_rank" + ], + [ + "tv_series.channel", + "tv_show.channel" + ], + [ + "tv_series.channel", + "tv_program.channel" + ], + [ + "tv_show.channel", + "tv_program.channel" + ] + ] + }, + { + "question": "how many cartoons did each #director# create?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "animated_series": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "toons": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "director", + "cartoon.directed_by" + ], + [ + "director", + "animated_series.directed_by" + ], + [ + "director", + "toons.directed_by" + ] + ], + "linking_list_idx": [ + [ + 0, + "cartoon.directed_by" + ], + [ + 0, + "animated_series.directed_by" + ], + [ + 0, + "toons.directed_by" + ] + ], + "linking_list_col": [ + [ + "cartoon.id", + "animated_series.id" + ], + [ + "cartoon.id", + "toons.id" + ], + [ + "animated_series.id", + "toons.id" + ], + [ + "cartoon.title", + "animated_series.title" + ], + [ + "cartoon.title", + "toons.title" + ], + [ + "animated_series.title", + "toons.title" + ], + [ + "cartoon.directed_by", + "animated_series.directed_by" + ], + [ + "cartoon.directed_by", + "toons.directed_by" + ], + [ + "animated_series.directed_by", + "toons.directed_by" + ], + [ + "cartoon.written_by", + "animated_series.written_by" + ], + [ + "cartoon.written_by", + "toons.written_by" + ], + [ + "animated_series.written_by", + "toons.written_by" + ], + [ + "cartoon.original_air_date", + "animated_series.original_air_date" + ], + [ + "cartoon.original_air_date", + "toons.original_air_date" + ], + [ + "animated_series.original_air_date", + "toons.original_air_date" + ], + [ + "cartoon.production_code", + "animated_series.production_code" + ], + [ + "cartoon.production_code", + "toons.production_code" + ], + [ + "animated_series.production_code", + "toons.production_code" + ], + [ + "cartoon.channel", + "animated_series.channel" + ], + [ + "cartoon.channel", + "toons.channel" + ], + [ + "animated_series.channel", + "toons.channel" + ] + ] + }, + { + "question": "find the #package choice# and #series name of the tv channel# that has #high definition tv# .", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "Broadcasting_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "Television_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ] + }, + "linking_list": [ + [ + "package choice", + "tv_channel.package_option" + ], + [ + "package choice", + "Broadcasting_Channel.package_option" + ], + [ + "package choice", + "Television_Channel.package_option" + ], + [ + "series name of the TV channel", + "tv_channel.series_name" + ], + [ + "series name of the TV channel", + "Broadcasting_Channel.series_name" + ], + [ + "series name of the TV channel", + "Television_Channel.series_name" + ], + [ + "high definition TV", + "tv_channel.hight_definition_tv" + ], + [ + "high definition TV", + "Broadcasting_Channel.hight_definition_tv" + ], + [ + "high definition TV", + "Television_Channel.hight_definition_tv" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.package_option" + ], + [ + 0, + "Broadcasting_Channel.package_option" + ], + [ + 0, + "Television_Channel.package_option" + ], + [ + 1, + "tv_channel.series_name" + ], + [ + 1, + "Broadcasting_Channel.series_name" + ], + [ + 1, + "Television_Channel.series_name" + ], + [ + 2, + "tv_channel.hight_definition_tv" + ], + [ + 2, + "Broadcasting_Channel.hight_definition_tv" + ], + [ + 2, + "Television_Channel.hight_definition_tv" + ] + ], + "linking_list_col": [ + [ + "tv_channel.id", + "broadcasting_channel.id" + ], + [ + "tv_channel.id", + "television_channel.id" + ], + [ + "broadcasting_channel.id", + "television_channel.id" + ], + [ + "tv_channel.series_name", + "broadcasting_channel.series_name" + ], + [ + "tv_channel.series_name", + "television_channel.series_name" + ], + [ + "broadcasting_channel.series_name", + "television_channel.series_name" + ], + [ + "tv_channel.country", + "broadcasting_channel.country" + ], + [ + "tv_channel.country", + "television_channel.country" + ], + [ + "broadcasting_channel.country", + "television_channel.country" + ], + [ + "tv_channel.language", + "broadcasting_channel.language" + ], + [ + "tv_channel.language", + "television_channel.language" + ], + [ + "broadcasting_channel.language", + "television_channel.language" + ], + [ + "tv_channel.content", + "broadcasting_channel.content" + ], + [ + "tv_channel.content", + "television_channel.content" + ], + [ + "broadcasting_channel.content", + "television_channel.content" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "broadcasting_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "broadcasting_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.hight_definition_tv", + "broadcasting_channel.hight_definition_tv" + ], + [ + "tv_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "broadcasting_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "tv_channel.pay_per_view_ppv", + "broadcasting_channel.pay_per_view_ppv" + ], + [ + "tv_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "broadcasting_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "tv_channel.package_option", + "broadcasting_channel.package_option" + ], + [ + "tv_channel.package_option", + "television_channel.package_option" + ], + [ + "broadcasting_channel.package_option", + "television_channel.package_option" + ] + ] + }, + { + "question": "what are the #package options# and the #name of the series for the tv channel# that supports high definition tv?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "Broadcasting_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "Television_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ] + }, + "linking_list": [ + [ + "package options", + "tv_channel.package_option" + ], + [ + "package options", + "Broadcasting_Channel.package_option" + ], + [ + "package options", + "Television_Channel.package_option" + ], + [ + "name of the series for the TV Channel", + "tv_channel.series_name" + ], + [ + "name of the series for the TV Channel", + "Broadcasting_Channel.series_name" + ], + [ + "name of the series for the TV Channel", + "Television_Channel.series_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.package_option" + ], + [ + 0, + "Broadcasting_Channel.package_option" + ], + [ + 0, + "Television_Channel.package_option" + ], + [ + 1, + "tv_channel.series_name" + ], + [ + 1, + "Broadcasting_Channel.series_name" + ], + [ + 1, + "Television_Channel.series_name" + ] + ], + "linking_list_col": [ + [ + "tv_channel.id", + "broadcasting_channel.id" + ], + [ + "tv_channel.id", + "television_channel.id" + ], + [ + "broadcasting_channel.id", + "television_channel.id" + ], + [ + "tv_channel.series_name", + "broadcasting_channel.series_name" + ], + [ + "tv_channel.series_name", + "television_channel.series_name" + ], + [ + "broadcasting_channel.series_name", + "television_channel.series_name" + ], + [ + "tv_channel.country", + "broadcasting_channel.country" + ], + [ + "tv_channel.country", + "television_channel.country" + ], + [ + "broadcasting_channel.country", + "television_channel.country" + ], + [ + "tv_channel.language", + "broadcasting_channel.language" + ], + [ + "tv_channel.language", + "television_channel.language" + ], + [ + "broadcasting_channel.language", + "television_channel.language" + ], + [ + "tv_channel.content", + "broadcasting_channel.content" + ], + [ + "tv_channel.content", + "television_channel.content" + ], + [ + "broadcasting_channel.content", + "television_channel.content" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "broadcasting_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "broadcasting_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.hight_definition_tv", + "broadcasting_channel.hight_definition_tv" + ], + [ + "tv_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "broadcasting_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "tv_channel.pay_per_view_ppv", + "broadcasting_channel.pay_per_view_ppv" + ], + [ + "tv_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "broadcasting_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "tv_channel.package_option", + "broadcasting_channel.package_option" + ], + [ + "tv_channel.package_option", + "television_channel.package_option" + ], + [ + "broadcasting_channel.package_option", + "television_channel.package_option" + ] + ] + }, + { + "question": "what are the #countries# that have cartoons on tv that were #written by# todd casey?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "animated_series": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "toons": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "countries", + "tv_channel.country" + ], + [ + "written by", + "cartoon.written_by" + ], + [ + "written by", + "animated_series.written_by" + ], + [ + "written by", + "toons.written_by" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.country" + ], + [ + 1, + "cartoon.written_by" + ], + [ + 1, + "animated_series.written_by" + ], + [ + 1, + "toons.written_by" + ] + ], + "linking_list_col": [ + [ + "cartoon.id", + "animated_series.id" + ], + [ + "cartoon.id", + "toons.id" + ], + [ + "animated_series.id", + "toons.id" + ], + [ + "cartoon.title", + "animated_series.title" + ], + [ + "cartoon.title", + "toons.title" + ], + [ + "animated_series.title", + "toons.title" + ], + [ + "cartoon.directed_by", + "animated_series.directed_by" + ], + [ + "cartoon.directed_by", + "toons.directed_by" + ], + [ + "animated_series.directed_by", + "toons.directed_by" + ], + [ + "cartoon.written_by", + "animated_series.written_by" + ], + [ + "cartoon.written_by", + "toons.written_by" + ], + [ + "animated_series.written_by", + "toons.written_by" + ], + [ + "cartoon.original_air_date", + "animated_series.original_air_date" + ], + [ + "cartoon.original_air_date", + "toons.original_air_date" + ], + [ + "animated_series.original_air_date", + "toons.original_air_date" + ], + [ + "cartoon.production_code", + "animated_series.production_code" + ], + [ + "cartoon.production_code", + "toons.production_code" + ], + [ + "animated_series.production_code", + "toons.production_code" + ], + [ + "cartoon.channel", + "animated_series.channel" + ], + [ + "cartoon.channel", + "toons.channel" + ], + [ + "animated_series.channel", + "toons.channel" + ] + ] + }, + { + "question": "find the #pixel aspect ratio# and #nation of the tv channels# that do not use #english# .", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "Broadcasting_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "Television_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ] + }, + "linking_list": [ + [ + "pixel aspect ratio", + "tv_channel.pixel_aspect_ratio_par" + ], + [ + "pixel aspect ratio", + "Broadcasting_Channel.pixel_aspect_ratio_par" + ], + [ + "pixel aspect ratio", + "Television_Channel.pixel_aspect_ratio_par" + ], + [ + "nation of the tv channels", + "tv_channel.country" + ], + [ + "nation of the tv channels", + "Broadcasting_Channel.country" + ], + [ + "nation of the tv channels", + "Television_Channel.country" + ], + [ + "English", + "tv_channel.language" + ], + [ + "English", + "Broadcasting_Channel.language" + ], + [ + "English", + "Television_Channel.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.pixel_aspect_ratio_par" + ], + [ + 0, + "Broadcasting_Channel.pixel_aspect_ratio_par" + ], + [ + 0, + "Television_Channel.pixel_aspect_ratio_par" + ], + [ + 1, + "tv_channel.country" + ], + [ + 1, + "Broadcasting_Channel.country" + ], + [ + 1, + "Television_Channel.country" + ], + [ + 2, + "tv_channel.language" + ], + [ + 2, + "Broadcasting_Channel.language" + ], + [ + 2, + "Television_Channel.language" + ] + ], + "linking_list_col": [ + [ + "tv_channel.id", + "broadcasting_channel.id" + ], + [ + "tv_channel.id", + "television_channel.id" + ], + [ + "broadcasting_channel.id", + "television_channel.id" + ], + [ + "tv_channel.series_name", + "broadcasting_channel.series_name" + ], + [ + "tv_channel.series_name", + "television_channel.series_name" + ], + [ + "broadcasting_channel.series_name", + "television_channel.series_name" + ], + [ + "tv_channel.country", + "broadcasting_channel.country" + ], + [ + "tv_channel.country", + "television_channel.country" + ], + [ + "broadcasting_channel.country", + "television_channel.country" + ], + [ + "tv_channel.language", + "broadcasting_channel.language" + ], + [ + "tv_channel.language", + "television_channel.language" + ], + [ + "broadcasting_channel.language", + "television_channel.language" + ], + [ + "tv_channel.content", + "broadcasting_channel.content" + ], + [ + "tv_channel.content", + "television_channel.content" + ], + [ + "broadcasting_channel.content", + "television_channel.content" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "broadcasting_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "broadcasting_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.hight_definition_tv", + "broadcasting_channel.hight_definition_tv" + ], + [ + "tv_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "broadcasting_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "tv_channel.pay_per_view_ppv", + "broadcasting_channel.pay_per_view_ppv" + ], + [ + "tv_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "broadcasting_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "tv_channel.package_option", + "broadcasting_channel.package_option" + ], + [ + "tv_channel.package_option", + "television_channel.package_option" + ], + [ + "broadcasting_channel.package_option", + "television_channel.package_option" + ] + ] + }, + { + "question": "what is the #pixel aspect ratio# and #country of origin for all tv channels# that do not use english?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "Broadcasting_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "Television_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ] + }, + "linking_list": [ + [ + "pixel aspect ratio", + "tv_channel.pixel_aspect_ratio_par" + ], + [ + "pixel aspect ratio", + "Broadcasting_Channel.pixel_aspect_ratio_par" + ], + [ + "pixel aspect ratio", + "Television_Channel.pixel_aspect_ratio_par" + ], + [ + "country of origin for all TV channels", + "tv_channel.country" + ], + [ + "country of origin for all TV channels", + "Broadcasting_Channel.country" + ], + [ + "country of origin for all TV channels", + "Television_Channel.country" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.pixel_aspect_ratio_par" + ], + [ + 0, + "Broadcasting_Channel.pixel_aspect_ratio_par" + ], + [ + 0, + "Television_Channel.pixel_aspect_ratio_par" + ], + [ + 1, + "tv_channel.country" + ], + [ + 1, + "Broadcasting_Channel.country" + ], + [ + 1, + "Television_Channel.country" + ] + ], + "linking_list_col": [ + [ + "tv_channel.id", + "broadcasting_channel.id" + ], + [ + "tv_channel.id", + "television_channel.id" + ], + [ + "broadcasting_channel.id", + "television_channel.id" + ], + [ + "tv_channel.series_name", + "broadcasting_channel.series_name" + ], + [ + "tv_channel.series_name", + "television_channel.series_name" + ], + [ + "broadcasting_channel.series_name", + "television_channel.series_name" + ], + [ + "tv_channel.country", + "broadcasting_channel.country" + ], + [ + "tv_channel.country", + "television_channel.country" + ], + [ + "broadcasting_channel.country", + "television_channel.country" + ], + [ + "tv_channel.language", + "broadcasting_channel.language" + ], + [ + "tv_channel.language", + "television_channel.language" + ], + [ + "broadcasting_channel.language", + "television_channel.language" + ], + [ + "tv_channel.content", + "broadcasting_channel.content" + ], + [ + "tv_channel.content", + "television_channel.content" + ], + [ + "broadcasting_channel.content", + "television_channel.content" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "broadcasting_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "broadcasting_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.hight_definition_tv", + "broadcasting_channel.hight_definition_tv" + ], + [ + "tv_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "broadcasting_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "tv_channel.pay_per_view_ppv", + "broadcasting_channel.pay_per_view_ppv" + ], + [ + "tv_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "broadcasting_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "tv_channel.package_option", + "broadcasting_channel.package_option" + ], + [ + "tv_channel.package_option", + "television_channel.package_option" + ], + [ + "broadcasting_channel.package_option", + "television_channel.package_option" + ] + ] + }, + { + "question": "find #id of the tv channels# that from the #countries# where have more than two tv channels.", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "Broadcasting_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "Television_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ] + }, + "linking_list": [ + [ + "id of the tv channels", + "tv_channel.id" + ], + [ + "id of the tv channels", + "Broadcasting_Channel.id" + ], + [ + "id of the tv channels", + "Television_Channel.id" + ], + [ + "countries", + "tv_channel.country" + ], + [ + "countries", + "Broadcasting_Channel.country" + ], + [ + "countries", + "Television_Channel.country" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.id" + ], + [ + 0, + "Broadcasting_Channel.id" + ], + [ + 0, + "Television_Channel.id" + ], + [ + 1, + "tv_channel.country" + ], + [ + 1, + "Broadcasting_Channel.country" + ], + [ + 1, + "Television_Channel.country" + ] + ], + "linking_list_col": [ + [ + "tv_channel.id", + "broadcasting_channel.id" + ], + [ + "tv_channel.id", + "television_channel.id" + ], + [ + "broadcasting_channel.id", + "television_channel.id" + ], + [ + "tv_channel.series_name", + "broadcasting_channel.series_name" + ], + [ + "tv_channel.series_name", + "television_channel.series_name" + ], + [ + "broadcasting_channel.series_name", + "television_channel.series_name" + ], + [ + "tv_channel.country", + "broadcasting_channel.country" + ], + [ + "tv_channel.country", + "television_channel.country" + ], + [ + "broadcasting_channel.country", + "television_channel.country" + ], + [ + "tv_channel.language", + "broadcasting_channel.language" + ], + [ + "tv_channel.language", + "television_channel.language" + ], + [ + "broadcasting_channel.language", + "television_channel.language" + ], + [ + "tv_channel.content", + "broadcasting_channel.content" + ], + [ + "tv_channel.content", + "television_channel.content" + ], + [ + "broadcasting_channel.content", + "television_channel.content" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "broadcasting_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "broadcasting_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.hight_definition_tv", + "broadcasting_channel.hight_definition_tv" + ], + [ + "tv_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "broadcasting_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "tv_channel.pay_per_view_ppv", + "broadcasting_channel.pay_per_view_ppv" + ], + [ + "tv_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "broadcasting_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "tv_channel.package_option", + "broadcasting_channel.package_option" + ], + [ + "tv_channel.package_option", + "television_channel.package_option" + ], + [ + "broadcasting_channel.package_option", + "television_channel.package_option" + ] + ] + }, + { + "question": "what are the #ids of all tv channels# that have more than 2 tv channels?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "Broadcasting_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "Television_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ] + }, + "linking_list": [ + [ + "ids of all tv channels", + "tv_channel.id" + ], + [ + "ids of all tv channels", + "Broadcasting_Channel.id" + ], + [ + "ids of all tv channels", + "Television_Channel.id" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.id" + ], + [ + 0, + "Broadcasting_Channel.id" + ], + [ + 0, + "Television_Channel.id" + ] + ], + "linking_list_col": [ + [ + "tv_channel.id", + "broadcasting_channel.id" + ], + [ + "tv_channel.id", + "television_channel.id" + ], + [ + "broadcasting_channel.id", + "television_channel.id" + ], + [ + "tv_channel.series_name", + "broadcasting_channel.series_name" + ], + [ + "tv_channel.series_name", + "television_channel.series_name" + ], + [ + "broadcasting_channel.series_name", + "television_channel.series_name" + ], + [ + "tv_channel.country", + "broadcasting_channel.country" + ], + [ + "tv_channel.country", + "television_channel.country" + ], + [ + "broadcasting_channel.country", + "television_channel.country" + ], + [ + "tv_channel.language", + "broadcasting_channel.language" + ], + [ + "tv_channel.language", + "television_channel.language" + ], + [ + "broadcasting_channel.language", + "television_channel.language" + ], + [ + "tv_channel.content", + "broadcasting_channel.content" + ], + [ + "tv_channel.content", + "television_channel.content" + ], + [ + "broadcasting_channel.content", + "television_channel.content" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "broadcasting_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "broadcasting_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.hight_definition_tv", + "broadcasting_channel.hight_definition_tv" + ], + [ + "tv_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "broadcasting_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "tv_channel.pay_per_view_ppv", + "broadcasting_channel.pay_per_view_ppv" + ], + [ + "tv_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "broadcasting_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "tv_channel.package_option", + "broadcasting_channel.package_option" + ], + [ + "tv_channel.package_option", + "television_channel.package_option" + ], + [ + "broadcasting_channel.package_option", + "television_channel.package_option" + ] + ] + }, + { + "question": "list the #earnings of poker players# in descending order.", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "gambler": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ] + }, + "linking_list": [ + [ + "earnings of poker players", + "poker_player.earnings" + ], + [ + "earnings of poker players", + "player.earnings" + ], + [ + "earnings of poker players", + "gambler.earnings" + ] + ], + "linking_list_idx": [ + [ + 0, + "poker_player.earnings" + ], + [ + 0, + "player.earnings" + ], + [ + 0, + "gambler.earnings" + ] + ], + "linking_list_col": [ + [ + "poker_player.poker_player_id", + "player.poker_player_id" + ], + [ + "poker_player.poker_player_id", + "gambler.poker_player_id" + ], + [ + "player.poker_player_id", + "gambler.poker_player_id" + ], + [ + "poker_player.people_id", + "player.people_id" + ], + [ + "poker_player.people_id", + "gambler.people_id" + ], + [ + "player.people_id", + "gambler.people_id" + ], + [ + "poker_player.final_table_made", + "player.final_table_made" + ], + [ + "poker_player.final_table_made", + "gambler.final_table_made" + ], + [ + "player.final_table_made", + "gambler.final_table_made" + ], + [ + "poker_player.best_finish", + "player.best_finish" + ], + [ + "poker_player.best_finish", + "gambler.best_finish" + ], + [ + "player.best_finish", + "gambler.best_finish" + ], + [ + "poker_player.money_rank", + "player.money_rank" + ], + [ + "poker_player.money_rank", + "gambler.money_rank" + ], + [ + "player.money_rank", + "gambler.money_rank" + ], + [ + "poker_player.earnings", + "player.earnings" + ], + [ + "poker_player.earnings", + "gambler.earnings" + ], + [ + "player.earnings", + "gambler.earnings" + ] + ] + }, + { + "question": "what are the #earnings of poker players# , ordered descending by value?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "gambler": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ] + }, + "linking_list": [ + [ + "earnings of poker players", + "poker_player.earnings" + ], + [ + "earnings of poker players", + "player.earnings" + ], + [ + "earnings of poker players", + "gambler.earnings" + ] + ], + "linking_list_idx": [ + [ + 0, + "poker_player.earnings" + ], + [ + 0, + "player.earnings" + ], + [ + 0, + "gambler.earnings" + ] + ], + "linking_list_col": [ + [ + "poker_player.poker_player_id", + "player.poker_player_id" + ], + [ + "poker_player.poker_player_id", + "gambler.poker_player_id" + ], + [ + "player.poker_player_id", + "gambler.poker_player_id" + ], + [ + "poker_player.people_id", + "player.people_id" + ], + [ + "poker_player.people_id", + "gambler.people_id" + ], + [ + "player.people_id", + "gambler.people_id" + ], + [ + "poker_player.final_table_made", + "player.final_table_made" + ], + [ + "poker_player.final_table_made", + "gambler.final_table_made" + ], + [ + "player.final_table_made", + "gambler.final_table_made" + ], + [ + "poker_player.best_finish", + "player.best_finish" + ], + [ + "poker_player.best_finish", + "gambler.best_finish" + ], + [ + "player.best_finish", + "gambler.best_finish" + ], + [ + "poker_player.money_rank", + "player.money_rank" + ], + [ + "poker_player.money_rank", + "gambler.money_rank" + ], + [ + "player.money_rank", + "gambler.money_rank" + ], + [ + "poker_player.earnings", + "player.earnings" + ], + [ + "poker_player.earnings", + "gambler.earnings" + ], + [ + "player.earnings", + "gambler.earnings" + ] + ] + }, + { + "question": "what is the #money rank of the poker player# with the highest earnings?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "gambler": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ] + }, + "linking_list": [ + [ + "money rank of the poker player", + "poker_player.money_rank" + ], + [ + "money rank of the poker player", + "player.money_rank" + ], + [ + "money rank of the poker player", + "gambler.money_rank" + ] + ], + "linking_list_idx": [ + [ + 0, + "poker_player.money_rank" + ], + [ + 0, + "player.money_rank" + ], + [ + 0, + "gambler.money_rank" + ] + ], + "linking_list_col": [ + [ + "poker_player.poker_player_id", + "player.poker_player_id" + ], + [ + "poker_player.poker_player_id", + "gambler.poker_player_id" + ], + [ + "player.poker_player_id", + "gambler.poker_player_id" + ], + [ + "poker_player.people_id", + "player.people_id" + ], + [ + "poker_player.people_id", + "gambler.people_id" + ], + [ + "player.people_id", + "gambler.people_id" + ], + [ + "poker_player.final_table_made", + "player.final_table_made" + ], + [ + "poker_player.final_table_made", + "gambler.final_table_made" + ], + [ + "player.final_table_made", + "gambler.final_table_made" + ], + [ + "poker_player.best_finish", + "player.best_finish" + ], + [ + "poker_player.best_finish", + "gambler.best_finish" + ], + [ + "player.best_finish", + "gambler.best_finish" + ], + [ + "poker_player.money_rank", + "player.money_rank" + ], + [ + "poker_player.money_rank", + "gambler.money_rank" + ], + [ + "player.money_rank", + "gambler.money_rank" + ], + [ + "poker_player.earnings", + "player.earnings" + ], + [ + "poker_player.earnings", + "gambler.earnings" + ], + [ + "player.earnings", + "gambler.earnings" + ] + ] + }, + { + "question": "return the #money rank of the player# with the greatest #earnings# .", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "gambler": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ] + }, + "linking_list": [ + [ + "money rank of the player", + "poker_player.money_rank" + ], + [ + "money rank of the player", + "player.money_rank" + ], + [ + "money rank of the player", + "gambler.money_rank" + ], + [ + "earnings", + "poker_player.earnings" + ], + [ + "earnings", + "player.earnings" + ], + [ + "earnings", + "gambler.earnings" + ] + ], + "linking_list_idx": [ + [ + 0, + "poker_player.money_rank" + ], + [ + 0, + "player.money_rank" + ], + [ + 0, + "gambler.money_rank" + ], + [ + 1, + "poker_player.earnings" + ], + [ + 1, + "player.earnings" + ], + [ + 1, + "gambler.earnings" + ] + ], + "linking_list_col": [ + [ + "poker_player.poker_player_id", + "player.poker_player_id" + ], + [ + "poker_player.poker_player_id", + "gambler.poker_player_id" + ], + [ + "player.poker_player_id", + "gambler.poker_player_id" + ], + [ + "poker_player.people_id", + "player.people_id" + ], + [ + "poker_player.people_id", + "gambler.people_id" + ], + [ + "player.people_id", + "gambler.people_id" + ], + [ + "poker_player.final_table_made", + "player.final_table_made" + ], + [ + "poker_player.final_table_made", + "gambler.final_table_made" + ], + [ + "player.final_table_made", + "gambler.final_table_made" + ], + [ + "poker_player.best_finish", + "player.best_finish" + ], + [ + "poker_player.best_finish", + "gambler.best_finish" + ], + [ + "player.best_finish", + "gambler.best_finish" + ], + [ + "poker_player.money_rank", + "player.money_rank" + ], + [ + "poker_player.money_rank", + "gambler.money_rank" + ], + [ + "player.money_rank", + "gambler.money_rank" + ], + [ + "poker_player.earnings", + "player.earnings" + ], + [ + "poker_player.earnings", + "gambler.earnings" + ], + [ + "player.earnings", + "gambler.earnings" + ] + ] + }, + { + "question": "what is the #maximum number of final tables made# among #poker players with earnings# less than 200000?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "gambler": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ] + }, + "linking_list": [ + [ + "maximum number of final tables made", + "poker_player.final_table_made" + ], + [ + "maximum number of final tables made", + "player.final_table_made" + ], + [ + "maximum number of final tables made", + "gambler.final_table_made" + ], + [ + "poker players with earnings", + "poker_player.earnings" + ], + [ + "poker players with earnings", + "player.earnings" + ], + [ + "poker players with earnings", + "gambler.earnings" + ] + ], + "linking_list_idx": [ + [ + 0, + "poker_player.final_table_made" + ], + [ + 0, + "player.final_table_made" + ], + [ + 0, + "gambler.final_table_made" + ], + [ + 1, + "poker_player.earnings" + ], + [ + 1, + "player.earnings" + ], + [ + 1, + "gambler.earnings" + ] + ], + "linking_list_col": [ + [ + "poker_player.poker_player_id", + "player.poker_player_id" + ], + [ + "poker_player.poker_player_id", + "gambler.poker_player_id" + ], + [ + "player.poker_player_id", + "gambler.poker_player_id" + ], + [ + "poker_player.people_id", + "player.people_id" + ], + [ + "poker_player.people_id", + "gambler.people_id" + ], + [ + "player.people_id", + "gambler.people_id" + ], + [ + "poker_player.final_table_made", + "player.final_table_made" + ], + [ + "poker_player.final_table_made", + "gambler.final_table_made" + ], + [ + "player.final_table_made", + "gambler.final_table_made" + ], + [ + "poker_player.best_finish", + "player.best_finish" + ], + [ + "poker_player.best_finish", + "gambler.best_finish" + ], + [ + "player.best_finish", + "gambler.best_finish" + ], + [ + "poker_player.money_rank", + "player.money_rank" + ], + [ + "poker_player.money_rank", + "gambler.money_rank" + ], + [ + "player.money_rank", + "gambler.money_rank" + ], + [ + "poker_player.earnings", + "player.earnings" + ], + [ + "poker_player.earnings", + "gambler.earnings" + ], + [ + "player.earnings", + "gambler.earnings" + ] + ] + }, + { + "question": "return the #maximum final tables made# across all poker players who have #earnings# below 200000.", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "gambler": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ] + }, + "linking_list": [ + [ + "maximum final tables made", + "poker_player.final_table_made" + ], + [ + "maximum final tables made", + "player.final_table_made" + ], + [ + "maximum final tables made", + "gambler.final_table_made" + ], + [ + "earnings", + "poker_player.earnings" + ], + [ + "earnings", + "player.earnings" + ], + [ + "earnings", + "gambler.earnings" + ] + ], + "linking_list_idx": [ + [ + 0, + "poker_player.final_table_made" + ], + [ + 0, + "player.final_table_made" + ], + [ + 0, + "gambler.final_table_made" + ], + [ + 1, + "poker_player.earnings" + ], + [ + 1, + "player.earnings" + ], + [ + 1, + "gambler.earnings" + ] + ], + "linking_list_col": [ + [ + "poker_player.poker_player_id", + "player.poker_player_id" + ], + [ + "poker_player.poker_player_id", + "gambler.poker_player_id" + ], + [ + "player.poker_player_id", + "gambler.poker_player_id" + ], + [ + "poker_player.people_id", + "player.people_id" + ], + [ + "poker_player.people_id", + "gambler.people_id" + ], + [ + "player.people_id", + "gambler.people_id" + ], + [ + "poker_player.final_table_made", + "player.final_table_made" + ], + [ + "poker_player.final_table_made", + "gambler.final_table_made" + ], + [ + "player.final_table_made", + "gambler.final_table_made" + ], + [ + "poker_player.best_finish", + "player.best_finish" + ], + [ + "poker_player.best_finish", + "gambler.best_finish" + ], + [ + "player.best_finish", + "gambler.best_finish" + ], + [ + "poker_player.money_rank", + "player.money_rank" + ], + [ + "poker_player.money_rank", + "gambler.money_rank" + ], + [ + "player.money_rank", + "gambler.money_rank" + ], + [ + "poker_player.earnings", + "player.earnings" + ], + [ + "poker_player.earnings", + "gambler.earnings" + ], + [ + "player.earnings", + "gambler.earnings" + ] + ] + }, + { + "question": "return the #names of all the poker players# .", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "names of all the poker players", + "people.name" + ], + [ + "names of all the poker players", + "person.name" + ], + [ + "names of all the poker players", + "individuals.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.name" + ], + [ + 0, + "person.name" + ], + [ + 0, + "individuals.name" + ] + ], + "linking_list_col": [ + [ + "people.people_id", + "person.people_id" + ], + [ + "people.people_id", + "individuals.people_id" + ], + [ + "person.people_id", + "individuals.people_id" + ], + [ + "people.nationality", + "person.nationality" + ], + [ + "people.nationality", + "individuals.nationality" + ], + [ + "person.nationality", + "individuals.nationality" + ], + [ + "people.name", + "person.name" + ], + [ + "people.name", + "individuals.name" + ], + [ + "person.name", + "individuals.name" + ], + [ + "people.birth_date", + "person.birth_date" + ], + [ + "people.birth_date", + "individuals.birth_date" + ], + [ + "person.birth_date", + "individuals.birth_date" + ], + [ + "people.height", + "person.height" + ], + [ + "people.height", + "individuals.height" + ], + [ + "person.height", + "individuals.height" + ] + ] + }, + { + "question": "what are the #names of poker players# whose #earnings# is higher than 300000?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "names of poker players", + "people.name" + ], + [ + "names of poker players", + "person.name" + ], + [ + "names of poker players", + "individuals.name" + ], + [ + "earnings", + "poker_player.earnings" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.name" + ], + [ + 0, + "person.name" + ], + [ + 0, + "individuals.name" + ], + [ + 1, + "poker_player.earnings" + ] + ], + "linking_list_col": [ + [ + "people.people_id", + "person.people_id" + ], + [ + "people.people_id", + "individuals.people_id" + ], + [ + "person.people_id", + "individuals.people_id" + ], + [ + "people.nationality", + "person.nationality" + ], + [ + "people.nationality", + "individuals.nationality" + ], + [ + "person.nationality", + "individuals.nationality" + ], + [ + "people.name", + "person.name" + ], + [ + "people.name", + "individuals.name" + ], + [ + "person.name", + "individuals.name" + ], + [ + "people.birth_date", + "person.birth_date" + ], + [ + "people.birth_date", + "individuals.birth_date" + ], + [ + "person.birth_date", + "individuals.birth_date" + ], + [ + "people.height", + "person.height" + ], + [ + "people.height", + "individuals.height" + ], + [ + "person.height", + "individuals.height" + ] + ] + }, + { + "question": "give the #names of poker players# who have #earnings# above 300000.", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "names of poker players", + "people.name" + ], + [ + "names of poker players", + "person.name" + ], + [ + "names of poker players", + "individuals.name" + ], + [ + "earnings", + "poker_player.earnings" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.name" + ], + [ + 0, + "person.name" + ], + [ + 0, + "individuals.name" + ], + [ + 1, + "poker_player.earnings" + ] + ], + "linking_list_col": [ + [ + "people.people_id", + "person.people_id" + ], + [ + "people.people_id", + "individuals.people_id" + ], + [ + "person.people_id", + "individuals.people_id" + ], + [ + "people.nationality", + "person.nationality" + ], + [ + "people.nationality", + "individuals.nationality" + ], + [ + "person.nationality", + "individuals.nationality" + ], + [ + "people.name", + "person.name" + ], + [ + "people.name", + "individuals.name" + ], + [ + "person.name", + "individuals.name" + ], + [ + "people.birth_date", + "person.birth_date" + ], + [ + "people.birth_date", + "individuals.birth_date" + ], + [ + "person.birth_date", + "individuals.birth_date" + ], + [ + "people.height", + "person.height" + ], + [ + "people.height", + "individuals.height" + ], + [ + "person.height", + "individuals.height" + ] + ] + }, + { + "question": "list the #names of poker players# ordered by the #final tables made# in ascending order.", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "names of poker players", + "people.name" + ], + [ + "names of poker players", + "person.name" + ], + [ + "names of poker players", + "individuals.name" + ], + [ + "final tables made", + "poker_player.final_table_made" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.name" + ], + [ + 0, + "person.name" + ], + [ + 0, + "individuals.name" + ], + [ + 1, + "poker_player.final_table_made" + ] + ], + "linking_list_col": [ + [ + "people.people_id", + "person.people_id" + ], + [ + "people.people_id", + "individuals.people_id" + ], + [ + "person.people_id", + "individuals.people_id" + ], + [ + "people.nationality", + "person.nationality" + ], + [ + "people.nationality", + "individuals.nationality" + ], + [ + "person.nationality", + "individuals.nationality" + ], + [ + "people.name", + "person.name" + ], + [ + "people.name", + "individuals.name" + ], + [ + "person.name", + "individuals.name" + ], + [ + "people.birth_date", + "person.birth_date" + ], + [ + "people.birth_date", + "individuals.birth_date" + ], + [ + "person.birth_date", + "individuals.birth_date" + ], + [ + "people.height", + "person.height" + ], + [ + "people.height", + "individuals.height" + ], + [ + "person.height", + "individuals.height" + ] + ] + }, + { + "question": "what are the #names of poker players# , ordered ascending by the number of final tables they have made?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "names of poker players", + "people.name" + ], + [ + "names of poker players", + "person.name" + ], + [ + "names of poker players", + "individuals.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.name" + ], + [ + 0, + "person.name" + ], + [ + 0, + "individuals.name" + ] + ], + "linking_list_col": [ + [ + "people.people_id", + "person.people_id" + ], + [ + "people.people_id", + "individuals.people_id" + ], + [ + "person.people_id", + "individuals.people_id" + ], + [ + "people.nationality", + "person.nationality" + ], + [ + "people.nationality", + "individuals.nationality" + ], + [ + "person.nationality", + "individuals.nationality" + ], + [ + "people.name", + "person.name" + ], + [ + "people.name", + "individuals.name" + ], + [ + "person.name", + "individuals.name" + ], + [ + "people.birth_date", + "person.birth_date" + ], + [ + "people.birth_date", + "individuals.birth_date" + ], + [ + "person.birth_date", + "individuals.birth_date" + ], + [ + "people.height", + "person.height" + ], + [ + "people.height", + "individuals.height" + ], + [ + "person.height", + "individuals.height" + ] + ] + }, + { + "question": "what is the #birth date of the poker player# with the lowest earnings?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "birth date of the poker player", + "people.birth_date" + ], + [ + "birth date of the poker player", + "person.birth_date" + ], + [ + "birth date of the poker player", + "individuals.birth_date" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.birth_date" + ], + [ + 0, + "person.birth_date" + ], + [ + 0, + "individuals.birth_date" + ] + ], + "linking_list_col": [ + [ + "people.people_id", + "person.people_id" + ], + [ + "people.people_id", + "individuals.people_id" + ], + [ + "person.people_id", + "individuals.people_id" + ], + [ + "people.nationality", + "person.nationality" + ], + [ + "people.nationality", + "individuals.nationality" + ], + [ + "person.nationality", + "individuals.nationality" + ], + [ + "people.name", + "person.name" + ], + [ + "people.name", + "individuals.name" + ], + [ + "person.name", + "individuals.name" + ], + [ + "people.birth_date", + "person.birth_date" + ], + [ + "people.birth_date", + "individuals.birth_date" + ], + [ + "person.birth_date", + "individuals.birth_date" + ], + [ + "people.height", + "person.height" + ], + [ + "people.height", + "individuals.height" + ], + [ + "person.height", + "individuals.height" + ] + ] + }, + { + "question": "return the #birth date of the poker player# with the lowest #earnings# .", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "birth date of the poker player", + "people.birth_date" + ], + [ + "birth date of the poker player", + "person.birth_date" + ], + [ + "birth date of the poker player", + "individuals.birth_date" + ], + [ + "earnings", + "poker_player.earnings" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.birth_date" + ], + [ + 0, + "person.birth_date" + ], + [ + 0, + "individuals.birth_date" + ], + [ + 1, + "poker_player.earnings" + ] + ], + "linking_list_col": [ + [ + "people.people_id", + "person.people_id" + ], + [ + "people.people_id", + "individuals.people_id" + ], + [ + "person.people_id", + "individuals.people_id" + ], + [ + "people.nationality", + "person.nationality" + ], + [ + "people.nationality", + "individuals.nationality" + ], + [ + "person.nationality", + "individuals.nationality" + ], + [ + "people.name", + "person.name" + ], + [ + "people.name", + "individuals.name" + ], + [ + "person.name", + "individuals.name" + ], + [ + "people.birth_date", + "person.birth_date" + ], + [ + "people.birth_date", + "individuals.birth_date" + ], + [ + "person.birth_date", + "individuals.birth_date" + ], + [ + "people.height", + "person.height" + ], + [ + "people.height", + "individuals.height" + ], + [ + "person.height", + "individuals.height" + ] + ] + }, + { + "question": "return the #money rank of the poker player# with the greatest #height# .", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "money rank of the poker player", + "poker_player.money_rank" + ], + [ + "height", + "people.height" + ], + [ + "height", + "person.height" + ], + [ + "height", + "individuals.height" + ] + ], + "linking_list_idx": [ + [ + 0, + "poker_player.money_rank" + ], + [ + 1, + "people.height" + ], + [ + 1, + "person.height" + ], + [ + 1, + "individuals.height" + ] + ], + "linking_list_col": [ + [ + "people.people_id", + "person.people_id" + ], + [ + "people.people_id", + "individuals.people_id" + ], + [ + "person.people_id", + "individuals.people_id" + ], + [ + "people.nationality", + "person.nationality" + ], + [ + "people.nationality", + "individuals.nationality" + ], + [ + "person.nationality", + "individuals.nationality" + ], + [ + "people.name", + "person.name" + ], + [ + "people.name", + "individuals.name" + ], + [ + "person.name", + "individuals.name" + ], + [ + "people.birth_date", + "person.birth_date" + ], + [ + "people.birth_date", + "individuals.birth_date" + ], + [ + "person.birth_date", + "individuals.birth_date" + ], + [ + "people.height", + "person.height" + ], + [ + "people.height", + "individuals.height" + ], + [ + "person.height", + "individuals.height" + ] + ] + }, + { + "question": "give #average earnings of poker players# who are #taller than 200# .", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "average earnings of poker players", + "poker_player.earnings" + ], + [ + "taller than 200", + "people.height" + ], + [ + "taller than 200", + "person.height" + ], + [ + "taller than 200", + "individuals.height" + ] + ], + "linking_list_idx": [ + [ + 0, + "poker_player.earnings" + ], + [ + 1, + "people.height" + ], + [ + 1, + "person.height" + ], + [ + 1, + "individuals.height" + ] + ], + "linking_list_col": [ + [ + "people.people_id", + "person.people_id" + ], + [ + "people.people_id", + "individuals.people_id" + ], + [ + "person.people_id", + "individuals.people_id" + ], + [ + "people.nationality", + "person.nationality" + ], + [ + "people.nationality", + "individuals.nationality" + ], + [ + "person.nationality", + "individuals.nationality" + ], + [ + "people.name", + "person.name" + ], + [ + "people.name", + "individuals.name" + ], + [ + "person.name", + "individuals.name" + ], + [ + "people.birth_date", + "person.birth_date" + ], + [ + "people.birth_date", + "individuals.birth_date" + ], + [ + "person.birth_date", + "individuals.birth_date" + ], + [ + "people.height", + "person.height" + ], + [ + "people.height", + "individuals.height" + ], + [ + "person.height", + "individuals.height" + ] + ] + }, + { + "question": "what are the #names of poker players# in descending order of earnings?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "names of poker players", + "people.name" + ], + [ + "names of poker players", + "person.name" + ], + [ + "names of poker players", + "individuals.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.name" + ], + [ + 0, + "person.name" + ], + [ + 0, + "individuals.name" + ] + ], + "linking_list_col": [ + [ + "people.people_id", + "person.people_id" + ], + [ + "people.people_id", + "individuals.people_id" + ], + [ + "person.people_id", + "individuals.people_id" + ], + [ + "people.nationality", + "person.nationality" + ], + [ + "people.nationality", + "individuals.nationality" + ], + [ + "person.nationality", + "individuals.nationality" + ], + [ + "people.name", + "person.name" + ], + [ + "people.name", + "individuals.name" + ], + [ + "person.name", + "individuals.name" + ], + [ + "people.birth_date", + "person.birth_date" + ], + [ + "people.birth_date", + "individuals.birth_date" + ], + [ + "person.birth_date", + "individuals.birth_date" + ], + [ + "people.height", + "person.height" + ], + [ + "people.height", + "individuals.height" + ], + [ + "person.height", + "individuals.height" + ] + ] + }, + { + "question": "return the #names of poker players# sorted by their #earnings# descending.", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "names of poker players", + "people.name" + ], + [ + "names of poker players", + "person.name" + ], + [ + "names of poker players", + "individuals.name" + ], + [ + "earnings", + "poker_player.earnings" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.name" + ], + [ + 0, + "person.name" + ], + [ + 0, + "individuals.name" + ], + [ + 1, + "poker_player.earnings" + ] + ], + "linking_list_col": [ + [ + "people.people_id", + "person.people_id" + ], + [ + "people.people_id", + "individuals.people_id" + ], + [ + "person.people_id", + "individuals.people_id" + ], + [ + "people.nationality", + "person.nationality" + ], + [ + "people.nationality", + "individuals.nationality" + ], + [ + "person.nationality", + "individuals.nationality" + ], + [ + "people.name", + "person.name" + ], + [ + "people.name", + "individuals.name" + ], + [ + "person.name", + "individuals.name" + ], + [ + "people.birth_date", + "person.birth_date" + ], + [ + "people.birth_date", + "individuals.birth_date" + ], + [ + "person.birth_date", + "individuals.birth_date" + ], + [ + "people.height", + "person.height" + ], + [ + "people.height", + "individuals.height" + ], + [ + "person.height", + "individuals.height" + ] + ] + }, + { + "question": "what are different #nationalities of people# and the corresponding number of people from each nation?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "nationalities of people", + "people.nationality" + ], + [ + "nationalities of people", + "person.nationality" + ], + [ + "nationalities of people", + "individuals.nationality" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.nationality" + ], + [ + 0, + "person.nationality" + ], + [ + 0, + "individuals.nationality" + ] + ], + "linking_list_col": [ + [ + "people.people_id", + "person.people_id" + ], + [ + "people.people_id", + "individuals.people_id" + ], + [ + "person.people_id", + "individuals.people_id" + ], + [ + "people.nationality", + "person.nationality" + ], + [ + "people.nationality", + "individuals.nationality" + ], + [ + "person.nationality", + "individuals.nationality" + ], + [ + "people.name", + "person.name" + ], + [ + "people.name", + "individuals.name" + ], + [ + "person.name", + "individuals.name" + ], + [ + "people.birth_date", + "person.birth_date" + ], + [ + "people.birth_date", + "individuals.birth_date" + ], + [ + "person.birth_date", + "individuals.birth_date" + ], + [ + "people.height", + "person.height" + ], + [ + "people.height", + "individuals.height" + ], + [ + "person.height", + "individuals.height" + ] + ] + }, + { + "question": "give the #nationality# that is most common across all people.", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "nationality", + "people.nationality" + ], + [ + "nationality", + "person.nationality" + ], + [ + "nationality", + "individuals.nationality" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.nationality" + ], + [ + 0, + "person.nationality" + ], + [ + 0, + "individuals.nationality" + ] + ], + "linking_list_col": [ + [ + "people.people_id", + "person.people_id" + ], + [ + "people.people_id", + "individuals.people_id" + ], + [ + "person.people_id", + "individuals.people_id" + ], + [ + "people.nationality", + "person.nationality" + ], + [ + "people.nationality", + "individuals.nationality" + ], + [ + "person.nationality", + "individuals.nationality" + ], + [ + "people.name", + "person.name" + ], + [ + "people.name", + "individuals.name" + ], + [ + "person.name", + "individuals.name" + ], + [ + "people.birth_date", + "person.birth_date" + ], + [ + "people.birth_date", + "individuals.birth_date" + ], + [ + "person.birth_date", + "individuals.birth_date" + ], + [ + "people.height", + "person.height" + ], + [ + "people.height", + "individuals.height" + ], + [ + "person.height", + "individuals.height" + ] + ] + }, + { + "question": "what are the #nationalities# that are shared by at least two people?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "nationalities", + "people.nationality" + ], + [ + "nationalities", + "person.nationality" + ], + [ + "nationalities", + "individuals.nationality" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.nationality" + ], + [ + 0, + "person.nationality" + ], + [ + 0, + "individuals.nationality" + ] + ], + "linking_list_col": [ + [ + "people.people_id", + "person.people_id" + ], + [ + "people.people_id", + "individuals.people_id" + ], + [ + "person.people_id", + "individuals.people_id" + ], + [ + "people.nationality", + "person.nationality" + ], + [ + "people.nationality", + "individuals.nationality" + ], + [ + "person.nationality", + "individuals.nationality" + ], + [ + "people.name", + "person.name" + ], + [ + "people.name", + "individuals.name" + ], + [ + "person.name", + "individuals.name" + ], + [ + "people.birth_date", + "person.birth_date" + ], + [ + "people.birth_date", + "individuals.birth_date" + ], + [ + "person.birth_date", + "individuals.birth_date" + ], + [ + "people.height", + "person.height" + ], + [ + "people.height", + "individuals.height" + ], + [ + "person.height", + "individuals.height" + ] + ] + }, + { + "question": "return the #nationalities# for which there are two or more people.", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "nationalities", + "people.nationality" + ], + [ + "nationalities", + "person.nationality" + ], + [ + "nationalities", + "individuals.nationality" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.nationality" + ], + [ + 0, + "person.nationality" + ], + [ + 0, + "individuals.nationality" + ] + ], + "linking_list_col": [ + [ + "people.people_id", + "person.people_id" + ], + [ + "people.people_id", + "individuals.people_id" + ], + [ + "person.people_id", + "individuals.people_id" + ], + [ + "people.nationality", + "person.nationality" + ], + [ + "people.nationality", + "individuals.nationality" + ], + [ + "person.nationality", + "individuals.nationality" + ], + [ + "people.name", + "person.name" + ], + [ + "people.name", + "individuals.name" + ], + [ + "person.name", + "individuals.name" + ], + [ + "people.birth_date", + "person.birth_date" + ], + [ + "people.birth_date", + "individuals.birth_date" + ], + [ + "person.birth_date", + "individuals.birth_date" + ], + [ + "people.height", + "person.height" + ], + [ + "people.height", + "individuals.height" + ], + [ + "person.height", + "individuals.height" + ] + ] + }, + { + "question": "list the #names# and #birth dates of people# in ascending alphabetical order of name.", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "names", + "people.name" + ], + [ + "names", + "person.name" + ], + [ + "names", + "individuals.name" + ], + [ + "birth dates of people", + "people.birth_date" + ], + [ + "birth dates of people", + "person.birth_date" + ], + [ + "birth dates of people", + "individuals.birth_date" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.name" + ], + [ + 0, + "person.name" + ], + [ + 0, + "individuals.name" + ], + [ + 1, + "people.birth_date" + ], + [ + 1, + "person.birth_date" + ], + [ + 1, + "individuals.birth_date" + ] + ], + "linking_list_col": [ + [ + "people.people_id", + "person.people_id" + ], + [ + "people.people_id", + "individuals.people_id" + ], + [ + "person.people_id", + "individuals.people_id" + ], + [ + "people.nationality", + "person.nationality" + ], + [ + "people.nationality", + "individuals.nationality" + ], + [ + "person.nationality", + "individuals.nationality" + ], + [ + "people.name", + "person.name" + ], + [ + "people.name", + "individuals.name" + ], + [ + "person.name", + "individuals.name" + ], + [ + "people.birth_date", + "person.birth_date" + ], + [ + "people.birth_date", + "individuals.birth_date" + ], + [ + "person.birth_date", + "individuals.birth_date" + ], + [ + "people.height", + "person.height" + ], + [ + "people.height", + "individuals.height" + ], + [ + "person.height", + "individuals.height" + ] + ] + }, + { + "question": "what are the #names# and #birth dates of people# , ordered by their names in alphabetical order?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "names", + "people.name" + ], + [ + "names", + "person.name" + ], + [ + "names", + "individuals.name" + ], + [ + "birth dates of people", + "people.birth_date" + ], + [ + "birth dates of people", + "person.birth_date" + ], + [ + "birth dates of people", + "individuals.birth_date" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.name" + ], + [ + 0, + "person.name" + ], + [ + 0, + "individuals.name" + ], + [ + 1, + "people.birth_date" + ], + [ + 1, + "person.birth_date" + ], + [ + 1, + "individuals.birth_date" + ] + ], + "linking_list_col": [ + [ + "people.people_id", + "person.people_id" + ], + [ + "people.people_id", + "individuals.people_id" + ], + [ + "person.people_id", + "individuals.people_id" + ], + [ + "people.nationality", + "person.nationality" + ], + [ + "people.nationality", + "individuals.nationality" + ], + [ + "person.nationality", + "individuals.nationality" + ], + [ + "people.name", + "person.name" + ], + [ + "people.name", + "individuals.name" + ], + [ + "person.name", + "individuals.name" + ], + [ + "people.birth_date", + "person.birth_date" + ], + [ + "people.birth_date", + "individuals.birth_date" + ], + [ + "person.birth_date", + "individuals.birth_date" + ], + [ + "people.height", + "person.height" + ], + [ + "people.height", + "individuals.height" + ], + [ + "person.height", + "individuals.height" + ] + ] + }, + { + "question": "show #names of people# whose #nationality# is not \"russia\".", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "names of people", + "people.name" + ], + [ + "names of people", + "person.name" + ], + [ + "names of people", + "individuals.name" + ], + [ + "nationality", + "people.nationality" + ], + [ + "nationality", + "person.nationality" + ], + [ + "nationality", + "individuals.nationality" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.name" + ], + [ + 0, + "person.name" + ], + [ + 0, + "individuals.name" + ], + [ + 1, + "people.nationality" + ], + [ + 1, + "person.nationality" + ], + [ + 1, + "individuals.nationality" + ] + ], + "linking_list_col": [ + [ + "people.people_id", + "person.people_id" + ], + [ + "people.people_id", + "individuals.people_id" + ], + [ + "person.people_id", + "individuals.people_id" + ], + [ + "people.nationality", + "person.nationality" + ], + [ + "people.nationality", + "individuals.nationality" + ], + [ + "person.nationality", + "individuals.nationality" + ], + [ + "people.name", + "person.name" + ], + [ + "people.name", + "individuals.name" + ], + [ + "person.name", + "individuals.name" + ], + [ + "people.birth_date", + "person.birth_date" + ], + [ + "people.birth_date", + "individuals.birth_date" + ], + [ + "person.birth_date", + "individuals.birth_date" + ], + [ + "people.height", + "person.height" + ], + [ + "people.height", + "individuals.height" + ], + [ + "person.height", + "individuals.height" + ] + ] + }, + { + "question": "what are the #names of people# who are not from russia?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "names of people", + "people.name" + ], + [ + "names of people", + "person.name" + ], + [ + "names of people", + "individuals.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.name" + ], + [ + 0, + "person.name" + ], + [ + 0, + "individuals.name" + ] + ], + "linking_list_col": [ + [ + "people.people_id", + "person.people_id" + ], + [ + "people.people_id", + "individuals.people_id" + ], + [ + "person.people_id", + "individuals.people_id" + ], + [ + "people.nationality", + "person.nationality" + ], + [ + "people.nationality", + "individuals.nationality" + ], + [ + "person.nationality", + "individuals.nationality" + ], + [ + "people.name", + "person.name" + ], + [ + "people.name", + "individuals.name" + ], + [ + "person.name", + "individuals.name" + ], + [ + "people.birth_date", + "person.birth_date" + ], + [ + "people.birth_date", + "individuals.birth_date" + ], + [ + "person.birth_date", + "individuals.birth_date" + ], + [ + "people.height", + "person.height" + ], + [ + "people.height", + "individuals.height" + ], + [ + "person.height", + "individuals.height" + ] + ] + }, + { + "question": "list the #names of people# that are not poker players.", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "names of people", + "people.name" + ], + [ + "names of people", + "person.name" + ], + [ + "names of people", + "individuals.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.name" + ], + [ + 0, + "person.name" + ], + [ + 0, + "individuals.name" + ] + ], + "linking_list_col": [ + [ + "people.people_id", + "person.people_id" + ], + [ + "people.people_id", + "individuals.people_id" + ], + [ + "person.people_id", + "individuals.people_id" + ], + [ + "people.nationality", + "person.nationality" + ], + [ + "people.nationality", + "individuals.nationality" + ], + [ + "person.nationality", + "individuals.nationality" + ], + [ + "people.name", + "person.name" + ], + [ + "people.name", + "individuals.name" + ], + [ + "person.name", + "individuals.name" + ], + [ + "people.birth_date", + "person.birth_date" + ], + [ + "people.birth_date", + "individuals.birth_date" + ], + [ + "person.birth_date", + "individuals.birth_date" + ], + [ + "people.height", + "person.height" + ], + [ + "people.height", + "individuals.height" + ], + [ + "person.height", + "individuals.height" + ] + ] + }, + { + "question": "what are the #names of people# who do not play poker?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "names of people", + "people.name" + ], + [ + "names of people", + "person.name" + ], + [ + "names of people", + "individuals.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.name" + ], + [ + 0, + "person.name" + ], + [ + 0, + "individuals.name" + ] + ], + "linking_list_col": [ + [ + "people.people_id", + "person.people_id" + ], + [ + "people.people_id", + "individuals.people_id" + ], + [ + "person.people_id", + "individuals.people_id" + ], + [ + "people.nationality", + "person.nationality" + ], + [ + "people.nationality", + "individuals.nationality" + ], + [ + "person.nationality", + "individuals.nationality" + ], + [ + "people.name", + "person.name" + ], + [ + "people.name", + "individuals.name" + ], + [ + "person.name", + "individuals.name" + ], + [ + "people.birth_date", + "person.birth_date" + ], + [ + "people.birth_date", + "individuals.birth_date" + ], + [ + "person.birth_date", + "individuals.birth_date" + ], + [ + "people.height", + "person.height" + ], + [ + "people.height", + "individuals.height" + ], + [ + "person.height", + "individuals.height" + ] + ] + }, + { + "question": "list the #contestant numbers# and names, ordered by contestant name descending.", + "db_schema": { + "area_code_state": [ + "area_code", + "state" + ], + "contestants": [ + "contestant_number", + "contestant_name" + ], + "votes": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ], + "candidates": [ + "contestant_number", + "contestant_name" + ], + "participants": [ + "contestant_number", + "contestant_name" + ] + }, + "linking_list": [ + [ + "contestant numbers", + "contestants.contestant_number" + ], + [ + "contestant numbers", + "candidates.contestant_number" + ], + [ + "contestant numbers", + "participants.contestant_number" + ] + ], + "linking_list_idx": [ + [ + 0, + "contestants.contestant_number" + ], + [ + 0, + "candidates.contestant_number" + ], + [ + 0, + "participants.contestant_number" + ] + ], + "linking_list_col": [ + [ + "contestants.contestant_number", + "candidates.contestant_number" + ], + [ + "contestants.contestant_number", + "participants.contestant_number" + ], + [ + "candidates.contestant_number", + "participants.contestant_number" + ], + [ + "contestants.contestant_name", + "candidates.contestant_name" + ], + [ + "contestants.contestant_name", + "participants.contestant_name" + ], + [ + "candidates.contestant_name", + "participants.contestant_name" + ] + ] + }, + { + "question": "what is #last date created of votes# from the #state# 'ca'?", + "db_schema": { + "area_code_state": [ + "area_code", + "state" + ], + "contestants": [ + "contestant_number", + "contestant_name" + ], + "votes": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ], + "balloths": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ], + "polls": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ] + }, + "linking_list": [ + [ + "last date created of votes", + "votes.created" + ], + [ + "last date created of votes", + "balloths.created" + ], + [ + "last date created of votes", + "polls.created" + ], + [ + "state", + "votes.state" + ], + [ + "state", + "balloths.state" + ], + [ + "state", + "polls.state" + ] + ], + "linking_list_idx": [ + [ + 0, + "votes.created" + ], + [ + 0, + "balloths.created" + ], + [ + 0, + "polls.created" + ], + [ + 1, + "votes.state" + ], + [ + 1, + "balloths.state" + ], + [ + 1, + "polls.state" + ] + ], + "linking_list_col": [ + [ + "votes.vote_id", + "balloths.vote_id" + ], + [ + "votes.vote_id", + "polls.vote_id" + ], + [ + "balloths.vote_id", + "polls.vote_id" + ], + [ + "votes.phone_number", + "balloths.phone_number" + ], + [ + "votes.phone_number", + "polls.phone_number" + ], + [ + "balloths.phone_number", + "polls.phone_number" + ], + [ + "votes.state", + "balloths.state" + ], + [ + "votes.state", + "polls.state" + ], + [ + "balloths.state", + "polls.state" + ], + [ + "votes.contestant_number", + "balloths.contestant_number" + ], + [ + "votes.contestant_number", + "polls.contestant_number" + ], + [ + "balloths.contestant_number", + "polls.contestant_number" + ], + [ + "votes.created", + "balloths.created" + ], + [ + "votes.created", + "polls.created" + ], + [ + "balloths.created", + "polls.created" + ] + ] + }, + { + "question": "what are the #names of the contestants# whose names are not 'jessie alloway'", + "db_schema": { + "area_code_state": [ + "area_code", + "state" + ], + "contestants": [ + "contestant_number", + "contestant_name" + ], + "votes": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ], + "candidates": [ + "contestant_number", + "contestant_name" + ], + "participants": [ + "contestant_number", + "contestant_name" + ] + }, + "linking_list": [ + [ + "names of the contestants", + "contestants.contestant_name" + ], + [ + "names of the contestants", + "candidates.contestant_name" + ], + [ + "names of the contestants", + "participants.contestant_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "contestants.contestant_name" + ], + [ + 0, + "candidates.contestant_name" + ], + [ + 0, + "participants.contestant_name" + ] + ], + "linking_list_col": [ + [ + "contestants.contestant_number", + "candidates.contestant_number" + ], + [ + "contestants.contestant_number", + "participants.contestant_number" + ], + [ + "candidates.contestant_number", + "participants.contestant_number" + ], + [ + "contestants.contestant_name", + "candidates.contestant_name" + ], + [ + "contestants.contestant_name", + "participants.contestant_name" + ], + [ + "candidates.contestant_name", + "participants.contestant_name" + ] + ] + }, + { + "question": "of all the #contestants who got voted# , what is the #contestant number# and name of the contestant who got least votes?", + "db_schema": { + "area_code_state": [ + "area_code", + "state" + ], + "contestants": [ + "contestant_number", + "contestant_name" + ], + "votes": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ], + "balloths": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ], + "polls": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ] + }, + "linking_list": [ + [ + "contestants who got voted", + "votes.contestant_number" + ], + [ + "contestants who got voted", + "balloths.contestant_number" + ], + [ + "contestants who got voted", + "polls.contestant_number" + ], + [ + "contestant number", + "contestants.contestant_number" + ] + ], + "linking_list_idx": [ + [ + 0, + "votes.contestant_number" + ], + [ + 0, + "balloths.contestant_number" + ], + [ + 0, + "polls.contestant_number" + ], + [ + 1, + "contestants.contestant_number" + ] + ], + "linking_list_col": [ + [ + "votes.vote_id", + "balloths.vote_id" + ], + [ + "votes.vote_id", + "polls.vote_id" + ], + [ + "balloths.vote_id", + "polls.vote_id" + ], + [ + "votes.phone_number", + "balloths.phone_number" + ], + [ + "votes.phone_number", + "polls.phone_number" + ], + [ + "balloths.phone_number", + "polls.phone_number" + ], + [ + "votes.state", + "balloths.state" + ], + [ + "votes.state", + "polls.state" + ], + [ + "balloths.state", + "polls.state" + ], + [ + "votes.contestant_number", + "balloths.contestant_number" + ], + [ + "votes.contestant_number", + "polls.contestant_number" + ], + [ + "balloths.contestant_number", + "polls.contestant_number" + ], + [ + "votes.created", + "balloths.created" + ], + [ + "votes.created", + "polls.created" + ], + [ + "balloths.created", + "polls.created" + ] + ] + }, + { + "question": "what are the number of votes from #state# 'ny' or 'ca'?", + "db_schema": { + "area_code_state": [ + "area_code", + "state" + ], + "contestants": [ + "contestant_number", + "contestant_name" + ], + "votes": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ], + "balloths": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ], + "polls": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ] + }, + "linking_list": [ + [ + "state", + "votes.state" + ], + [ + "state", + "balloths.state" + ], + [ + "state", + "polls.state" + ] + ], + "linking_list_idx": [ + [ + 0, + "votes.state" + ], + [ + 0, + "balloths.state" + ], + [ + 0, + "polls.state" + ] + ], + "linking_list_col": [ + [ + "votes.vote_id", + "balloths.vote_id" + ], + [ + "votes.vote_id", + "polls.vote_id" + ], + [ + "balloths.vote_id", + "polls.vote_id" + ], + [ + "votes.phone_number", + "balloths.phone_number" + ], + [ + "votes.phone_number", + "polls.phone_number" + ], + [ + "balloths.phone_number", + "polls.phone_number" + ], + [ + "votes.state", + "balloths.state" + ], + [ + "votes.state", + "polls.state" + ], + [ + "balloths.state", + "polls.state" + ], + [ + "votes.contestant_number", + "balloths.contestant_number" + ], + [ + "votes.contestant_number", + "polls.contestant_number" + ], + [ + "balloths.contestant_number", + "polls.contestant_number" + ], + [ + "votes.created", + "balloths.created" + ], + [ + "votes.created", + "polls.created" + ], + [ + "balloths.created", + "polls.created" + ] + ] + }, + { + "question": "what are the #create dates# , #states# , and #phone numbers# of the votes that were for the contestant named 'tabatha gehling'?", + "db_schema": { + "area_code_state": [ + "area_code", + "state" + ], + "contestants": [ + "contestant_number", + "contestant_name" + ], + "votes": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ], + "balloths": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ], + "polls": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ] + }, + "linking_list": [ + [ + "create dates", + "votes.created" + ], + [ + "create dates", + "balloths.created" + ], + [ + "create dates", + "polls.created" + ], + [ + "states", + "votes.state" + ], + [ + "states", + "balloths.state" + ], + [ + "states", + "polls.state" + ], + [ + "phone numbers", + "votes.phone_number" + ], + [ + "phone numbers", + "balloths.phone_number" + ], + [ + "phone numbers", + "polls.phone_number" + ] + ], + "linking_list_idx": [ + [ + 0, + "votes.created" + ], + [ + 0, + "balloths.created" + ], + [ + 0, + "polls.created" + ], + [ + 1, + "votes.state" + ], + [ + 1, + "balloths.state" + ], + [ + 1, + "polls.state" + ], + [ + 2, + "votes.phone_number" + ], + [ + 2, + "balloths.phone_number" + ], + [ + 2, + "polls.phone_number" + ] + ], + "linking_list_col": [ + [ + "votes.vote_id", + "balloths.vote_id" + ], + [ + "votes.vote_id", + "polls.vote_id" + ], + [ + "balloths.vote_id", + "polls.vote_id" + ], + [ + "votes.phone_number", + "balloths.phone_number" + ], + [ + "votes.phone_number", + "polls.phone_number" + ], + [ + "balloths.phone_number", + "polls.phone_number" + ], + [ + "votes.state", + "balloths.state" + ], + [ + "votes.state", + "polls.state" + ], + [ + "balloths.state", + "polls.state" + ], + [ + "votes.contestant_number", + "balloths.contestant_number" + ], + [ + "votes.contestant_number", + "polls.contestant_number" + ], + [ + "balloths.contestant_number", + "polls.contestant_number" + ], + [ + "votes.created", + "balloths.created" + ], + [ + "votes.created", + "polls.created" + ], + [ + "balloths.created", + "polls.created" + ] + ] + }, + { + "question": "what are the #names of all the countries# that became #independent# after 1950?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "names of all the countries", + "country.name" + ], + [ + "names of all the countries", + "nation.name" + ], + [ + "names of all the countries", + "state.name" + ], + [ + "independent", + "country.indepyear" + ], + [ + "independent", + "nation.indepyear" + ], + [ + "independent", + "state.indepyear" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "nation.name" + ], + [ + 0, + "state.name" + ], + [ + 1, + "country.indepyear" + ], + [ + 1, + "nation.indepyear" + ], + [ + 1, + "state.indepyear" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "give the #names of the nations# that were #founded after 1950# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "names of the nations", + "country.name" + ], + [ + "names of the nations", + "nation.name" + ], + [ + "names of the nations", + "state.name" + ], + [ + "founded after 1950", + "country.indepyear" + ], + [ + "founded after 1950", + "nation.indepyear" + ], + [ + "founded after 1950", + "state.indepyear" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "nation.name" + ], + [ + 0, + "state.name" + ], + [ + 1, + "country.indepyear" + ], + [ + 1, + "nation.indepyear" + ], + [ + 1, + "state.indepyear" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "how many countries have a #republic# as their form of government?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "republic", + "country.governmentform" + ], + [ + "republic", + "nation.governmentform" + ], + [ + "republic", + "state.governmentform" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.governmentform" + ], + [ + 0, + "nation.governmentform" + ], + [ + 0, + "state.governmentform" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "how many countries have #governments# that are republics?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "governments", + "country.governmentform" + ], + [ + "governments", + "nation.governmentform" + ], + [ + "governments", + "state.governmentform" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.governmentform" + ], + [ + 0, + "nation.governmentform" + ], + [ + 0, + "state.governmentform" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "how much #surface area# do the countires in the carribean cover together?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "surface area", + "country.surfacearea" + ], + [ + "surface area", + "nation.surfacearea" + ], + [ + "surface area", + "state.surfacearea" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.surfacearea" + ], + [ + 0, + "nation.surfacearea" + ], + [ + 0, + "state.surfacearea" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "which #continent is anguilla# in?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "continent is Anguilla", + "country.continent" + ], + [ + "continent is Anguilla", + "nation.continent" + ], + [ + "continent is Anguilla", + "state.continent" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.continent" + ], + [ + 0, + "nation.continent" + ], + [ + 0, + "state.continent" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "what is the #continent name# which #anguilla# belongs to?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "continent name", + "country.continent" + ], + [ + "continent name", + "nation.continent" + ], + [ + "continent name", + "state.continent" + ], + [ + "Anguilla", + "country.name" + ], + [ + "Anguilla", + "nation.name" + ], + [ + "Anguilla", + "state.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.continent" + ], + [ + 0, + "nation.continent" + ], + [ + 0, + "state.continent" + ], + [ + 1, + "country.name" + ], + [ + 1, + "nation.name" + ], + [ + 1, + "state.name" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "what #region is kabul# in?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "region is Kabul", + "country.region" + ], + [ + "region is Kabul", + "nation.region" + ], + [ + "region is Kabul", + "state.region" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.region" + ], + [ + 0, + "nation.region" + ], + [ + 0, + "state.region" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "which #language# is the most popular in aruba?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "language", + "countrylanguage.language" + ], + [ + "language", + "official_language.language" + ], + [ + "language", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "official_language.language" + ], + [ + 0, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "what #language# is predominantly spoken in aruba?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "language", + "countrylanguage.language" + ], + [ + "language", + "official_language.language" + ], + [ + "language", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "official_language.language" + ], + [ + 0, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "what are the #population# and life expectancies in brazil?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "population", + "country.population" + ], + [ + "population", + "nation.population" + ], + [ + "population", + "state.population" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.population" + ], + [ + 0, + "nation.population" + ], + [ + 0, + "state.population" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "give me brazil\u2019s #population# and #life expectancies# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "population", + "country.population" + ], + [ + "population", + "nation.population" + ], + [ + "population", + "state.population" + ], + [ + "life expectancies", + "country.lifeexpectancy" + ], + [ + "life expectancies", + "nation.lifeexpectancy" + ], + [ + "life expectancies", + "state.lifeexpectancy" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.population" + ], + [ + 0, + "nation.population" + ], + [ + 0, + "state.population" + ], + [ + 1, + "country.lifeexpectancy" + ], + [ + 1, + "nation.lifeexpectancy" + ], + [ + 1, + "state.lifeexpectancy" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "what are the #region# and population of angola?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "region", + "country.region" + ], + [ + "region", + "nation.region" + ], + [ + "region", + "state.region" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.region" + ], + [ + 0, + "nation.region" + ], + [ + 0, + "state.region" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "what #region# does #angola# belong to and what is its population?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "region", + "country.region" + ], + [ + "region", + "nation.region" + ], + [ + "region", + "state.region" + ], + [ + "Angola", + "country.name" + ], + [ + "Angola", + "nation.name" + ], + [ + "Angola", + "state.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.region" + ], + [ + 0, + "nation.region" + ], + [ + 0, + "state.region" + ], + [ + 1, + "country.name" + ], + [ + 1, + "nation.name" + ], + [ + 1, + "state.name" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "what is the #name of country# that has the shortest life expectancy in asia?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "name of country", + "country.name" + ], + [ + "name of country", + "nation.name" + ], + [ + "name of country", + "state.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "nation.name" + ], + [ + 0, + "state.name" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "give the #name of the country in asia# with the lowest #life expectancy# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "name of the country in Asia", + "country.name" + ], + [ + "name of the country in Asia", + "nation.name" + ], + [ + "name of the country in Asia", + "state.name" + ], + [ + "life expectancy", + "country.lifeexpectancy" + ], + [ + "life expectancy", + "nation.lifeexpectancy" + ], + [ + "life expectancy", + "state.lifeexpectancy" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "nation.name" + ], + [ + 0, + "state.name" + ], + [ + 1, + "country.lifeexpectancy" + ], + [ + 1, + "nation.lifeexpectancy" + ], + [ + 1, + "state.lifeexpectancy" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "what is the #total population# and maximum gnp in asia?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "total population", + "country.population" + ], + [ + "total population", + "nation.population" + ], + [ + "total population", + "state.population" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.population" + ], + [ + 0, + "nation.population" + ], + [ + 0, + "state.population" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "how many #people# live in #asia# , and what is the #largest gnp# among them?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "people", + "country.population" + ], + [ + "people", + "nation.population" + ], + [ + "people", + "state.population" + ], + [ + "Asia", + "country.continent" + ], + [ + "Asia", + "nation.continent" + ], + [ + "Asia", + "state.continent" + ], + [ + "largest GNP", + "country.gnp" + ], + [ + "largest GNP", + "nation.gnp" + ], + [ + "largest GNP", + "state.gnp" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.population" + ], + [ + 0, + "nation.population" + ], + [ + 0, + "state.population" + ], + [ + 1, + "country.continent" + ], + [ + 1, + "nation.continent" + ], + [ + 1, + "state.continent" + ], + [ + 2, + "country.gnp" + ], + [ + 2, + "nation.gnp" + ], + [ + 2, + "state.gnp" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "what is the #average life expectancy in african countries# that are republics?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "average life expectancy in African countries", + "country.lifeexpectancy" + ], + [ + "average life expectancy in African countries", + "nation.lifeexpectancy" + ], + [ + "average life expectancy in African countries", + "state.lifeexpectancy" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.lifeexpectancy" + ], + [ + 0, + "nation.lifeexpectancy" + ], + [ + 0, + "state.lifeexpectancy" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "give the #average life expectancy for countries in africa# which are republics?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "average life expectancy for countries in Africa", + "country.lifeexpectancy" + ], + [ + "average life expectancy for countries in Africa", + "nation.lifeexpectancy" + ], + [ + "average life expectancy for countries in Africa", + "state.lifeexpectancy" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.lifeexpectancy" + ], + [ + 0, + "nation.lifeexpectancy" + ], + [ + 0, + "state.lifeexpectancy" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "give the #total surface area# covered by #countries in asia# or #europe# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "total surface area", + "country.surfacearea" + ], + [ + "total surface area", + "nation.surfacearea" + ], + [ + "total surface area", + "state.surfacearea" + ], + [ + "countries in Asia", + "country.continent" + ], + [ + "countries in Asia", + "nation.continent" + ], + [ + "countries in Asia", + "state.continent" + ], + [ + "Europe", + "country.continent" + ], + [ + "Europe", + "nation.continent" + ], + [ + "Europe", + "state.continent" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.surfacearea" + ], + [ + 0, + "nation.surfacearea" + ], + [ + 0, + "state.surfacearea" + ], + [ + 1, + "country.continent" + ], + [ + 1, + "nation.continent" + ], + [ + 1, + "state.continent" + ], + [ + 2, + "country.continent" + ], + [ + 2, + "nation.continent" + ], + [ + 2, + "state.continent" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "how many #people# live in gelderland district?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "town": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "metropolis": [ + "id", + "name", + "countrycode", + "district", + "population" + ] + }, + "linking_list": [ + [ + "people", + "city.population" + ], + [ + "people", + "town.population" + ], + [ + "people", + "metropolis.population" + ] + ], + "linking_list_idx": [ + [ + 0, + "city.population" + ], + [ + 0, + "town.population" + ], + [ + 0, + "metropolis.population" + ] + ], + "linking_list_col": [ + [ + "city.id", + "town.id" + ], + [ + "city.id", + "metropolis.id" + ], + [ + "town.id", + "metropolis.id" + ], + [ + "city.name", + "town.name" + ], + [ + "city.name", + "metropolis.name" + ], + [ + "town.name", + "metropolis.name" + ], + [ + "city.countrycode", + "town.countrycode" + ], + [ + "city.countrycode", + "metropolis.countrycode" + ], + [ + "town.countrycode", + "metropolis.countrycode" + ], + [ + "city.district", + "town.district" + ], + [ + "city.district", + "metropolis.district" + ], + [ + "town.district", + "metropolis.district" + ], + [ + "city.population", + "town.population" + ], + [ + "city.population", + "metropolis.population" + ], + [ + "town.population", + "metropolis.population" + ] + ] + }, + { + "question": "what is the #average gnp# and #total population# in all nations whose #government# is us territory?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "average GNP", + "country.gnp" + ], + [ + "average GNP", + "nation.gnp" + ], + [ + "average GNP", + "state.gnp" + ], + [ + "total population", + "country.population" + ], + [ + "total population", + "nation.population" + ], + [ + "total population", + "state.population" + ], + [ + "government", + "country.governmentform" + ], + [ + "government", + "nation.governmentform" + ], + [ + "government", + "state.governmentform" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.gnp" + ], + [ + 0, + "nation.gnp" + ], + [ + 0, + "state.gnp" + ], + [ + 1, + "country.population" + ], + [ + 1, + "nation.population" + ], + [ + 1, + "state.population" + ], + [ + 2, + "country.governmentform" + ], + [ + 2, + "nation.governmentform" + ], + [ + 2, + "state.governmentform" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "give the #mean gnp# and #total population of nations# which are considered #us territory# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "mean GNP", + "country.gnp" + ], + [ + "mean GNP", + "nation.gnp" + ], + [ + "mean GNP", + "state.gnp" + ], + [ + "total population of nations", + "country.population" + ], + [ + "total population of nations", + "nation.population" + ], + [ + "total population of nations", + "state.population" + ], + [ + "US territory", + "country.governmentform" + ], + [ + "US territory", + "nation.governmentform" + ], + [ + "US territory", + "state.governmentform" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.gnp" + ], + [ + 0, + "nation.gnp" + ], + [ + 0, + "state.gnp" + ], + [ + 1, + "country.population" + ], + [ + 1, + "nation.population" + ], + [ + 1, + "state.population" + ], + [ + 2, + "country.governmentform" + ], + [ + 2, + "nation.governmentform" + ], + [ + 2, + "state.governmentform" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "how many #type of governments# are in africa?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "type of governments", + "country.governmentform" + ], + [ + "type of governments", + "nation.governmentform" + ], + [ + "type of governments", + "state.governmentform" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.governmentform" + ], + [ + 0, + "nation.governmentform" + ], + [ + 0, + "state.governmentform" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "how many different #forms of governments# are there in africa?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "forms of governments", + "country.governmentform" + ], + [ + "forms of governments", + "nation.governmentform" + ], + [ + "forms of governments", + "state.governmentform" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.governmentform" + ], + [ + 0, + "nation.governmentform" + ], + [ + 0, + "state.governmentform" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "what is the total number of #languages# used in aruba?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "languages", + "countrylanguage.language" + ], + [ + "languages", + "official_language.language" + ], + [ + "languages", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "official_language.language" + ], + [ + 0, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "how many #languages# are spoken in aruba?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "languages", + "countrylanguage.language" + ], + [ + "languages", + "official_language.language" + ], + [ + "languages", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "official_language.language" + ], + [ + 0, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "how many #official languages# does #afghanistan# have?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "official languages", + "countrylanguage.isofficial" + ], + [ + "official languages", + "official_language.isofficial" + ], + [ + "official languages", + "spoken_language.isofficial" + ], + [ + "Afghanistan", + "country.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.isofficial" + ], + [ + 0, + "official_language.isofficial" + ], + [ + 0, + "spoken_language.isofficial" + ], + [ + 1, + "country.name" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "how many #official languages# are spoken in afghanistan?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "official languages", + "countrylanguage.isofficial" + ], + [ + "official languages", + "official_language.isofficial" + ], + [ + "official languages", + "spoken_language.isofficial" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.isofficial" + ], + [ + 0, + "official_language.isofficial" + ], + [ + 0, + "spoken_language.isofficial" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "how many #countries# speak both #english# and dutch?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "countries", + "country.name" + ], + [ + "English", + "countrylanguage.language" + ], + [ + "English", + "official_language.language" + ], + [ + "English", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 1, + "countrylanguage.language" + ], + [ + 1, + "official_language.language" + ], + [ + 1, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "what is the number of #nations# that use #english# and dutch?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "nations", + "country.name" + ], + [ + "English", + "countrylanguage.language" + ], + [ + "English", + "official_language.language" + ], + [ + "English", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 1, + "countrylanguage.language" + ], + [ + 1, + "official_language.language" + ], + [ + 1, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "what are the #names of nations# speak both #english# and french?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "names of nations", + "country.name" + ], + [ + "English", + "countrylanguage.language" + ], + [ + "English", + "official_language.language" + ], + [ + "English", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 1, + "countrylanguage.language" + ], + [ + 1, + "official_language.language" + ], + [ + 1, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "give the #names of nations# that speak both #english# and #french# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "names of nations", + "country.name" + ], + [ + "English", + "countrylanguage.language" + ], + [ + "English", + "official_language.language" + ], + [ + "English", + "spoken_language.language" + ], + [ + "French", + "countrylanguage.language" + ], + [ + "French", + "official_language.language" + ], + [ + "French", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 1, + "countrylanguage.language" + ], + [ + 1, + "official_language.language" + ], + [ + 1, + "spoken_language.language" + ], + [ + 2, + "countrylanguage.language" + ], + [ + 2, + "official_language.language" + ], + [ + 2, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "what are the #names of nations# where both #english# and #french# are official languages?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "names of nations", + "country.name" + ], + [ + "English", + "countrylanguage.language" + ], + [ + "English", + "official_language.language" + ], + [ + "English", + "spoken_language.language" + ], + [ + "French", + "countrylanguage.language" + ], + [ + "French", + "official_language.language" + ], + [ + "French", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 1, + "countrylanguage.language" + ], + [ + 1, + "official_language.language" + ], + [ + 1, + "spoken_language.language" + ], + [ + 2, + "countrylanguage.language" + ], + [ + 2, + "official_language.language" + ], + [ + 2, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "give the #names of countries with english# and #french as official languages# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "names of countries with English", + "country.name" + ], + [ + "French as official languages", + "countrylanguage.language" + ], + [ + "French as official languages", + "official_language.language" + ], + [ + "French as official languages", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 1, + "countrylanguage.language" + ], + [ + 1, + "official_language.language" + ], + [ + 1, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "what is the number of distinct #continents# where #chinese# is spoken?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "continents", + "country.continent" + ], + [ + "Chinese", + "countrylanguage.language" + ], + [ + "Chinese", + "official_language.language" + ], + [ + "Chinese", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.continent" + ], + [ + 1, + "countrylanguage.language" + ], + [ + 1, + "official_language.language" + ], + [ + 1, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "what are the #regions# that use #english# or dutch?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "regions", + "country.region" + ], + [ + "English", + "countrylanguage.language" + ], + [ + "English", + "official_language.language" + ], + [ + "English", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.region" + ], + [ + 1, + "countrylanguage.language" + ], + [ + 1, + "official_language.language" + ], + [ + 1, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "which #regions# speak #dutch# or english?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "regions", + "country.region" + ], + [ + "Dutch", + "countrylanguage.language" + ], + [ + "Dutch", + "official_language.language" + ], + [ + "Dutch", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.region" + ], + [ + 1, + "countrylanguage.language" + ], + [ + 1, + "official_language.language" + ], + [ + 1, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "which countries have either #english# or #dutch# as an official language?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "English", + "countrylanguage.language" + ], + [ + "English", + "official_language.language" + ], + [ + "English", + "spoken_language.language" + ], + [ + "Dutch", + "countrylanguage.language" + ], + [ + "Dutch", + "official_language.language" + ], + [ + "Dutch", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "official_language.language" + ], + [ + 0, + "spoken_language.language" + ], + [ + 1, + "countrylanguage.language" + ], + [ + 1, + "official_language.language" + ], + [ + 1, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "which #language# is the most popular on the asian continent?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "language", + "countrylanguage.language" + ], + [ + "language", + "official_language.language" + ], + [ + "language", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "official_language.language" + ], + [ + 0, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "what is the #language# that is used by the largest number of asian nations?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "language", + "countrylanguage.language" + ], + [ + "language", + "official_language.language" + ], + [ + "language", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "official_language.language" + ], + [ + 0, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "which #languages# are spoken by only one country in republic governments?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "languages", + "countrylanguage.language" + ], + [ + "languages", + "official_language.language" + ], + [ + "languages", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "official_language.language" + ], + [ + 0, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "what #languages# are only used by a single country with a republic government?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "languages", + "countrylanguage.language" + ], + [ + "languages", + "official_language.language" + ], + [ + "languages", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "official_language.language" + ], + [ + 0, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "find the #city with the largest population# that uses #english# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "city with the largest population", + "city.population" + ], + [ + "English", + "countrylanguage.language" + ], + [ + "English", + "official_language.language" + ], + [ + "English", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "city.population" + ], + [ + 1, + "countrylanguage.language" + ], + [ + 1, + "official_language.language" + ], + [ + 1, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "find the #name# , #population# and expected life length of asian country with the largest area?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "name", + "country.name" + ], + [ + "name", + "nation.name" + ], + [ + "name", + "state.name" + ], + [ + "population", + "country.population" + ], + [ + "population", + "nation.population" + ], + [ + "population", + "state.population" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "nation.name" + ], + [ + 0, + "state.name" + ], + [ + 1, + "country.population" + ], + [ + 1, + "nation.population" + ], + [ + 1, + "state.population" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "what are the #name# , #population# , and #life expectancy# of the largest asian country by land?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "name", + "country.name" + ], + [ + "name", + "nation.name" + ], + [ + "name", + "state.name" + ], + [ + "population", + "country.population" + ], + [ + "population", + "nation.population" + ], + [ + "population", + "state.population" + ], + [ + "life expectancy", + "country.lifeexpectancy" + ], + [ + "life expectancy", + "nation.lifeexpectancy" + ], + [ + "life expectancy", + "state.lifeexpectancy" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "nation.name" + ], + [ + 0, + "state.name" + ], + [ + 1, + "country.population" + ], + [ + 1, + "nation.population" + ], + [ + 1, + "state.population" + ], + [ + 2, + "country.lifeexpectancy" + ], + [ + 2, + "nation.lifeexpectancy" + ], + [ + 2, + "state.lifeexpectancy" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "what is #average life expectancy in the countries# where #english# is not the official language?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "average life expectancy in the countries", + "country.lifeexpectancy" + ], + [ + "English", + "countrylanguage.language" + ], + [ + "English", + "official_language.language" + ], + [ + "English", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.lifeexpectancy" + ], + [ + 1, + "countrylanguage.language" + ], + [ + 1, + "official_language.language" + ], + [ + 1, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "give the #mean life expectancy of countries# in which #english# is not the #official language# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "mean life expectancy of countries", + "country.lifeexpectancy" + ], + [ + "English", + "countrylanguage.language" + ], + [ + "English", + "official_language.language" + ], + [ + "English", + "spoken_language.language" + ], + [ + "official language", + "countrylanguage.isofficial" + ], + [ + "official language", + "official_language.isofficial" + ], + [ + "official language", + "spoken_language.isofficial" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.lifeexpectancy" + ], + [ + 1, + "countrylanguage.language" + ], + [ + 1, + "official_language.language" + ], + [ + 1, + "spoken_language.language" + ], + [ + 2, + "countrylanguage.isofficial" + ], + [ + 2, + "official_language.isofficial" + ], + [ + 2, + "spoken_language.isofficial" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "what is the #official language# spoken in the country whose #head of state# is beatrix?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "official language", + "countrylanguage.language" + ], + [ + "official language", + "official_language.language" + ], + [ + "official language", + "spoken_language.language" + ], + [ + "head of state", + "country.headofstate" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "official_language.language" + ], + [ + 0, + "spoken_language.language" + ], + [ + 1, + "country.headofstate" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "what is the #official language# used in the #country the name of whose head of state# is beatrix.", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "official language", + "countrylanguage.language" + ], + [ + "official language", + "official_language.language" + ], + [ + "official language", + "spoken_language.language" + ], + [ + "country the name of whose head of state", + "country.headofstate" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "official_language.language" + ], + [ + 0, + "spoken_language.language" + ], + [ + 1, + "country.headofstate" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "what are the #countries# that have greater #surface area# than any country in europe?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "countries", + "country.name" + ], + [ + "countries", + "nation.name" + ], + [ + "countries", + "state.name" + ], + [ + "surface area", + "country.surfacearea" + ], + [ + "surface area", + "nation.surfacearea" + ], + [ + "surface area", + "state.surfacearea" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "nation.name" + ], + [ + 0, + "state.name" + ], + [ + 1, + "country.surfacearea" + ], + [ + 1, + "nation.surfacearea" + ], + [ + 1, + "state.surfacearea" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "which countries have greater #area# than that of any country in europe?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "area", + "country.surfacearea" + ], + [ + "area", + "nation.surfacearea" + ], + [ + "area", + "state.surfacearea" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.surfacearea" + ], + [ + 0, + "nation.surfacearea" + ], + [ + 0, + "state.surfacearea" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "what are the #african countries# that have a #population# less than any country in asia?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "African countries", + "country.name" + ], + [ + "African countries", + "nation.name" + ], + [ + "African countries", + "state.name" + ], + [ + "population", + "country.population" + ], + [ + "population", + "nation.population" + ], + [ + "population", + "state.population" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "nation.name" + ], + [ + 0, + "state.name" + ], + [ + 1, + "country.population" + ], + [ + 1, + "nation.population" + ], + [ + 1, + "state.population" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "which #african countries# have a smaller #population# than that of any country in asia?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "African countries", + "country.name" + ], + [ + "African countries", + "nation.name" + ], + [ + "African countries", + "state.name" + ], + [ + "population", + "country.population" + ], + [ + "population", + "nation.population" + ], + [ + "population", + "state.population" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "nation.name" + ], + [ + 0, + "state.name" + ], + [ + 1, + "country.population" + ], + [ + 1, + "nation.population" + ], + [ + 1, + "state.population" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "which #asian countries# have a #population# that is larger than any country in africa?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "Asian countries", + "country.name" + ], + [ + "Asian countries", + "nation.name" + ], + [ + "Asian countries", + "state.name" + ], + [ + "population", + "country.population" + ], + [ + "population", + "nation.population" + ], + [ + "population", + "state.population" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "nation.name" + ], + [ + 0, + "state.name" + ], + [ + 1, + "country.population" + ], + [ + 1, + "nation.population" + ], + [ + 1, + "state.population" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "what are the #asian countries# which have a #population# larger than that of any country in africa?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "Asian countries", + "country.continent" + ], + [ + "Asian countries", + "nation.continent" + ], + [ + "Asian countries", + "state.continent" + ], + [ + "population", + "country.population" + ], + [ + "population", + "nation.population" + ], + [ + "population", + "state.population" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.continent" + ], + [ + 0, + "nation.continent" + ], + [ + 0, + "state.continent" + ], + [ + 1, + "country.population" + ], + [ + 1, + "nation.population" + ], + [ + 1, + "state.population" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "what are the #country codes for countries# that do not speak english?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "country codes for countries", + "countrylanguage.countrycode" + ], + [ + "country codes for countries", + "official_language.countrycode" + ], + [ + "country codes for countries", + "spoken_language.countrycode" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.countrycode" + ], + [ + 0, + "official_language.countrycode" + ], + [ + 0, + "spoken_language.countrycode" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "return the #country codes for countries# that do not speak #english# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "country codes for countries", + "countrylanguage.countrycode" + ], + [ + "country codes for countries", + "official_language.countrycode" + ], + [ + "country codes for countries", + "spoken_language.countrycode" + ], + [ + "English", + "countrylanguage.language" + ], + [ + "English", + "official_language.language" + ], + [ + "English", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.countrycode" + ], + [ + 0, + "official_language.countrycode" + ], + [ + 0, + "spoken_language.countrycode" + ], + [ + 1, + "countrylanguage.language" + ], + [ + 1, + "official_language.language" + ], + [ + 1, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "what are the #country codes# of countries where people use #languages# other than english?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "country codes", + "countrylanguage.countrycode" + ], + [ + "country codes", + "official_language.countrycode" + ], + [ + "country codes", + "spoken_language.countrycode" + ], + [ + "languages", + "countrylanguage.language" + ], + [ + "languages", + "official_language.language" + ], + [ + "languages", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.countrycode" + ], + [ + 0, + "official_language.countrycode" + ], + [ + 0, + "spoken_language.countrycode" + ], + [ + 1, + "countrylanguage.language" + ], + [ + 1, + "official_language.language" + ], + [ + 1, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "give the #country codes# for countries in which people speak langauges that are not english.", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "country codes", + "countrylanguage.countrycode" + ], + [ + "country codes", + "official_language.countrycode" + ], + [ + "country codes", + "spoken_language.countrycode" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.countrycode" + ], + [ + 0, + "official_language.countrycode" + ], + [ + 0, + "spoken_language.countrycode" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "what are the #codes of the countries# that do not speak #english# and whose #government forms# are not republic?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "codes of the countries", + "country.code" + ], + [ + "English", + "countrylanguage.language" + ], + [ + "English", + "official_language.language" + ], + [ + "English", + "spoken_language.language" + ], + [ + "government forms", + "country.governmentform" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.code" + ], + [ + 1, + "countrylanguage.language" + ], + [ + 1, + "official_language.language" + ], + [ + 1, + "spoken_language.language" + ], + [ + 2, + "country.governmentform" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "return the #codes of countries# that do not #speak english# and do not have republics for #governments# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "codes of countries", + "country.code" + ], + [ + "speak English", + "countrylanguage.language" + ], + [ + "speak English", + "official_language.language" + ], + [ + "speak English", + "spoken_language.language" + ], + [ + "governments", + "country.governmentform" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.code" + ], + [ + 1, + "countrylanguage.language" + ], + [ + 1, + "official_language.language" + ], + [ + 1, + "spoken_language.language" + ], + [ + 2, + "country.governmentform" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "which #cities# are in #european countries# where #english# is not the official language?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "cities", + "city.name" + ], + [ + "European countries", + "country.continent" + ], + [ + "English", + "countrylanguage.language" + ], + [ + "English", + "official_language.language" + ], + [ + "English", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "city.name" + ], + [ + 1, + "country.continent" + ], + [ + 2, + "countrylanguage.language" + ], + [ + 2, + "official_language.language" + ], + [ + 2, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "what are the #names of cities in europe# for which #english# is not the official language?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "names of cities in Europe", + "city.name" + ], + [ + "English", + "countrylanguage.language" + ], + [ + "English", + "official_language.language" + ], + [ + "English", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "city.name" + ], + [ + 1, + "countrylanguage.language" + ], + [ + 1, + "official_language.language" + ], + [ + 1, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "return the different #names of cities# that are in #asia# and for which #chinese is the official language# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "names of cities", + "city.name" + ], + [ + "Asia", + "country.continent" + ], + [ + "Chinese is the official language", + "countrylanguage.language" + ], + [ + "Chinese is the official language", + "official_language.language" + ], + [ + "Chinese is the official language", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "city.name" + ], + [ + 1, + "country.continent" + ], + [ + 2, + "countrylanguage.language" + ], + [ + 2, + "official_language.language" + ], + [ + 2, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "what are the #name# , #independence year# , and surface area of the country with the smallest population?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "name", + "country.name" + ], + [ + "name", + "nation.name" + ], + [ + "name", + "state.name" + ], + [ + "independence year", + "country.indepyear" + ], + [ + "independence year", + "nation.indepyear" + ], + [ + "independence year", + "state.indepyear" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "nation.name" + ], + [ + 0, + "state.name" + ], + [ + 1, + "country.indepyear" + ], + [ + 1, + "nation.indepyear" + ], + [ + 1, + "state.indepyear" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "give the #name# , #year of independence# , and #surface area of the country# that has the lowest #population# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "name", + "country.name" + ], + [ + "name", + "nation.name" + ], + [ + "name", + "state.name" + ], + [ + "year of independence", + "country.indepyear" + ], + [ + "year of independence", + "nation.indepyear" + ], + [ + "year of independence", + "state.indepyear" + ], + [ + "surface area of the country", + "country.surfacearea" + ], + [ + "surface area of the country", + "nation.surfacearea" + ], + [ + "surface area of the country", + "state.surfacearea" + ], + [ + "population", + "country.population" + ], + [ + "population", + "nation.population" + ], + [ + "population", + "state.population" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "nation.name" + ], + [ + 0, + "state.name" + ], + [ + 1, + "country.indepyear" + ], + [ + 1, + "nation.indepyear" + ], + [ + 1, + "state.indepyear" + ], + [ + 2, + "country.surfacearea" + ], + [ + 2, + "nation.surfacearea" + ], + [ + 2, + "state.surfacearea" + ], + [ + 3, + "country.population" + ], + [ + 3, + "nation.population" + ], + [ + 3, + "state.population" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "what are the #population# , #name# and #leader of the country# with the largest area?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "population", + "country.population" + ], + [ + "population", + "nation.population" + ], + [ + "population", + "state.population" + ], + [ + "name", + "country.name" + ], + [ + "name", + "nation.name" + ], + [ + "name", + "state.name" + ], + [ + "leader of the country", + "country.headofstate" + ], + [ + "leader of the country", + "nation.headofstate" + ], + [ + "leader of the country", + "state.headofstate" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.population" + ], + [ + 0, + "nation.population" + ], + [ + 0, + "state.population" + ], + [ + 1, + "country.name" + ], + [ + 1, + "nation.name" + ], + [ + 1, + "state.name" + ], + [ + 2, + "country.headofstate" + ], + [ + 2, + "nation.headofstate" + ], + [ + 2, + "state.headofstate" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "give the #name# , #population# , and #head of state for the country# that has the #largest area# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "name", + "country.name" + ], + [ + "name", + "nation.name" + ], + [ + "name", + "state.name" + ], + [ + "population", + "country.population" + ], + [ + "population", + "nation.population" + ], + [ + "population", + "state.population" + ], + [ + "head of state for the country", + "country.headofstate" + ], + [ + "head of state for the country", + "nation.headofstate" + ], + [ + "head of state for the country", + "state.headofstate" + ], + [ + "largest area", + "country.surfacearea" + ], + [ + "largest area", + "nation.surfacearea" + ], + [ + "largest area", + "state.surfacearea" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "nation.name" + ], + [ + 0, + "state.name" + ], + [ + 1, + "country.population" + ], + [ + 1, + "nation.population" + ], + [ + 1, + "state.population" + ], + [ + 2, + "country.headofstate" + ], + [ + 2, + "nation.headofstate" + ], + [ + 2, + "state.headofstate" + ], + [ + 3, + "country.surfacearea" + ], + [ + 3, + "nation.surfacearea" + ], + [ + 3, + "state.surfacearea" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "what are the #names of countries# that speak more than 2 #languages# , as well as how many languages they speak?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "names of countries", + "country.name" + ], + [ + "languages", + "countrylanguage.language" + ], + [ + "languages", + "official_language.language" + ], + [ + "languages", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 1, + "countrylanguage.language" + ], + [ + 1, + "official_language.language" + ], + [ + 1, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "find the number of cities in each district whose #population# is greater than the average population of cities?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "town": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "metropolis": [ + "id", + "name", + "countrycode", + "district", + "population" + ] + }, + "linking_list": [ + [ + "population", + "city.population" + ], + [ + "population", + "town.population" + ], + [ + "population", + "metropolis.population" + ] + ], + "linking_list_idx": [ + [ + 0, + "city.population" + ], + [ + 0, + "town.population" + ], + [ + 0, + "metropolis.population" + ] + ], + "linking_list_col": [ + [ + "city.id", + "town.id" + ], + [ + "city.id", + "metropolis.id" + ], + [ + "town.id", + "metropolis.id" + ], + [ + "city.name", + "town.name" + ], + [ + "city.name", + "metropolis.name" + ], + [ + "town.name", + "metropolis.name" + ], + [ + "city.countrycode", + "town.countrycode" + ], + [ + "city.countrycode", + "metropolis.countrycode" + ], + [ + "town.countrycode", + "metropolis.countrycode" + ], + [ + "city.district", + "town.district" + ], + [ + "city.district", + "metropolis.district" + ], + [ + "town.district", + "metropolis.district" + ], + [ + "city.population", + "town.population" + ], + [ + "city.population", + "metropolis.population" + ], + [ + "town.population", + "metropolis.population" + ] + ] + }, + { + "question": "how many #cities in each district# have a #population# that is above the average population across all cities?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "town": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "metropolis": [ + "id", + "name", + "countrycode", + "district", + "population" + ] + }, + "linking_list": [ + [ + "cities in each district", + "city.district" + ], + [ + "cities in each district", + "town.district" + ], + [ + "cities in each district", + "metropolis.district" + ], + [ + "population", + "city.population" + ], + [ + "population", + "town.population" + ], + [ + "population", + "metropolis.population" + ] + ], + "linking_list_idx": [ + [ + 0, + "city.district" + ], + [ + 0, + "town.district" + ], + [ + 0, + "metropolis.district" + ], + [ + 1, + "city.population" + ], + [ + 1, + "town.population" + ], + [ + 1, + "metropolis.population" + ] + ], + "linking_list_col": [ + [ + "city.id", + "town.id" + ], + [ + "city.id", + "metropolis.id" + ], + [ + "town.id", + "metropolis.id" + ], + [ + "city.name", + "town.name" + ], + [ + "city.name", + "metropolis.name" + ], + [ + "town.name", + "metropolis.name" + ], + [ + "city.countrycode", + "town.countrycode" + ], + [ + "city.countrycode", + "metropolis.countrycode" + ], + [ + "town.countrycode", + "metropolis.countrycode" + ], + [ + "city.district", + "town.district" + ], + [ + "city.district", + "metropolis.district" + ], + [ + "town.district", + "metropolis.district" + ], + [ + "city.population", + "town.population" + ], + [ + "city.population", + "metropolis.population" + ], + [ + "town.population", + "metropolis.population" + ] + ] + }, + { + "question": "find the #government form# name and #total population for each government form# whose #average life expectancy# is longer than 72.", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "government form", + "country.governmentform" + ], + [ + "government form", + "nation.governmentform" + ], + [ + "government form", + "state.governmentform" + ], + [ + "total population for each government form", + "country.population" + ], + [ + "total population for each government form", + "nation.population" + ], + [ + "total population for each government form", + "state.population" + ], + [ + "average life expectancy", + "country.lifeexpectancy" + ], + [ + "average life expectancy", + "nation.lifeexpectancy" + ], + [ + "average life expectancy", + "state.lifeexpectancy" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.governmentform" + ], + [ + 0, + "nation.governmentform" + ], + [ + 0, + "state.governmentform" + ], + [ + 1, + "country.population" + ], + [ + 1, + "nation.population" + ], + [ + 1, + "state.population" + ], + [ + 2, + "country.lifeexpectancy" + ], + [ + 2, + "nation.lifeexpectancy" + ], + [ + 2, + "state.lifeexpectancy" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "what are the different #government forms# and what is the #total population of each for government forms# that have an #average life expectancy# greater than 72?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "government forms", + "country.governmentform" + ], + [ + "government forms", + "nation.governmentform" + ], + [ + "government forms", + "state.governmentform" + ], + [ + "total population of each for government forms", + "country.population" + ], + [ + "total population of each for government forms", + "nation.population" + ], + [ + "total population of each for government forms", + "state.population" + ], + [ + "average life expectancy", + "country.lifeexpectancy" + ], + [ + "average life expectancy", + "nation.lifeexpectancy" + ], + [ + "average life expectancy", + "state.lifeexpectancy" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.governmentform" + ], + [ + 0, + "nation.governmentform" + ], + [ + 0, + "state.governmentform" + ], + [ + 1, + "country.population" + ], + [ + 1, + "nation.population" + ], + [ + 1, + "state.population" + ], + [ + 2, + "country.lifeexpectancy" + ], + [ + 2, + "nation.lifeexpectancy" + ], + [ + 2, + "state.lifeexpectancy" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "find the #average life expectancy# and #total population for each continent# where the average life expectancy is shorter than 72?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "average life expectancy", + "country.lifeexpectancy" + ], + [ + "average life expectancy", + "nation.lifeexpectancy" + ], + [ + "average life expectancy", + "state.lifeexpectancy" + ], + [ + "total population for each continent", + "country.population" + ], + [ + "total population for each continent", + "nation.population" + ], + [ + "total population for each continent", + "state.population" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.lifeexpectancy" + ], + [ + 0, + "nation.lifeexpectancy" + ], + [ + 0, + "state.lifeexpectancy" + ], + [ + 1, + "country.population" + ], + [ + 1, + "nation.population" + ], + [ + 1, + "state.population" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "what are the different #continents# and the total popuation and #average life expectancy# corresponding to each, for continents that have an average life expectancy less than 72?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "continents", + "country.continent" + ], + [ + "continents", + "nation.continent" + ], + [ + "continents", + "state.continent" + ], + [ + "average life expectancy", + "country.lifeexpectancy" + ], + [ + "average life expectancy", + "nation.lifeexpectancy" + ], + [ + "average life expectancy", + "state.lifeexpectancy" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.continent" + ], + [ + 0, + "nation.continent" + ], + [ + 0, + "state.continent" + ], + [ + 1, + "country.lifeexpectancy" + ], + [ + 1, + "nation.lifeexpectancy" + ], + [ + 1, + "state.lifeexpectancy" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "what are the #names# and #areas of countries# with the top 5 largest area?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "names", + "country.name" + ], + [ + "names", + "nation.name" + ], + [ + "names", + "state.name" + ], + [ + "areas of countries", + "country.surfacearea" + ], + [ + "areas of countries", + "nation.surfacearea" + ], + [ + "areas of countries", + "state.surfacearea" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "nation.name" + ], + [ + 0, + "state.name" + ], + [ + 1, + "country.surfacearea" + ], + [ + 1, + "nation.surfacearea" + ], + [ + 1, + "state.surfacearea" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "return the #names# and #surface areas# of the 5 largest countries.", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "names", + "country.name" + ], + [ + "names", + "nation.name" + ], + [ + "names", + "state.name" + ], + [ + "surface areas", + "country.surfacearea" + ], + [ + "surface areas", + "nation.surfacearea" + ], + [ + "surface areas", + "state.surfacearea" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "nation.name" + ], + [ + 0, + "state.name" + ], + [ + 1, + "country.surfacearea" + ], + [ + 1, + "nation.surfacearea" + ], + [ + 1, + "state.surfacearea" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "what are #names of countries# with the top 3 largest population?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "names of countries", + "country.name" + ], + [ + "names of countries", + "nation.name" + ], + [ + "names of countries", + "state.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "nation.name" + ], + [ + 0, + "state.name" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "return the #names# of the 3 most populated countries.", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "names", + "country.name" + ], + [ + "names", + "nation.name" + ], + [ + "names", + "state.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "nation.name" + ], + [ + 0, + "state.name" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "what are the #names of the nations# with the 3 lowest populations?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "names of the nations", + "country.name" + ], + [ + "names of the nations", + "nation.name" + ], + [ + "names of the nations", + "state.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "nation.name" + ], + [ + 0, + "state.name" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "return the #names# of the 3 countries with the fewest #people# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "names", + "country.name" + ], + [ + "names", + "nation.name" + ], + [ + "names", + "state.name" + ], + [ + "people", + "country.population" + ], + [ + "people", + "nation.population" + ], + [ + "people", + "state.population" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "nation.name" + ], + [ + 0, + "state.name" + ], + [ + 1, + "country.population" + ], + [ + 1, + "nation.population" + ], + [ + 1, + "state.population" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "count the #number of countries in asia# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "number of countries in Asia", + "country.code" + ], + [ + "number of countries in Asia", + "nation.code" + ], + [ + "number of countries in Asia", + "state.code" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.code" + ], + [ + 0, + "nation.code" + ], + [ + 0, + "state.code" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "what are the #names# of the countries that are in the #continent# of europe and have a #population# of 80000?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "names", + "country.name" + ], + [ + "names", + "nation.name" + ], + [ + "names", + "state.name" + ], + [ + "continent", + "country.continent" + ], + [ + "continent", + "nation.continent" + ], + [ + "continent", + "state.continent" + ], + [ + "population", + "country.population" + ], + [ + "population", + "nation.population" + ], + [ + "population", + "state.population" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "nation.name" + ], + [ + 0, + "state.name" + ], + [ + 1, + "country.continent" + ], + [ + 1, + "nation.continent" + ], + [ + 1, + "state.continent" + ], + [ + 2, + "country.population" + ], + [ + 2, + "nation.population" + ], + [ + 2, + "state.population" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "give the #names of countries# that are in #europe# and have a #population# equal to 80000.", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "names of countries", + "country.name" + ], + [ + "names of countries", + "nation.name" + ], + [ + "names of countries", + "state.name" + ], + [ + "Europe", + "country.continent" + ], + [ + "Europe", + "nation.continent" + ], + [ + "Europe", + "state.continent" + ], + [ + "population", + "country.population" + ], + [ + "population", + "nation.population" + ], + [ + "population", + "state.population" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "nation.name" + ], + [ + 0, + "state.name" + ], + [ + 1, + "country.continent" + ], + [ + 1, + "nation.continent" + ], + [ + 1, + "state.continent" + ], + [ + 2, + "country.population" + ], + [ + 2, + "nation.population" + ], + [ + 2, + "state.population" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "what are the cities whose #population# is between 160000 and 900000?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "town": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "metropolis": [ + "id", + "name", + "countrycode", + "district", + "population" + ] + }, + "linking_list": [ + [ + "population", + "city.population" + ], + [ + "population", + "town.population" + ], + [ + "population", + "metropolis.population" + ] + ], + "linking_list_idx": [ + [ + 0, + "city.population" + ], + [ + 0, + "town.population" + ], + [ + 0, + "metropolis.population" + ] + ], + "linking_list_col": [ + [ + "city.id", + "town.id" + ], + [ + "city.id", + "metropolis.id" + ], + [ + "town.id", + "metropolis.id" + ], + [ + "city.name", + "town.name" + ], + [ + "city.name", + "metropolis.name" + ], + [ + "town.name", + "metropolis.name" + ], + [ + "city.countrycode", + "town.countrycode" + ], + [ + "city.countrycode", + "metropolis.countrycode" + ], + [ + "town.countrycode", + "metropolis.countrycode" + ], + [ + "city.district", + "town.district" + ], + [ + "city.district", + "metropolis.district" + ], + [ + "town.district", + "metropolis.district" + ], + [ + "city.population", + "town.population" + ], + [ + "city.population", + "metropolis.population" + ], + [ + "town.population", + "metropolis.population" + ] + ] + }, + { + "question": "which #language# is spoken by the largest number of countries?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "language", + "countrylanguage.language" + ], + [ + "language", + "official_language.language" + ], + [ + "language", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "official_language.language" + ], + [ + 0, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "give the #language# that is spoken in the most countries.", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "language", + "countrylanguage.language" + ], + [ + "language", + "official_language.language" + ], + [ + "language", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "official_language.language" + ], + [ + 0, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "what is the #language# spoken by the largest #percentage# of people in each country?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "language", + "countrylanguage.language" + ], + [ + "language", + "official_language.language" + ], + [ + "language", + "spoken_language.language" + ], + [ + "percentage", + "countrylanguage.percentage" + ], + [ + "percentage", + "official_language.percentage" + ], + [ + "percentage", + "spoken_language.percentage" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "official_language.language" + ], + [ + 0, + "spoken_language.language" + ], + [ + 1, + "countrylanguage.percentage" + ], + [ + 1, + "official_language.percentage" + ], + [ + 1, + "spoken_language.percentage" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "what are the #country codes# of the different countries, and what are the #languages# spoken by the greatest #percentage# of people for each?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "country codes", + "countrylanguage.countrycode" + ], + [ + "country codes", + "official_language.countrycode" + ], + [ + "country codes", + "spoken_language.countrycode" + ], + [ + "languages", + "countrylanguage.language" + ], + [ + "languages", + "official_language.language" + ], + [ + "languages", + "spoken_language.language" + ], + [ + "percentage", + "countrylanguage.percentage" + ], + [ + "percentage", + "official_language.percentage" + ], + [ + "percentage", + "spoken_language.percentage" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.countrycode" + ], + [ + 0, + "official_language.countrycode" + ], + [ + 0, + "spoken_language.countrycode" + ], + [ + 1, + "countrylanguage.language" + ], + [ + 1, + "official_language.language" + ], + [ + 1, + "spoken_language.language" + ], + [ + 2, + "countrylanguage.percentage" + ], + [ + 2, + "official_language.percentage" + ], + [ + 2, + "spoken_language.percentage" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "what is the #total number of countries# where #spanish# is spoken by the largest percentage of people?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "total number of countries", + "countrylanguage.countrycode" + ], + [ + "total number of countries", + "official_language.countrycode" + ], + [ + "total number of countries", + "spoken_language.countrycode" + ], + [ + "Spanish", + "countrylanguage.language" + ], + [ + "Spanish", + "official_language.language" + ], + [ + "Spanish", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.countrycode" + ], + [ + 0, + "official_language.countrycode" + ], + [ + 0, + "spoken_language.countrycode" + ], + [ + 1, + "countrylanguage.language" + ], + [ + 1, + "official_language.language" + ], + [ + 1, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "count the #number of countries# for which #spanish# is the predominantly spoken language.", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "number of countries", + "countrylanguage.countrycode" + ], + [ + "number of countries", + "official_language.countrycode" + ], + [ + "number of countries", + "spoken_language.countrycode" + ], + [ + "Spanish", + "countrylanguage.language" + ], + [ + "Spanish", + "official_language.language" + ], + [ + "Spanish", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.countrycode" + ], + [ + 0, + "official_language.countrycode" + ], + [ + 0, + "spoken_language.countrycode" + ], + [ + 1, + "countrylanguage.language" + ], + [ + 1, + "official_language.language" + ], + [ + 1, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "what are the #codes of countries# where #spanish# is spoken by the largest percentage of people?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "codes of countries", + "countrylanguage.countrycode" + ], + [ + "codes of countries", + "official_language.countrycode" + ], + [ + "codes of countries", + "spoken_language.countrycode" + ], + [ + "Spanish", + "countrylanguage.language" + ], + [ + "Spanish", + "official_language.language" + ], + [ + "Spanish", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.countrycode" + ], + [ + 0, + "official_language.countrycode" + ], + [ + 0, + "spoken_language.countrycode" + ], + [ + 1, + "countrylanguage.language" + ], + [ + 1, + "official_language.language" + ], + [ + 1, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "return the #codes of countries# for which #spanish# is the predominantly spoken language.", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "codes of countries", + "countrylanguage.countrycode" + ], + [ + "codes of countries", + "official_language.countrycode" + ], + [ + "codes of countries", + "spoken_language.countrycode" + ], + [ + "Spanish", + "countrylanguage.language" + ], + [ + "Spanish", + "official_language.language" + ], + [ + "Spanish", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.countrycode" + ], + [ + 0, + "official_language.countrycode" + ], + [ + 0, + "spoken_language.countrycode" + ], + [ + 1, + "countrylanguage.language" + ], + [ + 1, + "official_language.language" + ], + [ + 1, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "list the #names of conductors# in ascending order of #age# .", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ], + "director": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "maestro": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ] + }, + "linking_list": [ + [ + "names of conductors", + "conductor.name" + ], + [ + "names of conductors", + "director.name" + ], + [ + "names of conductors", + "maestro.name" + ], + [ + "age", + "conductor.age" + ], + [ + "age", + "director.age" + ], + [ + "age", + "maestro.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "conductor.name" + ], + [ + 0, + "director.name" + ], + [ + 0, + "maestro.name" + ], + [ + 1, + "conductor.age" + ], + [ + 1, + "director.age" + ], + [ + 1, + "maestro.age" + ] + ], + "linking_list_col": [ + [ + "conductor.conductor_id", + "director.conductor_id" + ], + [ + "conductor.conductor_id", + "maestro.conductor_id" + ], + [ + "director.conductor_id", + "maestro.conductor_id" + ], + [ + "conductor.name", + "director.name" + ], + [ + "conductor.name", + "maestro.name" + ], + [ + "director.name", + "maestro.name" + ], + [ + "conductor.age", + "director.age" + ], + [ + "conductor.age", + "maestro.age" + ], + [ + "director.age", + "maestro.age" + ], + [ + "conductor.nationality", + "director.nationality" + ], + [ + "conductor.nationality", + "maestro.nationality" + ], + [ + "director.nationality", + "maestro.nationality" + ], + [ + "conductor.year_of_work", + "director.year_of_work" + ], + [ + "conductor.year_of_work", + "maestro.year_of_work" + ], + [ + "director.year_of_work", + "maestro.year_of_work" + ] + ] + }, + { + "question": "what are the #names of conductors# , ordered by age?", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ], + "director": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "maestro": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ] + }, + "linking_list": [ + [ + "names of conductors", + "conductor.name" + ], + [ + "names of conductors", + "director.name" + ], + [ + "names of conductors", + "maestro.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "conductor.name" + ], + [ + 0, + "director.name" + ], + [ + 0, + "maestro.name" + ] + ], + "linking_list_col": [ + [ + "conductor.conductor_id", + "director.conductor_id" + ], + [ + "conductor.conductor_id", + "maestro.conductor_id" + ], + [ + "director.conductor_id", + "maestro.conductor_id" + ], + [ + "conductor.name", + "director.name" + ], + [ + "conductor.name", + "maestro.name" + ], + [ + "director.name", + "maestro.name" + ], + [ + "conductor.age", + "director.age" + ], + [ + "conductor.age", + "maestro.age" + ], + [ + "director.age", + "maestro.age" + ], + [ + "conductor.nationality", + "director.nationality" + ], + [ + "conductor.nationality", + "maestro.nationality" + ], + [ + "director.nationality", + "maestro.nationality" + ], + [ + "conductor.year_of_work", + "director.year_of_work" + ], + [ + "conductor.year_of_work", + "maestro.year_of_work" + ], + [ + "director.year_of_work", + "maestro.year_of_work" + ] + ] + }, + { + "question": "what are the #names of conductors# whose #nationalities# are not \"usa\"?", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ], + "director": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "maestro": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ] + }, + "linking_list": [ + [ + "names of conductors", + "conductor.name" + ], + [ + "names of conductors", + "director.name" + ], + [ + "names of conductors", + "maestro.name" + ], + [ + "nationalities", + "conductor.nationality" + ], + [ + "nationalities", + "director.nationality" + ], + [ + "nationalities", + "maestro.nationality" + ] + ], + "linking_list_idx": [ + [ + 0, + "conductor.name" + ], + [ + 0, + "director.name" + ], + [ + 0, + "maestro.name" + ], + [ + 1, + "conductor.nationality" + ], + [ + 1, + "director.nationality" + ], + [ + 1, + "maestro.nationality" + ] + ], + "linking_list_col": [ + [ + "conductor.conductor_id", + "director.conductor_id" + ], + [ + "conductor.conductor_id", + "maestro.conductor_id" + ], + [ + "director.conductor_id", + "maestro.conductor_id" + ], + [ + "conductor.name", + "director.name" + ], + [ + "conductor.name", + "maestro.name" + ], + [ + "director.name", + "maestro.name" + ], + [ + "conductor.age", + "director.age" + ], + [ + "conductor.age", + "maestro.age" + ], + [ + "director.age", + "maestro.age" + ], + [ + "conductor.nationality", + "director.nationality" + ], + [ + "conductor.nationality", + "maestro.nationality" + ], + [ + "director.nationality", + "maestro.nationality" + ], + [ + "conductor.year_of_work", + "director.year_of_work" + ], + [ + "conductor.year_of_work", + "maestro.year_of_work" + ], + [ + "director.year_of_work", + "maestro.year_of_work" + ] + ] + }, + { + "question": "return the #names of conductors# that do not have the #nationality# \"usa\".", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ], + "director": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "maestro": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ] + }, + "linking_list": [ + [ + "names of conductors", + "conductor.name" + ], + [ + "names of conductors", + "director.name" + ], + [ + "names of conductors", + "maestro.name" + ], + [ + "nationality", + "conductor.nationality" + ], + [ + "nationality", + "director.nationality" + ], + [ + "nationality", + "maestro.nationality" + ] + ], + "linking_list_idx": [ + [ + 0, + "conductor.name" + ], + [ + 0, + "director.name" + ], + [ + 0, + "maestro.name" + ], + [ + 1, + "conductor.nationality" + ], + [ + 1, + "director.nationality" + ], + [ + 1, + "maestro.nationality" + ] + ], + "linking_list_col": [ + [ + "conductor.conductor_id", + "director.conductor_id" + ], + [ + "conductor.conductor_id", + "maestro.conductor_id" + ], + [ + "director.conductor_id", + "maestro.conductor_id" + ], + [ + "conductor.name", + "director.name" + ], + [ + "conductor.name", + "maestro.name" + ], + [ + "director.name", + "maestro.name" + ], + [ + "conductor.age", + "director.age" + ], + [ + "conductor.age", + "maestro.age" + ], + [ + "director.age", + "maestro.age" + ], + [ + "conductor.nationality", + "director.nationality" + ], + [ + "conductor.nationality", + "maestro.nationality" + ], + [ + "director.nationality", + "maestro.nationality" + ], + [ + "conductor.year_of_work", + "director.year_of_work" + ], + [ + "conductor.year_of_work", + "maestro.year_of_work" + ], + [ + "director.year_of_work", + "maestro.year_of_work" + ] + ] + }, + { + "question": "what are the #record companies of orchestras# in descending order of years in which they were founded?", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ], + "ensemble": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "symphony": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ] + }, + "linking_list": [ + [ + "record companies of orchestras", + "orchestra.record_company" + ], + [ + "record companies of orchestras", + "ensemble.record_company" + ], + [ + "record companies of orchestras", + "symphony.record_company" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.record_company" + ], + [ + 0, + "ensemble.record_company" + ], + [ + 0, + "symphony.record_company" + ] + ], + "linking_list_col": [ + [ + "orchestra.orchestra_id", + "ensemble.orchestra_id" + ], + [ + "orchestra.orchestra_id", + "symphony.orchestra_id" + ], + [ + "ensemble.orchestra_id", + "symphony.orchestra_id" + ], + [ + "orchestra.orchestra", + "ensemble.orchestra" + ], + [ + "orchestra.orchestra", + "symphony.orchestra" + ], + [ + "ensemble.orchestra", + "symphony.orchestra" + ], + [ + "orchestra.conductor_id", + "ensemble.conductor_id" + ], + [ + "orchestra.conductor_id", + "symphony.conductor_id" + ], + [ + "ensemble.conductor_id", + "symphony.conductor_id" + ], + [ + "orchestra.record_company", + "ensemble.record_company" + ], + [ + "orchestra.record_company", + "symphony.record_company" + ], + [ + "ensemble.record_company", + "symphony.record_company" + ], + [ + "orchestra.year_of_founded", + "ensemble.year_of_founded" + ], + [ + "orchestra.year_of_founded", + "symphony.year_of_founded" + ], + [ + "ensemble.year_of_founded", + "symphony.year_of_founded" + ], + [ + "orchestra.major_record_format", + "ensemble.major_record_format" + ], + [ + "orchestra.major_record_format", + "symphony.major_record_format" + ], + [ + "ensemble.major_record_format", + "symphony.major_record_format" + ] + ] + }, + { + "question": "return the #record companies of orchestras# , sorted descending by the #years in which they were founded# .", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ], + "ensemble": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "symphony": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ] + }, + "linking_list": [ + [ + "record companies of orchestras", + "orchestra.record_company" + ], + [ + "record companies of orchestras", + "ensemble.record_company" + ], + [ + "record companies of orchestras", + "symphony.record_company" + ], + [ + "years in which they were founded", + "orchestra.year_of_founded" + ], + [ + "years in which they were founded", + "ensemble.year_of_founded" + ], + [ + "years in which they were founded", + "symphony.year_of_founded" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.record_company" + ], + [ + 0, + "ensemble.record_company" + ], + [ + 0, + "symphony.record_company" + ], + [ + 1, + "orchestra.year_of_founded" + ], + [ + 1, + "ensemble.year_of_founded" + ], + [ + 1, + "symphony.year_of_founded" + ] + ], + "linking_list_col": [ + [ + "orchestra.orchestra_id", + "ensemble.orchestra_id" + ], + [ + "orchestra.orchestra_id", + "symphony.orchestra_id" + ], + [ + "ensemble.orchestra_id", + "symphony.orchestra_id" + ], + [ + "orchestra.orchestra", + "ensemble.orchestra" + ], + [ + "orchestra.orchestra", + "symphony.orchestra" + ], + [ + "ensemble.orchestra", + "symphony.orchestra" + ], + [ + "orchestra.conductor_id", + "ensemble.conductor_id" + ], + [ + "orchestra.conductor_id", + "symphony.conductor_id" + ], + [ + "ensemble.conductor_id", + "symphony.conductor_id" + ], + [ + "orchestra.record_company", + "ensemble.record_company" + ], + [ + "orchestra.record_company", + "symphony.record_company" + ], + [ + "ensemble.record_company", + "symphony.record_company" + ], + [ + "orchestra.year_of_founded", + "ensemble.year_of_founded" + ], + [ + "orchestra.year_of_founded", + "symphony.year_of_founded" + ], + [ + "ensemble.year_of_founded", + "symphony.year_of_founded" + ], + [ + "orchestra.major_record_format", + "ensemble.major_record_format" + ], + [ + "orchestra.major_record_format", + "symphony.major_record_format" + ], + [ + "ensemble.major_record_format", + "symphony.major_record_format" + ] + ] + }, + { + "question": "what are the #maximum and minimum share of performances# whose #type# is not \"live final\".", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ], + "recital": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "concert": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ] + }, + "linking_list": [ + [ + "maximum and minimum share of performances", + "performance.share" + ], + [ + "maximum and minimum share of performances", + "recital.share" + ], + [ + "maximum and minimum share of performances", + "concert.share" + ], + [ + "type", + "performance.type" + ], + [ + "type", + "recital.type" + ], + [ + "type", + "concert.type" + ] + ], + "linking_list_idx": [ + [ + 0, + "performance.share" + ], + [ + 0, + "recital.share" + ], + [ + 0, + "concert.share" + ], + [ + 1, + "performance.type" + ], + [ + 1, + "recital.type" + ], + [ + 1, + "concert.type" + ] + ], + "linking_list_col": [ + [ + "performance.performance_id", + "recital.performance_id" + ], + [ + "performance.performance_id", + "concert.performance_id" + ], + [ + "recital.performance_id", + "concert.performance_id" + ], + [ + "performance.orchestra_id", + "recital.orchestra_id" + ], + [ + "performance.orchestra_id", + "concert.orchestra_id" + ], + [ + "recital.orchestra_id", + "concert.orchestra_id" + ], + [ + "performance.type", + "recital.type" + ], + [ + "performance.type", + "concert.type" + ], + [ + "recital.type", + "concert.type" + ], + [ + "performance.date", + "recital.date" + ], + [ + "performance.date", + "concert.date" + ], + [ + "recital.date", + "concert.date" + ], + [ + "performance.official_ratings_(millions)", + "recital.official_ratings_(millions)" + ], + [ + "performance.official_ratings_(millions)", + "concert.official_ratings_(millions)" + ], + [ + "recital.official_ratings_(millions)", + "concert.official_ratings_(millions)" + ], + [ + "performance.weekly_rank", + "recital.weekly_rank" + ], + [ + "performance.weekly_rank", + "concert.weekly_rank" + ], + [ + "recital.weekly_rank", + "concert.weekly_rank" + ], + [ + "performance.share", + "recital.share" + ], + [ + "performance.share", + "concert.share" + ], + [ + "recital.share", + "concert.share" + ] + ] + }, + { + "question": "return the #maximum and minimum shares for performances# that do not have the #type# \"live final\".", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ], + "recital": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "concert": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ] + }, + "linking_list": [ + [ + "maximum and minimum shares for performances", + "performance.share" + ], + [ + "maximum and minimum shares for performances", + "recital.share" + ], + [ + "maximum and minimum shares for performances", + "concert.share" + ], + [ + "type", + "performance.type" + ], + [ + "type", + "recital.type" + ], + [ + "type", + "concert.type" + ] + ], + "linking_list_idx": [ + [ + 0, + "performance.share" + ], + [ + 0, + "recital.share" + ], + [ + 0, + "concert.share" + ], + [ + 1, + "performance.type" + ], + [ + 1, + "recital.type" + ], + [ + 1, + "concert.type" + ] + ], + "linking_list_col": [ + [ + "performance.performance_id", + "recital.performance_id" + ], + [ + "performance.performance_id", + "concert.performance_id" + ], + [ + "recital.performance_id", + "concert.performance_id" + ], + [ + "performance.orchestra_id", + "recital.orchestra_id" + ], + [ + "performance.orchestra_id", + "concert.orchestra_id" + ], + [ + "recital.orchestra_id", + "concert.orchestra_id" + ], + [ + "performance.type", + "recital.type" + ], + [ + "performance.type", + "concert.type" + ], + [ + "recital.type", + "concert.type" + ], + [ + "performance.date", + "recital.date" + ], + [ + "performance.date", + "concert.date" + ], + [ + "recital.date", + "concert.date" + ], + [ + "performance.official_ratings_(millions)", + "recital.official_ratings_(millions)" + ], + [ + "performance.official_ratings_(millions)", + "concert.official_ratings_(millions)" + ], + [ + "recital.official_ratings_(millions)", + "concert.official_ratings_(millions)" + ], + [ + "performance.weekly_rank", + "recital.weekly_rank" + ], + [ + "performance.weekly_rank", + "concert.weekly_rank" + ], + [ + "recital.weekly_rank", + "concert.weekly_rank" + ], + [ + "performance.share", + "recital.share" + ], + [ + "performance.share", + "concert.share" + ], + [ + "recital.share", + "concert.share" + ] + ] + }, + { + "question": "list #names of conductors# in descending order of #years of work# .", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ], + "director": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "maestro": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ] + }, + "linking_list": [ + [ + "names of conductors", + "conductor.name" + ], + [ + "names of conductors", + "director.name" + ], + [ + "names of conductors", + "maestro.name" + ], + [ + "years of work", + "conductor.year_of_work" + ], + [ + "years of work", + "director.year_of_work" + ], + [ + "years of work", + "maestro.year_of_work" + ] + ], + "linking_list_idx": [ + [ + 0, + "conductor.name" + ], + [ + 0, + "director.name" + ], + [ + 0, + "maestro.name" + ], + [ + 1, + "conductor.year_of_work" + ], + [ + 1, + "director.year_of_work" + ], + [ + 1, + "maestro.year_of_work" + ] + ], + "linking_list_col": [ + [ + "conductor.conductor_id", + "director.conductor_id" + ], + [ + "conductor.conductor_id", + "maestro.conductor_id" + ], + [ + "director.conductor_id", + "maestro.conductor_id" + ], + [ + "conductor.name", + "director.name" + ], + [ + "conductor.name", + "maestro.name" + ], + [ + "director.name", + "maestro.name" + ], + [ + "conductor.age", + "director.age" + ], + [ + "conductor.age", + "maestro.age" + ], + [ + "director.age", + "maestro.age" + ], + [ + "conductor.nationality", + "director.nationality" + ], + [ + "conductor.nationality", + "maestro.nationality" + ], + [ + "director.nationality", + "maestro.nationality" + ], + [ + "conductor.year_of_work", + "director.year_of_work" + ], + [ + "conductor.year_of_work", + "maestro.year_of_work" + ], + [ + "director.year_of_work", + "maestro.year_of_work" + ] + ] + }, + { + "question": "what are the #names of conductors# , sorted descending by the number of years they have worked?", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ], + "director": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "maestro": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ] + }, + "linking_list": [ + [ + "names of conductors", + "conductor.name" + ], + [ + "names of conductors", + "director.name" + ], + [ + "names of conductors", + "maestro.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "conductor.name" + ], + [ + 0, + "director.name" + ], + [ + 0, + "maestro.name" + ] + ], + "linking_list_col": [ + [ + "conductor.conductor_id", + "director.conductor_id" + ], + [ + "conductor.conductor_id", + "maestro.conductor_id" + ], + [ + "director.conductor_id", + "maestro.conductor_id" + ], + [ + "conductor.name", + "director.name" + ], + [ + "conductor.name", + "maestro.name" + ], + [ + "director.name", + "maestro.name" + ], + [ + "conductor.age", + "director.age" + ], + [ + "conductor.age", + "maestro.age" + ], + [ + "director.age", + "maestro.age" + ], + [ + "conductor.nationality", + "director.nationality" + ], + [ + "conductor.nationality", + "maestro.nationality" + ], + [ + "director.nationality", + "maestro.nationality" + ], + [ + "conductor.year_of_work", + "director.year_of_work" + ], + [ + "conductor.year_of_work", + "maestro.year_of_work" + ], + [ + "director.year_of_work", + "maestro.year_of_work" + ] + ] + }, + { + "question": "list the #name of the conductor# with the most #years of work# .", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ], + "director": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "maestro": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ] + }, + "linking_list": [ + [ + "name of the conductor", + "conductor.name" + ], + [ + "name of the conductor", + "director.name" + ], + [ + "name of the conductor", + "maestro.name" + ], + [ + "years of work", + "conductor.year_of_work" + ], + [ + "years of work", + "director.year_of_work" + ], + [ + "years of work", + "maestro.year_of_work" + ] + ], + "linking_list_idx": [ + [ + 0, + "conductor.name" + ], + [ + 0, + "director.name" + ], + [ + 0, + "maestro.name" + ], + [ + 1, + "conductor.year_of_work" + ], + [ + 1, + "director.year_of_work" + ], + [ + 1, + "maestro.year_of_work" + ] + ], + "linking_list_col": [ + [ + "conductor.conductor_id", + "director.conductor_id" + ], + [ + "conductor.conductor_id", + "maestro.conductor_id" + ], + [ + "director.conductor_id", + "maestro.conductor_id" + ], + [ + "conductor.name", + "director.name" + ], + [ + "conductor.name", + "maestro.name" + ], + [ + "director.name", + "maestro.name" + ], + [ + "conductor.age", + "director.age" + ], + [ + "conductor.age", + "maestro.age" + ], + [ + "director.age", + "maestro.age" + ], + [ + "conductor.nationality", + "director.nationality" + ], + [ + "conductor.nationality", + "maestro.nationality" + ], + [ + "director.nationality", + "maestro.nationality" + ], + [ + "conductor.year_of_work", + "director.year_of_work" + ], + [ + "conductor.year_of_work", + "maestro.year_of_work" + ], + [ + "director.year_of_work", + "maestro.year_of_work" + ] + ] + }, + { + "question": "what is the #name of the conductor# who has worked the greatest number of years?", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ], + "director": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "maestro": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ] + }, + "linking_list": [ + [ + "name of the conductor", + "conductor.name" + ], + [ + "name of the conductor", + "director.name" + ], + [ + "name of the conductor", + "maestro.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "conductor.name" + ], + [ + 0, + "director.name" + ], + [ + 0, + "maestro.name" + ] + ], + "linking_list_col": [ + [ + "conductor.conductor_id", + "director.conductor_id" + ], + [ + "conductor.conductor_id", + "maestro.conductor_id" + ], + [ + "director.conductor_id", + "maestro.conductor_id" + ], + [ + "conductor.name", + "director.name" + ], + [ + "conductor.name", + "maestro.name" + ], + [ + "director.name", + "maestro.name" + ], + [ + "conductor.age", + "director.age" + ], + [ + "conductor.age", + "maestro.age" + ], + [ + "director.age", + "maestro.age" + ], + [ + "conductor.nationality", + "director.nationality" + ], + [ + "conductor.nationality", + "maestro.nationality" + ], + [ + "director.nationality", + "maestro.nationality" + ], + [ + "conductor.year_of_work", + "director.year_of_work" + ], + [ + "conductor.year_of_work", + "maestro.year_of_work" + ], + [ + "director.year_of_work", + "maestro.year_of_work" + ] + ] + }, + { + "question": "show the #names of conductors# and the #orchestras# they have conducted.", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ], + "ensemble": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "symphony": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ] + }, + "linking_list": [ + [ + "names of conductors", + "conductor.name" + ], + [ + "orchestras", + "orchestra.orchestra" + ], + [ + "orchestras", + "ensemble.orchestra" + ], + [ + "orchestras", + "symphony.orchestra" + ] + ], + "linking_list_idx": [ + [ + 0, + "conductor.name" + ], + [ + 1, + "orchestra.orchestra" + ], + [ + 1, + "ensemble.orchestra" + ], + [ + 1, + "symphony.orchestra" + ] + ], + "linking_list_col": [ + [ + "orchestra.orchestra_id", + "ensemble.orchestra_id" + ], + [ + "orchestra.orchestra_id", + "symphony.orchestra_id" + ], + [ + "ensemble.orchestra_id", + "symphony.orchestra_id" + ], + [ + "orchestra.orchestra", + "ensemble.orchestra" + ], + [ + "orchestra.orchestra", + "symphony.orchestra" + ], + [ + "ensemble.orchestra", + "symphony.orchestra" + ], + [ + "orchestra.conductor_id", + "ensemble.conductor_id" + ], + [ + "orchestra.conductor_id", + "symphony.conductor_id" + ], + [ + "ensemble.conductor_id", + "symphony.conductor_id" + ], + [ + "orchestra.record_company", + "ensemble.record_company" + ], + [ + "orchestra.record_company", + "symphony.record_company" + ], + [ + "ensemble.record_company", + "symphony.record_company" + ], + [ + "orchestra.year_of_founded", + "ensemble.year_of_founded" + ], + [ + "orchestra.year_of_founded", + "symphony.year_of_founded" + ], + [ + "ensemble.year_of_founded", + "symphony.year_of_founded" + ], + [ + "orchestra.major_record_format", + "ensemble.major_record_format" + ], + [ + "orchestra.major_record_format", + "symphony.major_record_format" + ], + [ + "ensemble.major_record_format", + "symphony.major_record_format" + ] + ] + }, + { + "question": "what are the #names of conductors# as well as the corresonding #orchestras# that they have conducted?", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ], + "ensemble": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "symphony": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ] + }, + "linking_list": [ + [ + "names of conductors", + "conductor.name" + ], + [ + "orchestras", + "orchestra.orchestra" + ], + [ + "orchestras", + "ensemble.orchestra" + ], + [ + "orchestras", + "symphony.orchestra" + ] + ], + "linking_list_idx": [ + [ + 0, + "conductor.name" + ], + [ + 1, + "orchestra.orchestra" + ], + [ + 1, + "ensemble.orchestra" + ], + [ + 1, + "symphony.orchestra" + ] + ], + "linking_list_col": [ + [ + "orchestra.orchestra_id", + "ensemble.orchestra_id" + ], + [ + "orchestra.orchestra_id", + "symphony.orchestra_id" + ], + [ + "ensemble.orchestra_id", + "symphony.orchestra_id" + ], + [ + "orchestra.orchestra", + "ensemble.orchestra" + ], + [ + "orchestra.orchestra", + "symphony.orchestra" + ], + [ + "ensemble.orchestra", + "symphony.orchestra" + ], + [ + "orchestra.conductor_id", + "ensemble.conductor_id" + ], + [ + "orchestra.conductor_id", + "symphony.conductor_id" + ], + [ + "ensemble.conductor_id", + "symphony.conductor_id" + ], + [ + "orchestra.record_company", + "ensemble.record_company" + ], + [ + "orchestra.record_company", + "symphony.record_company" + ], + [ + "ensemble.record_company", + "symphony.record_company" + ], + [ + "orchestra.year_of_founded", + "ensemble.year_of_founded" + ], + [ + "orchestra.year_of_founded", + "symphony.year_of_founded" + ], + [ + "ensemble.year_of_founded", + "symphony.year_of_founded" + ], + [ + "orchestra.major_record_format", + "ensemble.major_record_format" + ], + [ + "orchestra.major_record_format", + "symphony.major_record_format" + ], + [ + "ensemble.major_record_format", + "symphony.major_record_format" + ] + ] + }, + { + "question": "please show the #name# of the conductor that has conducted #orchestras founded after 2008# .", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ], + "ensemble": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "symphony": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ] + }, + "linking_list": [ + [ + "name", + "conductor.name" + ], + [ + "orchestras founded after 2008", + "orchestra.year_of_founded" + ], + [ + "orchestras founded after 2008", + "ensemble.year_of_founded" + ], + [ + "orchestras founded after 2008", + "symphony.year_of_founded" + ] + ], + "linking_list_idx": [ + [ + 0, + "conductor.name" + ], + [ + 1, + "orchestra.year_of_founded" + ], + [ + 1, + "ensemble.year_of_founded" + ], + [ + 1, + "symphony.year_of_founded" + ] + ], + "linking_list_col": [ + [ + "orchestra.orchestra_id", + "ensemble.orchestra_id" + ], + [ + "orchestra.orchestra_id", + "symphony.orchestra_id" + ], + [ + "ensemble.orchestra_id", + "symphony.orchestra_id" + ], + [ + "orchestra.orchestra", + "ensemble.orchestra" + ], + [ + "orchestra.orchestra", + "symphony.orchestra" + ], + [ + "ensemble.orchestra", + "symphony.orchestra" + ], + [ + "orchestra.conductor_id", + "ensemble.conductor_id" + ], + [ + "orchestra.conductor_id", + "symphony.conductor_id" + ], + [ + "ensemble.conductor_id", + "symphony.conductor_id" + ], + [ + "orchestra.record_company", + "ensemble.record_company" + ], + [ + "orchestra.record_company", + "symphony.record_company" + ], + [ + "ensemble.record_company", + "symphony.record_company" + ], + [ + "orchestra.year_of_founded", + "ensemble.year_of_founded" + ], + [ + "orchestra.year_of_founded", + "symphony.year_of_founded" + ], + [ + "ensemble.year_of_founded", + "symphony.year_of_founded" + ], + [ + "orchestra.major_record_format", + "ensemble.major_record_format" + ], + [ + "orchestra.major_record_format", + "symphony.major_record_format" + ], + [ + "ensemble.major_record_format", + "symphony.major_record_format" + ] + ] + }, + { + "question": "please show the different #record companies# and the corresponding number of orchestras.", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ], + "ensemble": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "symphony": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ] + }, + "linking_list": [ + [ + "record companies", + "orchestra.record_company" + ], + [ + "record companies", + "ensemble.record_company" + ], + [ + "record companies", + "symphony.record_company" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.record_company" + ], + [ + 0, + "ensemble.record_company" + ], + [ + 0, + "symphony.record_company" + ] + ], + "linking_list_col": [ + [ + "orchestra.orchestra_id", + "ensemble.orchestra_id" + ], + [ + "orchestra.orchestra_id", + "symphony.orchestra_id" + ], + [ + "ensemble.orchestra_id", + "symphony.orchestra_id" + ], + [ + "orchestra.orchestra", + "ensemble.orchestra" + ], + [ + "orchestra.orchestra", + "symphony.orchestra" + ], + [ + "ensemble.orchestra", + "symphony.orchestra" + ], + [ + "orchestra.conductor_id", + "ensemble.conductor_id" + ], + [ + "orchestra.conductor_id", + "symphony.conductor_id" + ], + [ + "ensemble.conductor_id", + "symphony.conductor_id" + ], + [ + "orchestra.record_company", + "ensemble.record_company" + ], + [ + "orchestra.record_company", + "symphony.record_company" + ], + [ + "ensemble.record_company", + "symphony.record_company" + ], + [ + "orchestra.year_of_founded", + "ensemble.year_of_founded" + ], + [ + "orchestra.year_of_founded", + "symphony.year_of_founded" + ], + [ + "ensemble.year_of_founded", + "symphony.year_of_founded" + ], + [ + "orchestra.major_record_format", + "ensemble.major_record_format" + ], + [ + "orchestra.major_record_format", + "symphony.major_record_format" + ], + [ + "ensemble.major_record_format", + "symphony.major_record_format" + ] + ] + }, + { + "question": "how many orchestras does each #record company# manage?", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ], + "ensemble": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "symphony": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ] + }, + "linking_list": [ + [ + "record company", + "orchestra.record_company" + ], + [ + "record company", + "ensemble.record_company" + ], + [ + "record company", + "symphony.record_company" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.record_company" + ], + [ + 0, + "ensemble.record_company" + ], + [ + 0, + "symphony.record_company" + ] + ], + "linking_list_col": [ + [ + "orchestra.orchestra_id", + "ensemble.orchestra_id" + ], + [ + "orchestra.orchestra_id", + "symphony.orchestra_id" + ], + [ + "ensemble.orchestra_id", + "symphony.orchestra_id" + ], + [ + "orchestra.orchestra", + "ensemble.orchestra" + ], + [ + "orchestra.orchestra", + "symphony.orchestra" + ], + [ + "ensemble.orchestra", + "symphony.orchestra" + ], + [ + "orchestra.conductor_id", + "ensemble.conductor_id" + ], + [ + "orchestra.conductor_id", + "symphony.conductor_id" + ], + [ + "ensemble.conductor_id", + "symphony.conductor_id" + ], + [ + "orchestra.record_company", + "ensemble.record_company" + ], + [ + "orchestra.record_company", + "symphony.record_company" + ], + [ + "ensemble.record_company", + "symphony.record_company" + ], + [ + "orchestra.year_of_founded", + "ensemble.year_of_founded" + ], + [ + "orchestra.year_of_founded", + "symphony.year_of_founded" + ], + [ + "ensemble.year_of_founded", + "symphony.year_of_founded" + ], + [ + "orchestra.major_record_format", + "ensemble.major_record_format" + ], + [ + "orchestra.major_record_format", + "symphony.major_record_format" + ], + [ + "ensemble.major_record_format", + "symphony.major_record_format" + ] + ] + }, + { + "question": "please show the #record formats of orchestras# in ascending order of count.", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ], + "ensemble": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "symphony": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ] + }, + "linking_list": [ + [ + "record formats of orchestras", + "orchestra.major_record_format" + ], + [ + "record formats of orchestras", + "ensemble.major_record_format" + ], + [ + "record formats of orchestras", + "symphony.major_record_format" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.major_record_format" + ], + [ + 0, + "ensemble.major_record_format" + ], + [ + 0, + "symphony.major_record_format" + ] + ], + "linking_list_col": [ + [ + "orchestra.orchestra_id", + "ensemble.orchestra_id" + ], + [ + "orchestra.orchestra_id", + "symphony.orchestra_id" + ], + [ + "ensemble.orchestra_id", + "symphony.orchestra_id" + ], + [ + "orchestra.orchestra", + "ensemble.orchestra" + ], + [ + "orchestra.orchestra", + "symphony.orchestra" + ], + [ + "ensemble.orchestra", + "symphony.orchestra" + ], + [ + "orchestra.conductor_id", + "ensemble.conductor_id" + ], + [ + "orchestra.conductor_id", + "symphony.conductor_id" + ], + [ + "ensemble.conductor_id", + "symphony.conductor_id" + ], + [ + "orchestra.record_company", + "ensemble.record_company" + ], + [ + "orchestra.record_company", + "symphony.record_company" + ], + [ + "ensemble.record_company", + "symphony.record_company" + ], + [ + "orchestra.year_of_founded", + "ensemble.year_of_founded" + ], + [ + "orchestra.year_of_founded", + "symphony.year_of_founded" + ], + [ + "ensemble.year_of_founded", + "symphony.year_of_founded" + ], + [ + "orchestra.major_record_format", + "ensemble.major_record_format" + ], + [ + "orchestra.major_record_format", + "symphony.major_record_format" + ], + [ + "ensemble.major_record_format", + "symphony.major_record_format" + ] + ] + }, + { + "question": "what are the #major record formats of orchestras# , sorted by their frequency?", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ], + "ensemble": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "symphony": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ] + }, + "linking_list": [ + [ + "major record formats of orchestras", + "orchestra.major_record_format" + ], + [ + "major record formats of orchestras", + "ensemble.major_record_format" + ], + [ + "major record formats of orchestras", + "symphony.major_record_format" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.major_record_format" + ], + [ + 0, + "ensemble.major_record_format" + ], + [ + 0, + "symphony.major_record_format" + ] + ], + "linking_list_col": [ + [ + "orchestra.orchestra_id", + "ensemble.orchestra_id" + ], + [ + "orchestra.orchestra_id", + "symphony.orchestra_id" + ], + [ + "ensemble.orchestra_id", + "symphony.orchestra_id" + ], + [ + "orchestra.orchestra", + "ensemble.orchestra" + ], + [ + "orchestra.orchestra", + "symphony.orchestra" + ], + [ + "ensemble.orchestra", + "symphony.orchestra" + ], + [ + "orchestra.conductor_id", + "ensemble.conductor_id" + ], + [ + "orchestra.conductor_id", + "symphony.conductor_id" + ], + [ + "ensemble.conductor_id", + "symphony.conductor_id" + ], + [ + "orchestra.record_company", + "ensemble.record_company" + ], + [ + "orchestra.record_company", + "symphony.record_company" + ], + [ + "ensemble.record_company", + "symphony.record_company" + ], + [ + "orchestra.year_of_founded", + "ensemble.year_of_founded" + ], + [ + "orchestra.year_of_founded", + "symphony.year_of_founded" + ], + [ + "ensemble.year_of_founded", + "symphony.year_of_founded" + ], + [ + "orchestra.major_record_format", + "ensemble.major_record_format" + ], + [ + "orchestra.major_record_format", + "symphony.major_record_format" + ], + [ + "ensemble.major_record_format", + "symphony.major_record_format" + ] + ] + }, + { + "question": "list the #record company# shared by the most number of orchestras.", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ], + "ensemble": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "symphony": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ] + }, + "linking_list": [ + [ + "record company", + "orchestra.record_company" + ], + [ + "record company", + "ensemble.record_company" + ], + [ + "record company", + "symphony.record_company" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.record_company" + ], + [ + 0, + "ensemble.record_company" + ], + [ + 0, + "symphony.record_company" + ] + ], + "linking_list_col": [ + [ + "orchestra.orchestra_id", + "ensemble.orchestra_id" + ], + [ + "orchestra.orchestra_id", + "symphony.orchestra_id" + ], + [ + "ensemble.orchestra_id", + "symphony.orchestra_id" + ], + [ + "orchestra.orchestra", + "ensemble.orchestra" + ], + [ + "orchestra.orchestra", + "symphony.orchestra" + ], + [ + "ensemble.orchestra", + "symphony.orchestra" + ], + [ + "orchestra.conductor_id", + "ensemble.conductor_id" + ], + [ + "orchestra.conductor_id", + "symphony.conductor_id" + ], + [ + "ensemble.conductor_id", + "symphony.conductor_id" + ], + [ + "orchestra.record_company", + "ensemble.record_company" + ], + [ + "orchestra.record_company", + "symphony.record_company" + ], + [ + "ensemble.record_company", + "symphony.record_company" + ], + [ + "orchestra.year_of_founded", + "ensemble.year_of_founded" + ], + [ + "orchestra.year_of_founded", + "symphony.year_of_founded" + ], + [ + "ensemble.year_of_founded", + "symphony.year_of_founded" + ], + [ + "orchestra.major_record_format", + "ensemble.major_record_format" + ], + [ + "orchestra.major_record_format", + "symphony.major_record_format" + ], + [ + "ensemble.major_record_format", + "symphony.major_record_format" + ] + ] + }, + { + "question": "what is the #record company# used by the greatest number of orchestras?", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ], + "ensemble": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "symphony": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ] + }, + "linking_list": [ + [ + "record company", + "orchestra.record_company" + ], + [ + "record company", + "ensemble.record_company" + ], + [ + "record company", + "symphony.record_company" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.record_company" + ], + [ + 0, + "ensemble.record_company" + ], + [ + 0, + "symphony.record_company" + ] + ], + "linking_list_col": [ + [ + "orchestra.orchestra_id", + "ensemble.orchestra_id" + ], + [ + "orchestra.orchestra_id", + "symphony.orchestra_id" + ], + [ + "ensemble.orchestra_id", + "symphony.orchestra_id" + ], + [ + "orchestra.orchestra", + "ensemble.orchestra" + ], + [ + "orchestra.orchestra", + "symphony.orchestra" + ], + [ + "ensemble.orchestra", + "symphony.orchestra" + ], + [ + "orchestra.conductor_id", + "ensemble.conductor_id" + ], + [ + "orchestra.conductor_id", + "symphony.conductor_id" + ], + [ + "ensemble.conductor_id", + "symphony.conductor_id" + ], + [ + "orchestra.record_company", + "ensemble.record_company" + ], + [ + "orchestra.record_company", + "symphony.record_company" + ], + [ + "ensemble.record_company", + "symphony.record_company" + ], + [ + "orchestra.year_of_founded", + "ensemble.year_of_founded" + ], + [ + "orchestra.year_of_founded", + "symphony.year_of_founded" + ], + [ + "ensemble.year_of_founded", + "symphony.year_of_founded" + ], + [ + "orchestra.major_record_format", + "ensemble.major_record_format" + ], + [ + "orchestra.major_record_format", + "symphony.major_record_format" + ], + [ + "ensemble.major_record_format", + "symphony.major_record_format" + ] + ] + }, + { + "question": "show the #record companies# shared by #orchestras founded before 2003 and after 2003# .", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ], + "ensemble": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "symphony": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ] + }, + "linking_list": [ + [ + "record companies", + "orchestra.record_company" + ], + [ + "record companies", + "ensemble.record_company" + ], + [ + "record companies", + "symphony.record_company" + ], + [ + "orchestras founded before 2003 and after 2003", + "orchestra.year_of_founded" + ], + [ + "orchestras founded before 2003 and after 2003", + "ensemble.year_of_founded" + ], + [ + "orchestras founded before 2003 and after 2003", + "symphony.year_of_founded" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.record_company" + ], + [ + 0, + "ensemble.record_company" + ], + [ + 0, + "symphony.record_company" + ], + [ + 1, + "orchestra.year_of_founded" + ], + [ + 1, + "ensemble.year_of_founded" + ], + [ + 1, + "symphony.year_of_founded" + ] + ], + "linking_list_col": [ + [ + "orchestra.orchestra_id", + "ensemble.orchestra_id" + ], + [ + "orchestra.orchestra_id", + "symphony.orchestra_id" + ], + [ + "ensemble.orchestra_id", + "symphony.orchestra_id" + ], + [ + "orchestra.orchestra", + "ensemble.orchestra" + ], + [ + "orchestra.orchestra", + "symphony.orchestra" + ], + [ + "ensemble.orchestra", + "symphony.orchestra" + ], + [ + "orchestra.conductor_id", + "ensemble.conductor_id" + ], + [ + "orchestra.conductor_id", + "symphony.conductor_id" + ], + [ + "ensemble.conductor_id", + "symphony.conductor_id" + ], + [ + "orchestra.record_company", + "ensemble.record_company" + ], + [ + "orchestra.record_company", + "symphony.record_company" + ], + [ + "ensemble.record_company", + "symphony.record_company" + ], + [ + "orchestra.year_of_founded", + "ensemble.year_of_founded" + ], + [ + "orchestra.year_of_founded", + "symphony.year_of_founded" + ], + [ + "ensemble.year_of_founded", + "symphony.year_of_founded" + ], + [ + "orchestra.major_record_format", + "ensemble.major_record_format" + ], + [ + "orchestra.major_record_format", + "symphony.major_record_format" + ], + [ + "ensemble.major_record_format", + "symphony.major_record_format" + ] + ] + }, + { + "question": "what are the #record companies# that are used by both orchestras founded before 2003 and those founded after 2003?", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ], + "ensemble": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "symphony": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ] + }, + "linking_list": [ + [ + "record companies", + "orchestra.record_company" + ], + [ + "record companies", + "ensemble.record_company" + ], + [ + "record companies", + "symphony.record_company" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.record_company" + ], + [ + 0, + "ensemble.record_company" + ], + [ + 0, + "symphony.record_company" + ] + ], + "linking_list_col": [ + [ + "orchestra.orchestra_id", + "ensemble.orchestra_id" + ], + [ + "orchestra.orchestra_id", + "symphony.orchestra_id" + ], + [ + "ensemble.orchestra_id", + "symphony.orchestra_id" + ], + [ + "orchestra.orchestra", + "ensemble.orchestra" + ], + [ + "orchestra.orchestra", + "symphony.orchestra" + ], + [ + "ensemble.orchestra", + "symphony.orchestra" + ], + [ + "orchestra.conductor_id", + "ensemble.conductor_id" + ], + [ + "orchestra.conductor_id", + "symphony.conductor_id" + ], + [ + "ensemble.conductor_id", + "symphony.conductor_id" + ], + [ + "orchestra.record_company", + "ensemble.record_company" + ], + [ + "orchestra.record_company", + "symphony.record_company" + ], + [ + "ensemble.record_company", + "symphony.record_company" + ], + [ + "orchestra.year_of_founded", + "ensemble.year_of_founded" + ], + [ + "orchestra.year_of_founded", + "symphony.year_of_founded" + ], + [ + "ensemble.year_of_founded", + "symphony.year_of_founded" + ], + [ + "orchestra.major_record_format", + "ensemble.major_record_format" + ], + [ + "orchestra.major_record_format", + "symphony.major_record_format" + ], + [ + "ensemble.major_record_format", + "symphony.major_record_format" + ] + ] + }, + { + "question": "find the number of orchestras whose #record format# is \"cd\" or \"dvd\".", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ], + "ensemble": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "symphony": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ] + }, + "linking_list": [ + [ + "record format", + "orchestra.major_record_format" + ], + [ + "record format", + "ensemble.major_record_format" + ], + [ + "record format", + "symphony.major_record_format" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.major_record_format" + ], + [ + 0, + "ensemble.major_record_format" + ], + [ + 0, + "symphony.major_record_format" + ] + ], + "linking_list_col": [ + [ + "orchestra.orchestra_id", + "ensemble.orchestra_id" + ], + [ + "orchestra.orchestra_id", + "symphony.orchestra_id" + ], + [ + "ensemble.orchestra_id", + "symphony.orchestra_id" + ], + [ + "orchestra.orchestra", + "ensemble.orchestra" + ], + [ + "orchestra.orchestra", + "symphony.orchestra" + ], + [ + "ensemble.orchestra", + "symphony.orchestra" + ], + [ + "orchestra.conductor_id", + "ensemble.conductor_id" + ], + [ + "orchestra.conductor_id", + "symphony.conductor_id" + ], + [ + "ensemble.conductor_id", + "symphony.conductor_id" + ], + [ + "orchestra.record_company", + "ensemble.record_company" + ], + [ + "orchestra.record_company", + "symphony.record_company" + ], + [ + "ensemble.record_company", + "symphony.record_company" + ], + [ + "orchestra.year_of_founded", + "ensemble.year_of_founded" + ], + [ + "orchestra.year_of_founded", + "symphony.year_of_founded" + ], + [ + "ensemble.year_of_founded", + "symphony.year_of_founded" + ], + [ + "orchestra.major_record_format", + "ensemble.major_record_format" + ], + [ + "orchestra.major_record_format", + "symphony.major_record_format" + ], + [ + "ensemble.major_record_format", + "symphony.major_record_format" + ] + ] + }, + { + "question": "count the number of orchestras that have cd or dvd as their #record format# .", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ], + "ensemble": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "symphony": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ] + }, + "linking_list": [ + [ + "record format", + "orchestra.major_record_format" + ], + [ + "record format", + "ensemble.major_record_format" + ], + [ + "record format", + "symphony.major_record_format" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.major_record_format" + ], + [ + 0, + "ensemble.major_record_format" + ], + [ + 0, + "symphony.major_record_format" + ] + ], + "linking_list_col": [ + [ + "orchestra.orchestra_id", + "ensemble.orchestra_id" + ], + [ + "orchestra.orchestra_id", + "symphony.orchestra_id" + ], + [ + "ensemble.orchestra_id", + "symphony.orchestra_id" + ], + [ + "orchestra.orchestra", + "ensemble.orchestra" + ], + [ + "orchestra.orchestra", + "symphony.orchestra" + ], + [ + "ensemble.orchestra", + "symphony.orchestra" + ], + [ + "orchestra.conductor_id", + "ensemble.conductor_id" + ], + [ + "orchestra.conductor_id", + "symphony.conductor_id" + ], + [ + "ensemble.conductor_id", + "symphony.conductor_id" + ], + [ + "orchestra.record_company", + "ensemble.record_company" + ], + [ + "orchestra.record_company", + "symphony.record_company" + ], + [ + "ensemble.record_company", + "symphony.record_company" + ], + [ + "orchestra.year_of_founded", + "ensemble.year_of_founded" + ], + [ + "orchestra.year_of_founded", + "symphony.year_of_founded" + ], + [ + "ensemble.year_of_founded", + "symphony.year_of_founded" + ], + [ + "orchestra.major_record_format", + "ensemble.major_record_format" + ], + [ + "orchestra.major_record_format", + "symphony.major_record_format" + ], + [ + "ensemble.major_record_format", + "symphony.major_record_format" + ] + ] + }, + { + "question": "what #grade is kyle# in?", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "linking_list": [ + [ + "grade is Kyle", + "highschooler.grade" + ], + [ + "grade is Kyle", + "Student.grade" + ], + [ + "grade is Kyle", + "Teenager.grade" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.grade" + ], + [ + 0, + "Student.grade" + ], + [ + 0, + "Teenager.grade" + ] + ], + "linking_list_col": [ + [ + "highschooler.id", + "student.id" + ], + [ + "highschooler.id", + "teenager.id" + ], + [ + "student.id", + "teenager.id" + ], + [ + "highschooler.name", + "student.name" + ], + [ + "highschooler.name", + "teenager.name" + ], + [ + "student.name", + "teenager.name" + ], + [ + "highschooler.grade", + "student.grade" + ], + [ + "highschooler.grade", + "teenager.grade" + ], + [ + "student.grade", + "teenager.grade" + ] + ] + }, + { + "question": "return the #grade for the high schooler# named kyle.", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "linking_list": [ + [ + "grade for the high schooler", + "highschooler.grade" + ], + [ + "grade for the high schooler", + "Student.grade" + ], + [ + "grade for the high schooler", + "Teenager.grade" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.grade" + ], + [ + 0, + "Student.grade" + ], + [ + 0, + "Teenager.grade" + ] + ], + "linking_list_col": [ + [ + "highschooler.id", + "student.id" + ], + [ + "highschooler.id", + "teenager.id" + ], + [ + "student.id", + "teenager.id" + ], + [ + "highschooler.name", + "student.name" + ], + [ + "highschooler.name", + "teenager.name" + ], + [ + "student.name", + "teenager.name" + ], + [ + "highschooler.grade", + "student.grade" + ], + [ + "highschooler.grade", + "teenager.grade" + ], + [ + "student.grade", + "teenager.grade" + ] + ] + }, + { + "question": "show the #names of all high schoolers in grade# 10.", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "linking_list": [ + [ + "names of all high schoolers in grade", + "highschooler.name" + ], + [ + "names of all high schoolers in grade", + "Student.name" + ], + [ + "names of all high schoolers in grade", + "Teenager.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.name" + ], + [ + 0, + "Student.name" + ], + [ + 0, + "Teenager.name" + ] + ], + "linking_list_col": [ + [ + "highschooler.id", + "student.id" + ], + [ + "highschooler.id", + "teenager.id" + ], + [ + "student.id", + "teenager.id" + ], + [ + "highschooler.name", + "student.name" + ], + [ + "highschooler.name", + "teenager.name" + ], + [ + "student.name", + "teenager.name" + ], + [ + "highschooler.grade", + "student.grade" + ], + [ + "highschooler.grade", + "teenager.grade" + ], + [ + "student.grade", + "teenager.grade" + ] + ] + }, + { + "question": "what are the #names of all high schoolers in grade# 10?", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "linking_list": [ + [ + "names of all high schoolers in grade", + "highschooler.name" + ], + [ + "names of all high schoolers in grade", + "Student.name" + ], + [ + "names of all high schoolers in grade", + "Teenager.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.name" + ], + [ + 0, + "Student.name" + ], + [ + 0, + "Teenager.name" + ] + ], + "linking_list_col": [ + [ + "highschooler.id", + "student.id" + ], + [ + "highschooler.id", + "teenager.id" + ], + [ + "student.id", + "teenager.id" + ], + [ + "highschooler.name", + "student.name" + ], + [ + "highschooler.name", + "teenager.name" + ], + [ + "student.name", + "teenager.name" + ], + [ + "highschooler.grade", + "student.grade" + ], + [ + "highschooler.grade", + "teenager.grade" + ], + [ + "student.grade", + "teenager.grade" + ] + ] + }, + { + "question": "show the #id of the high schooler# named kyle.", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "linking_list": [ + [ + "ID of the high schooler", + "highschooler.id" + ], + [ + "ID of the high schooler", + "Student.id" + ], + [ + "ID of the high schooler", + "Teenager.id" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.id" + ], + [ + 0, + "Student.id" + ], + [ + 0, + "Teenager.id" + ] + ], + "linking_list_col": [ + [ + "highschooler.id", + "student.id" + ], + [ + "highschooler.id", + "teenager.id" + ], + [ + "student.id", + "teenager.id" + ], + [ + "highschooler.name", + "student.name" + ], + [ + "highschooler.name", + "teenager.name" + ], + [ + "student.name", + "teenager.name" + ], + [ + "highschooler.grade", + "student.grade" + ], + [ + "highschooler.grade", + "teenager.grade" + ], + [ + "student.grade", + "teenager.grade" + ] + ] + }, + { + "question": "how many high schoolers are there in #grade# 9 or 10?", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "linking_list": [ + [ + "grade", + "highschooler.grade" + ], + [ + "grade", + "Student.grade" + ], + [ + "grade", + "Teenager.grade" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.grade" + ], + [ + 0, + "Student.grade" + ], + [ + 0, + "Teenager.grade" + ] + ], + "linking_list_col": [ + [ + "highschooler.id", + "student.id" + ], + [ + "highschooler.id", + "teenager.id" + ], + [ + "student.id", + "teenager.id" + ], + [ + "highschooler.name", + "student.name" + ], + [ + "highschooler.name", + "teenager.name" + ], + [ + "student.name", + "teenager.name" + ], + [ + "highschooler.grade", + "student.grade" + ], + [ + "highschooler.grade", + "teenager.grade" + ], + [ + "student.grade", + "teenager.grade" + ] + ] + }, + { + "question": "count the number of #high schoolers in grades# 9 or 10.", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "linking_list": [ + [ + "high schoolers in grades", + "highschooler.grade" + ], + [ + "high schoolers in grades", + "Student.grade" + ], + [ + "high schoolers in grades", + "Teenager.grade" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.grade" + ], + [ + 0, + "Student.grade" + ], + [ + 0, + "Teenager.grade" + ] + ], + "linking_list_col": [ + [ + "highschooler.id", + "student.id" + ], + [ + "highschooler.id", + "teenager.id" + ], + [ + "student.id", + "teenager.id" + ], + [ + "highschooler.name", + "student.name" + ], + [ + "highschooler.name", + "teenager.name" + ], + [ + "student.name", + "teenager.name" + ], + [ + "highschooler.grade", + "student.grade" + ], + [ + "highschooler.grade", + "teenager.grade" + ], + [ + "student.grade", + "teenager.grade" + ] + ] + }, + { + "question": "show the number of #high schoolers for each grade# .", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "linking_list": [ + [ + "high schoolers for each grade", + "highschooler.grade" + ], + [ + "high schoolers for each grade", + "Student.grade" + ], + [ + "high schoolers for each grade", + "Teenager.grade" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.grade" + ], + [ + 0, + "Student.grade" + ], + [ + 0, + "Teenager.grade" + ] + ], + "linking_list_col": [ + [ + "highschooler.id", + "student.id" + ], + [ + "highschooler.id", + "teenager.id" + ], + [ + "student.id", + "teenager.id" + ], + [ + "highschooler.name", + "student.name" + ], + [ + "highschooler.name", + "teenager.name" + ], + [ + "student.name", + "teenager.name" + ], + [ + "highschooler.grade", + "student.grade" + ], + [ + "highschooler.grade", + "teenager.grade" + ], + [ + "student.grade", + "teenager.grade" + ] + ] + }, + { + "question": "which #grade# has the most high schoolers?", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "linking_list": [ + [ + "grade", + "highschooler.grade" + ], + [ + "grade", + "Student.grade" + ], + [ + "grade", + "Teenager.grade" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.grade" + ], + [ + 0, + "Student.grade" + ], + [ + 0, + "Teenager.grade" + ] + ], + "linking_list_col": [ + [ + "highschooler.id", + "student.id" + ], + [ + "highschooler.id", + "teenager.id" + ], + [ + "student.id", + "teenager.id" + ], + [ + "highschooler.name", + "student.name" + ], + [ + "highschooler.name", + "teenager.name" + ], + [ + "student.name", + "teenager.name" + ], + [ + "highschooler.grade", + "student.grade" + ], + [ + "highschooler.grade", + "teenager.grade" + ], + [ + "student.grade", + "teenager.grade" + ] + ] + }, + { + "question": "return the #grade# that has the greatest number of high schoolers.", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "linking_list": [ + [ + "grade", + "highschooler.grade" + ], + [ + "grade", + "Student.grade" + ], + [ + "grade", + "Teenager.grade" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.grade" + ], + [ + 0, + "Student.grade" + ], + [ + 0, + "Teenager.grade" + ] + ], + "linking_list_col": [ + [ + "highschooler.id", + "student.id" + ], + [ + "highschooler.id", + "teenager.id" + ], + [ + "student.id", + "teenager.id" + ], + [ + "highschooler.name", + "student.name" + ], + [ + "highschooler.name", + "teenager.name" + ], + [ + "student.name", + "teenager.name" + ], + [ + "highschooler.grade", + "student.grade" + ], + [ + "highschooler.grade", + "teenager.grade" + ], + [ + "student.grade", + "teenager.grade" + ] + ] + }, + { + "question": "show me all #grades# that have at least 4 students.", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "linking_list": [ + [ + "grades", + "highschooler.grade" + ], + [ + "grades", + "Student.grade" + ], + [ + "grades", + "Teenager.grade" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.grade" + ], + [ + 0, + "Student.grade" + ], + [ + 0, + "Teenager.grade" + ] + ], + "linking_list_col": [ + [ + "highschooler.id", + "student.id" + ], + [ + "highschooler.id", + "teenager.id" + ], + [ + "student.id", + "teenager.id" + ], + [ + "highschooler.name", + "student.name" + ], + [ + "highschooler.name", + "teenager.name" + ], + [ + "student.name", + "teenager.name" + ], + [ + "highschooler.grade", + "student.grade" + ], + [ + "highschooler.grade", + "teenager.grade" + ], + [ + "student.grade", + "teenager.grade" + ] + ] + }, + { + "question": "which #grades# have 4 or more high schoolers?", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "linking_list": [ + [ + "grades", + "highschooler.grade" + ], + [ + "grades", + "Student.grade" + ], + [ + "grades", + "Teenager.grade" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.grade" + ], + [ + 0, + "Student.grade" + ], + [ + 0, + "Teenager.grade" + ] + ], + "linking_list_col": [ + [ + "highschooler.id", + "student.id" + ], + [ + "highschooler.id", + "teenager.id" + ], + [ + "student.id", + "teenager.id" + ], + [ + "highschooler.name", + "student.name" + ], + [ + "highschooler.name", + "teenager.name" + ], + [ + "student.name", + "teenager.name" + ], + [ + "highschooler.grade", + "student.grade" + ], + [ + "highschooler.grade", + "teenager.grade" + ], + [ + "student.grade", + "teenager.grade" + ] + ] + }, + { + "question": "show the #student ids# and numbers of friends corresponding to each.", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Connection": [ + "student_id", + "friend_id" + ], + "Acquaintance": [ + "student_id", + "friend_id" + ] + }, + "linking_list": [ + [ + "student IDs", + "friend.student_id" + ], + [ + "student IDs", + "Connection.student_id" + ], + [ + "student IDs", + "Acquaintance.student_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "friend.student_id" + ], + [ + 0, + "Connection.student_id" + ], + [ + 0, + "Acquaintance.student_id" + ] + ], + "linking_list_col": [ + [ + "friend.student_id", + "connection.student_id" + ], + [ + "friend.student_id", + "acquaintance.student_id" + ], + [ + "connection.student_id", + "acquaintance.student_id" + ], + [ + "friend.friend_id", + "connection.friend_id" + ], + [ + "friend.friend_id", + "acquaintance.friend_id" + ], + [ + "connection.friend_id", + "acquaintance.friend_id" + ] + ] + }, + { + "question": "how many friends does each #student# have?", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Connection": [ + "student_id", + "friend_id" + ], + "Acquaintance": [ + "student_id", + "friend_id" + ] + }, + "linking_list": [ + [ + "student", + "friend.student_id" + ], + [ + "student", + "Connection.student_id" + ], + [ + "student", + "Acquaintance.student_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "friend.student_id" + ], + [ + 0, + "Connection.student_id" + ], + [ + 0, + "Acquaintance.student_id" + ] + ], + "linking_list_col": [ + [ + "friend.student_id", + "connection.student_id" + ], + [ + "friend.student_id", + "acquaintance.student_id" + ], + [ + "connection.student_id", + "acquaintance.student_id" + ], + [ + "friend.friend_id", + "connection.friend_id" + ], + [ + "friend.friend_id", + "acquaintance.friend_id" + ], + [ + "connection.friend_id", + "acquaintance.friend_id" + ] + ] + }, + { + "question": "show #ids of all students# who do not have any friends.", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "linking_list": [ + [ + "ids of all students", + "highschooler.id" + ], + [ + "ids of all students", + "Student.id" + ], + [ + "ids of all students", + "Teenager.id" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.id" + ], + [ + 0, + "Student.id" + ], + [ + 0, + "Teenager.id" + ] + ], + "linking_list_col": [ + [ + "highschooler.id", + "student.id" + ], + [ + "highschooler.id", + "teenager.id" + ], + [ + "student.id", + "teenager.id" + ], + [ + "highschooler.name", + "student.name" + ], + [ + "highschooler.name", + "teenager.name" + ], + [ + "student.name", + "teenager.name" + ], + [ + "highschooler.grade", + "student.grade" + ], + [ + "highschooler.grade", + "teenager.grade" + ], + [ + "student.grade", + "teenager.grade" + ] + ] + }, + { + "question": "what are the #ids of high school students# who do not have friends?", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "linking_list": [ + [ + "ids of high school students", + "highschooler.id" + ], + [ + "ids of high school students", + "Student.id" + ], + [ + "ids of high school students", + "Teenager.id" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.id" + ], + [ + 0, + "Student.id" + ], + [ + 0, + "Teenager.id" + ] + ], + "linking_list_col": [ + [ + "highschooler.id", + "student.id" + ], + [ + "highschooler.id", + "teenager.id" + ], + [ + "student.id", + "teenager.id" + ], + [ + "highschooler.name", + "student.name" + ], + [ + "highschooler.name", + "teenager.name" + ], + [ + "student.name", + "teenager.name" + ], + [ + "highschooler.grade", + "student.grade" + ], + [ + "highschooler.grade", + "teenager.grade" + ], + [ + "student.grade", + "teenager.grade" + ] + ] + }, + { + "question": "count the #number of likes for each student id# .", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Preferences": [ + "student_id", + "liked_id" + ], + "Favourites": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "number of likes for each student id", + "likes.student_id" + ], + [ + "number of likes for each student id", + "Preferences.student_id" + ], + [ + "number of likes for each student id", + "Favourites.student_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "likes.student_id" + ], + [ + 0, + "Preferences.student_id" + ], + [ + 0, + "Favourites.student_id" + ] + ], + "linking_list_col": [ + [ + "likes.student_id", + "preferences.student_id" + ], + [ + "likes.student_id", + "favourites.student_id" + ], + [ + "preferences.student_id", + "favourites.student_id" + ], + [ + "likes.liked_id", + "preferences.liked_id" + ], + [ + "likes.liked_id", + "favourites.liked_id" + ], + [ + "preferences.liked_id", + "favourites.liked_id" + ] + ] + }, + { + "question": "which #states# have both owners and professionals living there?", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "Guardians": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "Caretakers": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ] + }, + "linking_list": [ + [ + "states", + "owners.state" + ], + [ + "states", + "Guardians.state" + ], + [ + "states", + "Caretakers.state" + ] + ], + "linking_list_idx": [ + [ + 0, + "owners.state" + ], + [ + 0, + "Guardians.state" + ], + [ + 0, + "Caretakers.state" + ] + ], + "linking_list_col": [ + [ + "owners.owner_id", + "guardians.owner_id" + ], + [ + "owners.owner_id", + "caretakers.owner_id" + ], + [ + "guardians.owner_id", + "caretakers.owner_id" + ], + [ + "owners.first_name", + "guardians.first_name" + ], + [ + "owners.first_name", + "caretakers.first_name" + ], + [ + "guardians.first_name", + "caretakers.first_name" + ], + [ + "owners.last_name", + "guardians.last_name" + ], + [ + "owners.last_name", + "caretakers.last_name" + ], + [ + "guardians.last_name", + "caretakers.last_name" + ], + [ + "owners.street", + "guardians.street" + ], + [ + "owners.street", + "caretakers.street" + ], + [ + "guardians.street", + "caretakers.street" + ], + [ + "owners.city", + "guardians.city" + ], + [ + "owners.city", + "caretakers.city" + ], + [ + "guardians.city", + "caretakers.city" + ], + [ + "owners.state", + "guardians.state" + ], + [ + "owners.state", + "caretakers.state" + ], + [ + "guardians.state", + "caretakers.state" + ], + [ + "owners.zip_code", + "guardians.zip_code" + ], + [ + "owners.zip_code", + "caretakers.zip_code" + ], + [ + "guardians.zip_code", + "caretakers.zip_code" + ], + [ + "owners.email_address", + "guardians.email_address" + ], + [ + "owners.email_address", + "caretakers.email_address" + ], + [ + "guardians.email_address", + "caretakers.email_address" + ], + [ + "owners.home_phone", + "guardians.home_phone" + ], + [ + "owners.home_phone", + "caretakers.home_phone" + ], + [ + "guardians.home_phone", + "caretakers.home_phone" + ], + [ + "owners.cell_number", + "guardians.cell_number" + ], + [ + "owners.cell_number", + "caretakers.cell_number" + ], + [ + "guardians.cell_number", + "caretakers.cell_number" + ] + ] + }, + { + "question": "find the #states# where both owners and professionals live.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "Guardians": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "Caretakers": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ] + }, + "linking_list": [ + [ + "states", + "owners.state" + ], + [ + "states", + "Guardians.state" + ], + [ + "states", + "Caretakers.state" + ] + ], + "linking_list_idx": [ + [ + 0, + "owners.state" + ], + [ + 0, + "Guardians.state" + ], + [ + 0, + "Caretakers.state" + ] + ], + "linking_list_col": [ + [ + "owners.owner_id", + "guardians.owner_id" + ], + [ + "owners.owner_id", + "caretakers.owner_id" + ], + [ + "guardians.owner_id", + "caretakers.owner_id" + ], + [ + "owners.first_name", + "guardians.first_name" + ], + [ + "owners.first_name", + "caretakers.first_name" + ], + [ + "guardians.first_name", + "caretakers.first_name" + ], + [ + "owners.last_name", + "guardians.last_name" + ], + [ + "owners.last_name", + "caretakers.last_name" + ], + [ + "guardians.last_name", + "caretakers.last_name" + ], + [ + "owners.street", + "guardians.street" + ], + [ + "owners.street", + "caretakers.street" + ], + [ + "guardians.street", + "caretakers.street" + ], + [ + "owners.city", + "guardians.city" + ], + [ + "owners.city", + "caretakers.city" + ], + [ + "guardians.city", + "caretakers.city" + ], + [ + "owners.state", + "guardians.state" + ], + [ + "owners.state", + "caretakers.state" + ], + [ + "guardians.state", + "caretakers.state" + ], + [ + "owners.zip_code", + "guardians.zip_code" + ], + [ + "owners.zip_code", + "caretakers.zip_code" + ], + [ + "guardians.zip_code", + "caretakers.zip_code" + ], + [ + "owners.email_address", + "guardians.email_address" + ], + [ + "owners.email_address", + "caretakers.email_address" + ], + [ + "guardians.email_address", + "caretakers.email_address" + ], + [ + "owners.home_phone", + "guardians.home_phone" + ], + [ + "owners.home_phone", + "caretakers.home_phone" + ], + [ + "guardians.home_phone", + "caretakers.home_phone" + ], + [ + "owners.cell_number", + "guardians.cell_number" + ], + [ + "owners.cell_number", + "caretakers.cell_number" + ], + [ + "guardians.cell_number", + "caretakers.cell_number" + ] + ] + }, + { + "question": "give me the #description of the treatment type# whose #total cost# is the lowest.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "procedures": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "therapies": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "description of the treatment type", + "treatment_types.treatment_type_description" + ], + [ + "total cost", + "treatments.cost_of_treatment" + ], + [ + "total cost", + "procedures.cost_of_treatment" + ], + [ + "total cost", + "therapies.cost_of_treatment" + ] + ], + "linking_list_idx": [ + [ + 0, + "treatment_types.treatment_type_description" + ], + [ + 1, + "treatments.cost_of_treatment" + ], + [ + 1, + "procedures.cost_of_treatment" + ], + [ + 1, + "therapies.cost_of_treatment" + ] + ], + "linking_list_col": [ + [ + "treatments.treatment_id", + "procedures.treatment_id" + ], + [ + "treatments.treatment_id", + "therapies.treatment_id" + ], + [ + "procedures.treatment_id", + "therapies.treatment_id" + ], + [ + "treatments.dog_id", + "procedures.dog_id" + ], + [ + "treatments.dog_id", + "therapies.dog_id" + ], + [ + "procedures.dog_id", + "therapies.dog_id" + ], + [ + "treatments.professional_id", + "procedures.professional_id" + ], + [ + "treatments.professional_id", + "therapies.professional_id" + ], + [ + "procedures.professional_id", + "therapies.professional_id" + ], + [ + "treatments.treatment_type_code", + "procedures.treatment_type_code" + ], + [ + "treatments.treatment_type_code", + "therapies.treatment_type_code" + ], + [ + "procedures.treatment_type_code", + "therapies.treatment_type_code" + ], + [ + "treatments.date_of_treatment", + "procedures.date_of_treatment" + ], + [ + "treatments.date_of_treatment", + "therapies.date_of_treatment" + ], + [ + "procedures.date_of_treatment", + "therapies.date_of_treatment" + ], + [ + "treatments.cost_of_treatment", + "procedures.cost_of_treatment" + ], + [ + "treatments.cost_of_treatment", + "therapies.cost_of_treatment" + ], + [ + "procedures.cost_of_treatment", + "therapies.cost_of_treatment" + ] + ] + }, + { + "question": "which owner has paid the largest #amount of money# in total for their dogs? show the #owner id# and #zip code# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "procedures": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "therapies": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "amount of money", + "treatments.cost_of_treatment" + ], + [ + "amount of money", + "procedures.cost_of_treatment" + ], + [ + "amount of money", + "therapies.cost_of_treatment" + ], + [ + "owner id", + "owners.owner_id" + ], + [ + "zip code", + "owners.zip_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "treatments.cost_of_treatment" + ], + [ + 0, + "procedures.cost_of_treatment" + ], + [ + 0, + "therapies.cost_of_treatment" + ], + [ + 1, + "owners.owner_id" + ], + [ + 2, + "owners.zip_code" + ] + ], + "linking_list_col": [ + [ + "treatments.treatment_id", + "procedures.treatment_id" + ], + [ + "treatments.treatment_id", + "therapies.treatment_id" + ], + [ + "procedures.treatment_id", + "therapies.treatment_id" + ], + [ + "treatments.dog_id", + "procedures.dog_id" + ], + [ + "treatments.dog_id", + "therapies.dog_id" + ], + [ + "procedures.dog_id", + "therapies.dog_id" + ], + [ + "treatments.professional_id", + "procedures.professional_id" + ], + [ + "treatments.professional_id", + "therapies.professional_id" + ], + [ + "procedures.professional_id", + "therapies.professional_id" + ], + [ + "treatments.treatment_type_code", + "procedures.treatment_type_code" + ], + [ + "treatments.treatment_type_code", + "therapies.treatment_type_code" + ], + [ + "procedures.treatment_type_code", + "therapies.treatment_type_code" + ], + [ + "treatments.date_of_treatment", + "procedures.date_of_treatment" + ], + [ + "treatments.date_of_treatment", + "therapies.date_of_treatment" + ], + [ + "procedures.date_of_treatment", + "therapies.date_of_treatment" + ], + [ + "treatments.cost_of_treatment", + "procedures.cost_of_treatment" + ], + [ + "treatments.cost_of_treatment", + "therapies.cost_of_treatment" + ], + [ + "procedures.cost_of_treatment", + "therapies.cost_of_treatment" + ] + ] + }, + { + "question": "find the #owner id# and #zip code# of the owner who spent the most #money# in total for his or her dogs.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "procedures": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "therapies": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "owner id", + "owners.owner_id" + ], + [ + "zip code", + "owners.zip_code" + ], + [ + "money", + "treatments.cost_of_treatment" + ], + [ + "money", + "procedures.cost_of_treatment" + ], + [ + "money", + "therapies.cost_of_treatment" + ] + ], + "linking_list_idx": [ + [ + 0, + "owners.owner_id" + ], + [ + 1, + "owners.zip_code" + ], + [ + 2, + "treatments.cost_of_treatment" + ], + [ + 2, + "procedures.cost_of_treatment" + ], + [ + 2, + "therapies.cost_of_treatment" + ] + ], + "linking_list_col": [ + [ + "treatments.treatment_id", + "procedures.treatment_id" + ], + [ + "treatments.treatment_id", + "therapies.treatment_id" + ], + [ + "procedures.treatment_id", + "therapies.treatment_id" + ], + [ + "treatments.dog_id", + "procedures.dog_id" + ], + [ + "treatments.dog_id", + "therapies.dog_id" + ], + [ + "procedures.dog_id", + "therapies.dog_id" + ], + [ + "treatments.professional_id", + "procedures.professional_id" + ], + [ + "treatments.professional_id", + "therapies.professional_id" + ], + [ + "procedures.professional_id", + "therapies.professional_id" + ], + [ + "treatments.treatment_type_code", + "procedures.treatment_type_code" + ], + [ + "treatments.treatment_type_code", + "therapies.treatment_type_code" + ], + [ + "procedures.treatment_type_code", + "therapies.treatment_type_code" + ], + [ + "treatments.date_of_treatment", + "procedures.date_of_treatment" + ], + [ + "treatments.date_of_treatment", + "therapies.date_of_treatment" + ], + [ + "procedures.date_of_treatment", + "therapies.date_of_treatment" + ], + [ + "treatments.cost_of_treatment", + "procedures.cost_of_treatment" + ], + [ + "treatments.cost_of_treatment", + "therapies.cost_of_treatment" + ], + [ + "procedures.cost_of_treatment", + "therapies.cost_of_treatment" + ] + ] + }, + { + "question": "find the #id# and #cell phone of the professionals# who operate two or more #types of treatments# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "procedures": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "therapies": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "id", + "professionals.professional_id" + ], + [ + "cell phone of the professionals", + "professionals.cell_number" + ], + [ + "types of treatments", + "treatments.treatment_type_code" + ], + [ + "types of treatments", + "procedures.treatment_type_code" + ], + [ + "types of treatments", + "therapies.treatment_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "professionals.professional_id" + ], + [ + 1, + "professionals.cell_number" + ], + [ + 2, + "treatments.treatment_type_code" + ], + [ + 2, + "procedures.treatment_type_code" + ], + [ + 2, + "therapies.treatment_type_code" + ] + ], + "linking_list_col": [ + [ + "treatments.treatment_id", + "procedures.treatment_id" + ], + [ + "treatments.treatment_id", + "therapies.treatment_id" + ], + [ + "procedures.treatment_id", + "therapies.treatment_id" + ], + [ + "treatments.dog_id", + "procedures.dog_id" + ], + [ + "treatments.dog_id", + "therapies.dog_id" + ], + [ + "procedures.dog_id", + "therapies.dog_id" + ], + [ + "treatments.professional_id", + "procedures.professional_id" + ], + [ + "treatments.professional_id", + "therapies.professional_id" + ], + [ + "procedures.professional_id", + "therapies.professional_id" + ], + [ + "treatments.treatment_type_code", + "procedures.treatment_type_code" + ], + [ + "treatments.treatment_type_code", + "therapies.treatment_type_code" + ], + [ + "procedures.treatment_type_code", + "therapies.treatment_type_code" + ], + [ + "treatments.date_of_treatment", + "procedures.date_of_treatment" + ], + [ + "treatments.date_of_treatment", + "therapies.date_of_treatment" + ], + [ + "procedures.date_of_treatment", + "therapies.date_of_treatment" + ], + [ + "treatments.cost_of_treatment", + "procedures.cost_of_treatment" + ], + [ + "treatments.cost_of_treatment", + "therapies.cost_of_treatment" + ], + [ + "procedures.cost_of_treatment", + "therapies.cost_of_treatment" + ] + ] + }, + { + "question": "what are the #first name# and #last name# of the professionals who have done #treatment with cost# below average?", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "procedures": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "therapies": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "first name", + "professionals.first_name" + ], + [ + "last name", + "professionals.last_name" + ], + [ + "treatment with cost", + "treatments.cost_of_treatment" + ], + [ + "treatment with cost", + "procedures.cost_of_treatment" + ], + [ + "treatment with cost", + "therapies.cost_of_treatment" + ] + ], + "linking_list_idx": [ + [ + 0, + "professionals.first_name" + ], + [ + 1, + "professionals.last_name" + ], + [ + 2, + "treatments.cost_of_treatment" + ], + [ + 2, + "procedures.cost_of_treatment" + ], + [ + 2, + "therapies.cost_of_treatment" + ] + ], + "linking_list_col": [ + [ + "treatments.treatment_id", + "procedures.treatment_id" + ], + [ + "treatments.treatment_id", + "therapies.treatment_id" + ], + [ + "procedures.treatment_id", + "therapies.treatment_id" + ], + [ + "treatments.dog_id", + "procedures.dog_id" + ], + [ + "treatments.dog_id", + "therapies.dog_id" + ], + [ + "procedures.dog_id", + "therapies.dog_id" + ], + [ + "treatments.professional_id", + "procedures.professional_id" + ], + [ + "treatments.professional_id", + "therapies.professional_id" + ], + [ + "procedures.professional_id", + "therapies.professional_id" + ], + [ + "treatments.treatment_type_code", + "procedures.treatment_type_code" + ], + [ + "treatments.treatment_type_code", + "therapies.treatment_type_code" + ], + [ + "procedures.treatment_type_code", + "therapies.treatment_type_code" + ], + [ + "treatments.date_of_treatment", + "procedures.date_of_treatment" + ], + [ + "treatments.date_of_treatment", + "therapies.date_of_treatment" + ], + [ + "procedures.date_of_treatment", + "therapies.date_of_treatment" + ], + [ + "treatments.cost_of_treatment", + "procedures.cost_of_treatment" + ], + [ + "treatments.cost_of_treatment", + "therapies.cost_of_treatment" + ], + [ + "procedures.cost_of_treatment", + "therapies.cost_of_treatment" + ] + ] + }, + { + "question": "which professionals have operated a treatment that #costs# less than the average? give me theor #first names# and #last names# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "procedures": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "therapies": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "costs", + "treatments.cost_of_treatment" + ], + [ + "costs", + "procedures.cost_of_treatment" + ], + [ + "costs", + "therapies.cost_of_treatment" + ], + [ + "first names", + "professionals.first_name" + ], + [ + "last names", + "professionals.last_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "treatments.cost_of_treatment" + ], + [ + 0, + "procedures.cost_of_treatment" + ], + [ + 0, + "therapies.cost_of_treatment" + ], + [ + 1, + "professionals.first_name" + ], + [ + 2, + "professionals.last_name" + ] + ], + "linking_list_col": [ + [ + "treatments.treatment_id", + "procedures.treatment_id" + ], + [ + "treatments.treatment_id", + "therapies.treatment_id" + ], + [ + "procedures.treatment_id", + "therapies.treatment_id" + ], + [ + "treatments.dog_id", + "procedures.dog_id" + ], + [ + "treatments.dog_id", + "therapies.dog_id" + ], + [ + "procedures.dog_id", + "therapies.dog_id" + ], + [ + "treatments.professional_id", + "procedures.professional_id" + ], + [ + "treatments.professional_id", + "therapies.professional_id" + ], + [ + "procedures.professional_id", + "therapies.professional_id" + ], + [ + "treatments.treatment_type_code", + "procedures.treatment_type_code" + ], + [ + "treatments.treatment_type_code", + "therapies.treatment_type_code" + ], + [ + "procedures.treatment_type_code", + "therapies.treatment_type_code" + ], + [ + "treatments.date_of_treatment", + "procedures.date_of_treatment" + ], + [ + "treatments.date_of_treatment", + "therapies.date_of_treatment" + ], + [ + "procedures.date_of_treatment", + "therapies.date_of_treatment" + ], + [ + "treatments.cost_of_treatment", + "procedures.cost_of_treatment" + ], + [ + "treatments.cost_of_treatment", + "therapies.cost_of_treatment" + ], + [ + "procedures.cost_of_treatment", + "therapies.cost_of_treatment" + ] + ] + }, + { + "question": "list the #date of each treatment# , together with the #first name of the professional# who operated it.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "procedures": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "therapies": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "date of each treatment", + "treatments.date_of_treatment" + ], + [ + "date of each treatment", + "procedures.date_of_treatment" + ], + [ + "date of each treatment", + "therapies.date_of_treatment" + ], + [ + "first name of the professional", + "professionals.first_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "treatments.date_of_treatment" + ], + [ + 0, + "procedures.date_of_treatment" + ], + [ + 0, + "therapies.date_of_treatment" + ], + [ + 1, + "professionals.first_name" + ] + ], + "linking_list_col": [ + [ + "treatments.treatment_id", + "procedures.treatment_id" + ], + [ + "treatments.treatment_id", + "therapies.treatment_id" + ], + [ + "procedures.treatment_id", + "therapies.treatment_id" + ], + [ + "treatments.dog_id", + "procedures.dog_id" + ], + [ + "treatments.dog_id", + "therapies.dog_id" + ], + [ + "procedures.dog_id", + "therapies.dog_id" + ], + [ + "treatments.professional_id", + "procedures.professional_id" + ], + [ + "treatments.professional_id", + "therapies.professional_id" + ], + [ + "procedures.professional_id", + "therapies.professional_id" + ], + [ + "treatments.treatment_type_code", + "procedures.treatment_type_code" + ], + [ + "treatments.treatment_type_code", + "therapies.treatment_type_code" + ], + [ + "procedures.treatment_type_code", + "therapies.treatment_type_code" + ], + [ + "treatments.date_of_treatment", + "procedures.date_of_treatment" + ], + [ + "treatments.date_of_treatment", + "therapies.date_of_treatment" + ], + [ + "procedures.date_of_treatment", + "therapies.date_of_treatment" + ], + [ + "treatments.cost_of_treatment", + "procedures.cost_of_treatment" + ], + [ + "treatments.cost_of_treatment", + "therapies.cost_of_treatment" + ], + [ + "procedures.cost_of_treatment", + "therapies.cost_of_treatment" + ] + ] + }, + { + "question": "what are the #date# and the #operating professional's first name# of each treatment?", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "procedures": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "therapies": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "date", + "treatments.date_of_treatment" + ], + [ + "date", + "procedures.date_of_treatment" + ], + [ + "date", + "therapies.date_of_treatment" + ], + [ + "operating professional's first name", + "professionals.first_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "treatments.date_of_treatment" + ], + [ + 0, + "procedures.date_of_treatment" + ], + [ + 0, + "therapies.date_of_treatment" + ], + [ + 1, + "professionals.first_name" + ] + ], + "linking_list_col": [ + [ + "treatments.treatment_id", + "procedures.treatment_id" + ], + [ + "treatments.treatment_id", + "therapies.treatment_id" + ], + [ + "procedures.treatment_id", + "therapies.treatment_id" + ], + [ + "treatments.dog_id", + "procedures.dog_id" + ], + [ + "treatments.dog_id", + "therapies.dog_id" + ], + [ + "procedures.dog_id", + "therapies.dog_id" + ], + [ + "treatments.professional_id", + "procedures.professional_id" + ], + [ + "treatments.professional_id", + "therapies.professional_id" + ], + [ + "procedures.professional_id", + "therapies.professional_id" + ], + [ + "treatments.treatment_type_code", + "procedures.treatment_type_code" + ], + [ + "treatments.treatment_type_code", + "therapies.treatment_type_code" + ], + [ + "procedures.treatment_type_code", + "therapies.treatment_type_code" + ], + [ + "treatments.date_of_treatment", + "procedures.date_of_treatment" + ], + [ + "treatments.date_of_treatment", + "therapies.date_of_treatment" + ], + [ + "procedures.date_of_treatment", + "therapies.date_of_treatment" + ], + [ + "treatments.cost_of_treatment", + "procedures.cost_of_treatment" + ], + [ + "treatments.cost_of_treatment", + "therapies.cost_of_treatment" + ], + [ + "procedures.cost_of_treatment", + "therapies.cost_of_treatment" + ] + ] + }, + { + "question": "list the #cost of each treatment# and the corresponding #treatment type description# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "procedures": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "therapies": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "cost of each treatment", + "treatments.cost_of_treatment" + ], + [ + "cost of each treatment", + "procedures.cost_of_treatment" + ], + [ + "cost of each treatment", + "therapies.cost_of_treatment" + ], + [ + "treatment type description", + "treatment_types.treatment_type_description" + ] + ], + "linking_list_idx": [ + [ + 0, + "treatments.cost_of_treatment" + ], + [ + 0, + "procedures.cost_of_treatment" + ], + [ + 0, + "therapies.cost_of_treatment" + ], + [ + 1, + "treatment_types.treatment_type_description" + ] + ], + "linking_list_col": [ + [ + "treatments.treatment_id", + "procedures.treatment_id" + ], + [ + "treatments.treatment_id", + "therapies.treatment_id" + ], + [ + "procedures.treatment_id", + "therapies.treatment_id" + ], + [ + "treatments.dog_id", + "procedures.dog_id" + ], + [ + "treatments.dog_id", + "therapies.dog_id" + ], + [ + "procedures.dog_id", + "therapies.dog_id" + ], + [ + "treatments.professional_id", + "procedures.professional_id" + ], + [ + "treatments.professional_id", + "therapies.professional_id" + ], + [ + "procedures.professional_id", + "therapies.professional_id" + ], + [ + "treatments.treatment_type_code", + "procedures.treatment_type_code" + ], + [ + "treatments.treatment_type_code", + "therapies.treatment_type_code" + ], + [ + "procedures.treatment_type_code", + "therapies.treatment_type_code" + ], + [ + "treatments.date_of_treatment", + "procedures.date_of_treatment" + ], + [ + "treatments.date_of_treatment", + "therapies.date_of_treatment" + ], + [ + "procedures.date_of_treatment", + "therapies.date_of_treatment" + ], + [ + "treatments.cost_of_treatment", + "procedures.cost_of_treatment" + ], + [ + "treatments.cost_of_treatment", + "therapies.cost_of_treatment" + ], + [ + "procedures.cost_of_treatment", + "therapies.cost_of_treatment" + ] + ] + }, + { + "question": "what are the #cost# and treatment type description of each treatment?", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "procedures": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "therapies": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "cost", + "treatments.cost_of_treatment" + ], + [ + "cost", + "procedures.cost_of_treatment" + ], + [ + "cost", + "therapies.cost_of_treatment" + ] + ], + "linking_list_idx": [ + [ + 0, + "treatments.cost_of_treatment" + ], + [ + 0, + "procedures.cost_of_treatment" + ], + [ + 0, + "therapies.cost_of_treatment" + ] + ], + "linking_list_col": [ + [ + "treatments.treatment_id", + "procedures.treatment_id" + ], + [ + "treatments.treatment_id", + "therapies.treatment_id" + ], + [ + "procedures.treatment_id", + "therapies.treatment_id" + ], + [ + "treatments.dog_id", + "procedures.dog_id" + ], + [ + "treatments.dog_id", + "therapies.dog_id" + ], + [ + "procedures.dog_id", + "therapies.dog_id" + ], + [ + "treatments.professional_id", + "procedures.professional_id" + ], + [ + "treatments.professional_id", + "therapies.professional_id" + ], + [ + "procedures.professional_id", + "therapies.professional_id" + ], + [ + "treatments.treatment_type_code", + "procedures.treatment_type_code" + ], + [ + "treatments.treatment_type_code", + "therapies.treatment_type_code" + ], + [ + "procedures.treatment_type_code", + "therapies.treatment_type_code" + ], + [ + "treatments.date_of_treatment", + "procedures.date_of_treatment" + ], + [ + "treatments.date_of_treatment", + "therapies.date_of_treatment" + ], + [ + "procedures.date_of_treatment", + "therapies.date_of_treatment" + ], + [ + "treatments.cost_of_treatment", + "procedures.cost_of_treatment" + ], + [ + "treatments.cost_of_treatment", + "therapies.cost_of_treatment" + ], + [ + "procedures.cost_of_treatment", + "therapies.cost_of_treatment" + ] + ] + }, + { + "question": "list each #owner's first name# , last name, and the #size# of his for her dog.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "Canines": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "Pooches": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ] + }, + "linking_list": [ + [ + "size", + "dogs.size_code" + ], + [ + "size", + "Canines.size_code" + ], + [ + "size", + "Pooches.size_code" + ], + [ + "owner's first name", + "owners.first_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "dogs.size_code" + ], + [ + 0, + "Canines.size_code" + ], + [ + 0, + "Pooches.size_code" + ], + [ + 1, + "owners.first_name" + ] + ], + "linking_list_col": [ + [ + "dogs.dog_id", + "canines.dog_id" + ], + [ + "dogs.dog_id", + "pooches.dog_id" + ], + [ + "canines.dog_id", + "pooches.dog_id" + ], + [ + "dogs.owner_id", + "canines.owner_id" + ], + [ + "dogs.owner_id", + "pooches.owner_id" + ], + [ + "canines.owner_id", + "pooches.owner_id" + ], + [ + "dogs.abandoned_yn", + "canines.abandoned_yn" + ], + [ + "dogs.abandoned_yn", + "pooches.abandoned_yn" + ], + [ + "canines.abandoned_yn", + "pooches.abandoned_yn" + ], + [ + "dogs.breed_code", + "canines.breed_code" + ], + [ + "dogs.breed_code", + "pooches.breed_code" + ], + [ + "canines.breed_code", + "pooches.breed_code" + ], + [ + "dogs.size_code", + "canines.size_code" + ], + [ + "dogs.size_code", + "pooches.size_code" + ], + [ + "canines.size_code", + "pooches.size_code" + ], + [ + "dogs.name", + "canines.name" + ], + [ + "dogs.name", + "pooches.name" + ], + [ + "canines.name", + "pooches.name" + ], + [ + "dogs.age", + "canines.age" + ], + [ + "dogs.age", + "pooches.age" + ], + [ + "canines.age", + "pooches.age" + ], + [ + "dogs.date_of_birth", + "canines.date_of_birth" + ], + [ + "dogs.date_of_birth", + "pooches.date_of_birth" + ], + [ + "canines.date_of_birth", + "pooches.date_of_birth" + ], + [ + "dogs.gender", + "canines.gender" + ], + [ + "dogs.gender", + "pooches.gender" + ], + [ + "canines.gender", + "pooches.gender" + ], + [ + "dogs.weight", + "canines.weight" + ], + [ + "dogs.weight", + "pooches.weight" + ], + [ + "canines.weight", + "pooches.weight" + ], + [ + "dogs.date_arrived", + "canines.date_arrived" + ], + [ + "dogs.date_arrived", + "pooches.date_arrived" + ], + [ + "canines.date_arrived", + "pooches.date_arrived" + ], + [ + "dogs.date_adopted", + "canines.date_adopted" + ], + [ + "dogs.date_adopted", + "pooches.date_adopted" + ], + [ + "canines.date_adopted", + "pooches.date_adopted" + ], + [ + "dogs.date_departed", + "canines.date_departed" + ], + [ + "dogs.date_departed", + "pooches.date_departed" + ], + [ + "canines.date_departed", + "pooches.date_departed" + ] + ] + }, + { + "question": "list pairs of the #owner's first name# and the #dogs's name# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "Canines": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "Pooches": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ] + }, + "linking_list": [ + [ + "owner's first name", + "owners.first_name" + ], + [ + "dogs's name", + "dogs.name" + ], + [ + "dogs's name", + "Canines.name" + ], + [ + "dogs's name", + "Pooches.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "owners.first_name" + ], + [ + 1, + "dogs.name" + ], + [ + 1, + "Canines.name" + ], + [ + 1, + "Pooches.name" + ] + ], + "linking_list_col": [ + [ + "dogs.dog_id", + "canines.dog_id" + ], + [ + "dogs.dog_id", + "pooches.dog_id" + ], + [ + "canines.dog_id", + "pooches.dog_id" + ], + [ + "dogs.owner_id", + "canines.owner_id" + ], + [ + "dogs.owner_id", + "pooches.owner_id" + ], + [ + "canines.owner_id", + "pooches.owner_id" + ], + [ + "dogs.abandoned_yn", + "canines.abandoned_yn" + ], + [ + "dogs.abandoned_yn", + "pooches.abandoned_yn" + ], + [ + "canines.abandoned_yn", + "pooches.abandoned_yn" + ], + [ + "dogs.breed_code", + "canines.breed_code" + ], + [ + "dogs.breed_code", + "pooches.breed_code" + ], + [ + "canines.breed_code", + "pooches.breed_code" + ], + [ + "dogs.size_code", + "canines.size_code" + ], + [ + "dogs.size_code", + "pooches.size_code" + ], + [ + "canines.size_code", + "pooches.size_code" + ], + [ + "dogs.name", + "canines.name" + ], + [ + "dogs.name", + "pooches.name" + ], + [ + "canines.name", + "pooches.name" + ], + [ + "dogs.age", + "canines.age" + ], + [ + "dogs.age", + "pooches.age" + ], + [ + "canines.age", + "pooches.age" + ], + [ + "dogs.date_of_birth", + "canines.date_of_birth" + ], + [ + "dogs.date_of_birth", + "pooches.date_of_birth" + ], + [ + "canines.date_of_birth", + "pooches.date_of_birth" + ], + [ + "dogs.gender", + "canines.gender" + ], + [ + "dogs.gender", + "pooches.gender" + ], + [ + "canines.gender", + "pooches.gender" + ], + [ + "dogs.weight", + "canines.weight" + ], + [ + "dogs.weight", + "pooches.weight" + ], + [ + "canines.weight", + "pooches.weight" + ], + [ + "dogs.date_arrived", + "canines.date_arrived" + ], + [ + "dogs.date_arrived", + "pooches.date_arrived" + ], + [ + "canines.date_arrived", + "pooches.date_arrived" + ], + [ + "dogs.date_adopted", + "canines.date_adopted" + ], + [ + "dogs.date_adopted", + "pooches.date_adopted" + ], + [ + "canines.date_adopted", + "pooches.date_adopted" + ], + [ + "dogs.date_departed", + "canines.date_departed" + ], + [ + "dogs.date_departed", + "pooches.date_departed" + ], + [ + "canines.date_departed", + "pooches.date_departed" + ] + ] + }, + { + "question": "list the #names of the dogs# of the rarest #breed# and the #treatment dates# of them.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "procedures": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "therapies": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "names of the dogs", + "dogs.name" + ], + [ + "breed", + "dogs.breed_code" + ], + [ + "treatment dates", + "treatments.date_of_treatment" + ], + [ + "treatment dates", + "procedures.date_of_treatment" + ], + [ + "treatment dates", + "therapies.date_of_treatment" + ] + ], + "linking_list_idx": [ + [ + 0, + "dogs.name" + ], + [ + 1, + "dogs.breed_code" + ], + [ + 2, + "treatments.date_of_treatment" + ], + [ + 2, + "procedures.date_of_treatment" + ], + [ + 2, + "therapies.date_of_treatment" + ] + ], + "linking_list_col": [ + [ + "treatments.treatment_id", + "procedures.treatment_id" + ], + [ + "treatments.treatment_id", + "therapies.treatment_id" + ], + [ + "procedures.treatment_id", + "therapies.treatment_id" + ], + [ + "treatments.dog_id", + "procedures.dog_id" + ], + [ + "treatments.dog_id", + "therapies.dog_id" + ], + [ + "procedures.dog_id", + "therapies.dog_id" + ], + [ + "treatments.professional_id", + "procedures.professional_id" + ], + [ + "treatments.professional_id", + "therapies.professional_id" + ], + [ + "procedures.professional_id", + "therapies.professional_id" + ], + [ + "treatments.treatment_type_code", + "procedures.treatment_type_code" + ], + [ + "treatments.treatment_type_code", + "therapies.treatment_type_code" + ], + [ + "procedures.treatment_type_code", + "therapies.treatment_type_code" + ], + [ + "treatments.date_of_treatment", + "procedures.date_of_treatment" + ], + [ + "treatments.date_of_treatment", + "therapies.date_of_treatment" + ], + [ + "procedures.date_of_treatment", + "therapies.date_of_treatment" + ], + [ + "treatments.cost_of_treatment", + "procedures.cost_of_treatment" + ], + [ + "treatments.cost_of_treatment", + "therapies.cost_of_treatment" + ], + [ + "procedures.cost_of_treatment", + "therapies.cost_of_treatment" + ] + ] + }, + { + "question": "which dogs are of the rarest breed? show their #names# and #treatment dates# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "procedures": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "therapies": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "names", + "dogs.name" + ], + [ + "treatment dates", + "treatments.date_of_treatment" + ], + [ + "treatment dates", + "procedures.date_of_treatment" + ], + [ + "treatment dates", + "therapies.date_of_treatment" + ] + ], + "linking_list_idx": [ + [ + 0, + "dogs.name" + ], + [ + 1, + "treatments.date_of_treatment" + ], + [ + 1, + "procedures.date_of_treatment" + ], + [ + 1, + "therapies.date_of_treatment" + ] + ], + "linking_list_col": [ + [ + "treatments.treatment_id", + "procedures.treatment_id" + ], + [ + "treatments.treatment_id", + "therapies.treatment_id" + ], + [ + "procedures.treatment_id", + "therapies.treatment_id" + ], + [ + "treatments.dog_id", + "procedures.dog_id" + ], + [ + "treatments.dog_id", + "therapies.dog_id" + ], + [ + "procedures.dog_id", + "therapies.dog_id" + ], + [ + "treatments.professional_id", + "procedures.professional_id" + ], + [ + "treatments.professional_id", + "therapies.professional_id" + ], + [ + "procedures.professional_id", + "therapies.professional_id" + ], + [ + "treatments.treatment_type_code", + "procedures.treatment_type_code" + ], + [ + "treatments.treatment_type_code", + "therapies.treatment_type_code" + ], + [ + "procedures.treatment_type_code", + "therapies.treatment_type_code" + ], + [ + "treatments.date_of_treatment", + "procedures.date_of_treatment" + ], + [ + "treatments.date_of_treatment", + "therapies.date_of_treatment" + ], + [ + "procedures.date_of_treatment", + "therapies.date_of_treatment" + ], + [ + "treatments.cost_of_treatment", + "procedures.cost_of_treatment" + ], + [ + "treatments.cost_of_treatment", + "therapies.cost_of_treatment" + ], + [ + "procedures.cost_of_treatment", + "therapies.cost_of_treatment" + ] + ] + }, + { + "question": "which dogs are owned by someone who lives in virginia? list the #owner's first name# and the #dog's name# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "Canines": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "Pooches": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ] + }, + "linking_list": [ + [ + "owner's first name", + "owners.first_name" + ], + [ + "dog's name", + "dogs.name" + ], + [ + "dog's name", + "Canines.name" + ], + [ + "dog's name", + "Pooches.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "owners.first_name" + ], + [ + 1, + "dogs.name" + ], + [ + 1, + "Canines.name" + ], + [ + 1, + "Pooches.name" + ] + ], + "linking_list_col": [ + [ + "dogs.dog_id", + "canines.dog_id" + ], + [ + "dogs.dog_id", + "pooches.dog_id" + ], + [ + "canines.dog_id", + "pooches.dog_id" + ], + [ + "dogs.owner_id", + "canines.owner_id" + ], + [ + "dogs.owner_id", + "pooches.owner_id" + ], + [ + "canines.owner_id", + "pooches.owner_id" + ], + [ + "dogs.abandoned_yn", + "canines.abandoned_yn" + ], + [ + "dogs.abandoned_yn", + "pooches.abandoned_yn" + ], + [ + "canines.abandoned_yn", + "pooches.abandoned_yn" + ], + [ + "dogs.breed_code", + "canines.breed_code" + ], + [ + "dogs.breed_code", + "pooches.breed_code" + ], + [ + "canines.breed_code", + "pooches.breed_code" + ], + [ + "dogs.size_code", + "canines.size_code" + ], + [ + "dogs.size_code", + "pooches.size_code" + ], + [ + "canines.size_code", + "pooches.size_code" + ], + [ + "dogs.name", + "canines.name" + ], + [ + "dogs.name", + "pooches.name" + ], + [ + "canines.name", + "pooches.name" + ], + [ + "dogs.age", + "canines.age" + ], + [ + "dogs.age", + "pooches.age" + ], + [ + "canines.age", + "pooches.age" + ], + [ + "dogs.date_of_birth", + "canines.date_of_birth" + ], + [ + "dogs.date_of_birth", + "pooches.date_of_birth" + ], + [ + "canines.date_of_birth", + "pooches.date_of_birth" + ], + [ + "dogs.gender", + "canines.gender" + ], + [ + "dogs.gender", + "pooches.gender" + ], + [ + "canines.gender", + "pooches.gender" + ], + [ + "dogs.weight", + "canines.weight" + ], + [ + "dogs.weight", + "pooches.weight" + ], + [ + "canines.weight", + "pooches.weight" + ], + [ + "dogs.date_arrived", + "canines.date_arrived" + ], + [ + "dogs.date_arrived", + "pooches.date_arrived" + ], + [ + "canines.date_arrived", + "pooches.date_arrived" + ], + [ + "dogs.date_adopted", + "canines.date_adopted" + ], + [ + "dogs.date_adopted", + "pooches.date_adopted" + ], + [ + "canines.date_adopted", + "pooches.date_adopted" + ], + [ + "dogs.date_departed", + "canines.date_departed" + ], + [ + "dogs.date_departed", + "pooches.date_departed" + ], + [ + "canines.date_departed", + "pooches.date_departed" + ] + ] + }, + { + "question": "find the #first names of owners# living in #virginia# and the #names of dogs# they own.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "Canines": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "Pooches": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ] + }, + "linking_list": [ + [ + "first names of owners", + "owners.first_name" + ], + [ + "Virginia", + "owners.state" + ], + [ + "names of dogs", + "dogs.name" + ], + [ + "names of dogs", + "Canines.name" + ], + [ + "names of dogs", + "Pooches.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "owners.first_name" + ], + [ + 1, + "owners.state" + ], + [ + 2, + "dogs.name" + ], + [ + 2, + "Canines.name" + ], + [ + 2, + "Pooches.name" + ] + ], + "linking_list_col": [ + [ + "dogs.dog_id", + "canines.dog_id" + ], + [ + "dogs.dog_id", + "pooches.dog_id" + ], + [ + "canines.dog_id", + "pooches.dog_id" + ], + [ + "dogs.owner_id", + "canines.owner_id" + ], + [ + "dogs.owner_id", + "pooches.owner_id" + ], + [ + "canines.owner_id", + "pooches.owner_id" + ], + [ + "dogs.abandoned_yn", + "canines.abandoned_yn" + ], + [ + "dogs.abandoned_yn", + "pooches.abandoned_yn" + ], + [ + "canines.abandoned_yn", + "pooches.abandoned_yn" + ], + [ + "dogs.breed_code", + "canines.breed_code" + ], + [ + "dogs.breed_code", + "pooches.breed_code" + ], + [ + "canines.breed_code", + "pooches.breed_code" + ], + [ + "dogs.size_code", + "canines.size_code" + ], + [ + "dogs.size_code", + "pooches.size_code" + ], + [ + "canines.size_code", + "pooches.size_code" + ], + [ + "dogs.name", + "canines.name" + ], + [ + "dogs.name", + "pooches.name" + ], + [ + "canines.name", + "pooches.name" + ], + [ + "dogs.age", + "canines.age" + ], + [ + "dogs.age", + "pooches.age" + ], + [ + "canines.age", + "pooches.age" + ], + [ + "dogs.date_of_birth", + "canines.date_of_birth" + ], + [ + "dogs.date_of_birth", + "pooches.date_of_birth" + ], + [ + "canines.date_of_birth", + "pooches.date_of_birth" + ], + [ + "dogs.gender", + "canines.gender" + ], + [ + "dogs.gender", + "pooches.gender" + ], + [ + "canines.gender", + "pooches.gender" + ], + [ + "dogs.weight", + "canines.weight" + ], + [ + "dogs.weight", + "pooches.weight" + ], + [ + "canines.weight", + "pooches.weight" + ], + [ + "dogs.date_arrived", + "canines.date_arrived" + ], + [ + "dogs.date_arrived", + "pooches.date_arrived" + ], + [ + "canines.date_arrived", + "pooches.date_arrived" + ], + [ + "dogs.date_adopted", + "canines.date_adopted" + ], + [ + "dogs.date_adopted", + "pooches.date_adopted" + ], + [ + "canines.date_adopted", + "pooches.date_adopted" + ], + [ + "dogs.date_departed", + "canines.date_departed" + ], + [ + "dogs.date_departed", + "pooches.date_departed" + ], + [ + "canines.date_departed", + "pooches.date_departed" + ] + ] + }, + { + "question": "list the #last name of the owner# owning the #youngest dog# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "Canines": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "Pooches": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ] + }, + "linking_list": [ + [ + "last name of the owner", + "owners.last_name" + ], + [ + "youngest dog", + "dogs.age" + ], + [ + "youngest dog", + "Canines.age" + ], + [ + "youngest dog", + "Pooches.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "owners.last_name" + ], + [ + 1, + "dogs.age" + ], + [ + 1, + "Canines.age" + ], + [ + 1, + "Pooches.age" + ] + ], + "linking_list_col": [ + [ + "dogs.dog_id", + "canines.dog_id" + ], + [ + "dogs.dog_id", + "pooches.dog_id" + ], + [ + "canines.dog_id", + "pooches.dog_id" + ], + [ + "dogs.owner_id", + "canines.owner_id" + ], + [ + "dogs.owner_id", + "pooches.owner_id" + ], + [ + "canines.owner_id", + "pooches.owner_id" + ], + [ + "dogs.abandoned_yn", + "canines.abandoned_yn" + ], + [ + "dogs.abandoned_yn", + "pooches.abandoned_yn" + ], + [ + "canines.abandoned_yn", + "pooches.abandoned_yn" + ], + [ + "dogs.breed_code", + "canines.breed_code" + ], + [ + "dogs.breed_code", + "pooches.breed_code" + ], + [ + "canines.breed_code", + "pooches.breed_code" + ], + [ + "dogs.size_code", + "canines.size_code" + ], + [ + "dogs.size_code", + "pooches.size_code" + ], + [ + "canines.size_code", + "pooches.size_code" + ], + [ + "dogs.name", + "canines.name" + ], + [ + "dogs.name", + "pooches.name" + ], + [ + "canines.name", + "pooches.name" + ], + [ + "dogs.age", + "canines.age" + ], + [ + "dogs.age", + "pooches.age" + ], + [ + "canines.age", + "pooches.age" + ], + [ + "dogs.date_of_birth", + "canines.date_of_birth" + ], + [ + "dogs.date_of_birth", + "pooches.date_of_birth" + ], + [ + "canines.date_of_birth", + "pooches.date_of_birth" + ], + [ + "dogs.gender", + "canines.gender" + ], + [ + "dogs.gender", + "pooches.gender" + ], + [ + "canines.gender", + "pooches.gender" + ], + [ + "dogs.weight", + "canines.weight" + ], + [ + "dogs.weight", + "pooches.weight" + ], + [ + "canines.weight", + "pooches.weight" + ], + [ + "dogs.date_arrived", + "canines.date_arrived" + ], + [ + "dogs.date_arrived", + "pooches.date_arrived" + ], + [ + "canines.date_arrived", + "pooches.date_arrived" + ], + [ + "dogs.date_adopted", + "canines.date_adopted" + ], + [ + "dogs.date_adopted", + "pooches.date_adopted" + ], + [ + "canines.date_adopted", + "pooches.date_adopted" + ], + [ + "dogs.date_departed", + "canines.date_departed" + ], + [ + "dogs.date_departed", + "pooches.date_departed" + ], + [ + "canines.date_departed", + "pooches.date_departed" + ] + ] + }, + { + "question": "list the #emails of the professionals# who live in the #state# of hawaii or the state of wisconsin.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "Handlers": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "Caregivers": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ] + }, + "linking_list": [ + [ + "emails of the professionals", + "professionals.email_address" + ], + [ + "emails of the professionals", + "Handlers.email_address" + ], + [ + "emails of the professionals", + "Caregivers.email_address" + ], + [ + "state", + "professionals.state" + ], + [ + "state", + "Handlers.state" + ], + [ + "state", + "Caregivers.state" + ] + ], + "linking_list_idx": [ + [ + 0, + "professionals.email_address" + ], + [ + 0, + "Handlers.email_address" + ], + [ + 0, + "Caregivers.email_address" + ], + [ + 1, + "professionals.state" + ], + [ + 1, + "Handlers.state" + ], + [ + 1, + "Caregivers.state" + ] + ], + "linking_list_col": [ + [ + "professionals.professional_id", + "handlers.professional_id" + ], + [ + "professionals.professional_id", + "caregivers.professional_id" + ], + [ + "handlers.professional_id", + "caregivers.professional_id" + ], + [ + "professionals.role_code", + "handlers.role_code" + ], + [ + "professionals.role_code", + "caregivers.role_code" + ], + [ + "handlers.role_code", + "caregivers.role_code" + ], + [ + "professionals.first_name", + "handlers.first_name" + ], + [ + "professionals.first_name", + "caregivers.first_name" + ], + [ + "handlers.first_name", + "caregivers.first_name" + ], + [ + "professionals.street", + "handlers.street" + ], + [ + "professionals.street", + "caregivers.street" + ], + [ + "handlers.street", + "caregivers.street" + ], + [ + "professionals.city", + "handlers.city" + ], + [ + "professionals.city", + "caregivers.city" + ], + [ + "handlers.city", + "caregivers.city" + ], + [ + "professionals.state", + "handlers.state" + ], + [ + "professionals.state", + "caregivers.state" + ], + [ + "handlers.state", + "caregivers.state" + ], + [ + "professionals.zip_code", + "handlers.zip_code" + ], + [ + "professionals.zip_code", + "caregivers.zip_code" + ], + [ + "handlers.zip_code", + "caregivers.zip_code" + ], + [ + "professionals.last_name", + "handlers.last_name" + ], + [ + "professionals.last_name", + "caregivers.last_name" + ], + [ + "handlers.last_name", + "caregivers.last_name" + ], + [ + "professionals.email_address", + "handlers.email_address" + ], + [ + "professionals.email_address", + "caregivers.email_address" + ], + [ + "handlers.email_address", + "caregivers.email_address" + ], + [ + "professionals.home_phone", + "handlers.home_phone" + ], + [ + "professionals.home_phone", + "caregivers.home_phone" + ], + [ + "handlers.home_phone", + "caregivers.home_phone" + ], + [ + "professionals.cell_number", + "handlers.cell_number" + ], + [ + "professionals.cell_number", + "caregivers.cell_number" + ], + [ + "handlers.cell_number", + "caregivers.cell_number" + ] + ] + }, + { + "question": "what are the #emails of the professionals# living in either the #state# of hawaii or the state of wisconsin?", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "Handlers": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "Caregivers": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ] + }, + "linking_list": [ + [ + "emails of the professionals", + "professionals.email_address" + ], + [ + "emails of the professionals", + "Handlers.email_address" + ], + [ + "emails of the professionals", + "Caregivers.email_address" + ], + [ + "state", + "professionals.state" + ], + [ + "state", + "Handlers.state" + ], + [ + "state", + "Caregivers.state" + ] + ], + "linking_list_idx": [ + [ + 0, + "professionals.email_address" + ], + [ + 0, + "Handlers.email_address" + ], + [ + 0, + "Caregivers.email_address" + ], + [ + 1, + "professionals.state" + ], + [ + 1, + "Handlers.state" + ], + [ + 1, + "Caregivers.state" + ] + ], + "linking_list_col": [ + [ + "professionals.professional_id", + "handlers.professional_id" + ], + [ + "professionals.professional_id", + "caregivers.professional_id" + ], + [ + "handlers.professional_id", + "caregivers.professional_id" + ], + [ + "professionals.role_code", + "handlers.role_code" + ], + [ + "professionals.role_code", + "caregivers.role_code" + ], + [ + "handlers.role_code", + "caregivers.role_code" + ], + [ + "professionals.first_name", + "handlers.first_name" + ], + [ + "professionals.first_name", + "caregivers.first_name" + ], + [ + "handlers.first_name", + "caregivers.first_name" + ], + [ + "professionals.street", + "handlers.street" + ], + [ + "professionals.street", + "caregivers.street" + ], + [ + "handlers.street", + "caregivers.street" + ], + [ + "professionals.city", + "handlers.city" + ], + [ + "professionals.city", + "caregivers.city" + ], + [ + "handlers.city", + "caregivers.city" + ], + [ + "professionals.state", + "handlers.state" + ], + [ + "professionals.state", + "caregivers.state" + ], + [ + "handlers.state", + "caregivers.state" + ], + [ + "professionals.zip_code", + "handlers.zip_code" + ], + [ + "professionals.zip_code", + "caregivers.zip_code" + ], + [ + "handlers.zip_code", + "caregivers.zip_code" + ], + [ + "professionals.last_name", + "handlers.last_name" + ], + [ + "professionals.last_name", + "caregivers.last_name" + ], + [ + "handlers.last_name", + "caregivers.last_name" + ], + [ + "professionals.email_address", + "handlers.email_address" + ], + [ + "professionals.email_address", + "caregivers.email_address" + ], + [ + "handlers.email_address", + "caregivers.email_address" + ], + [ + "professionals.home_phone", + "handlers.home_phone" + ], + [ + "professionals.home_phone", + "caregivers.home_phone" + ], + [ + "handlers.home_phone", + "caregivers.home_phone" + ], + [ + "professionals.cell_number", + "handlers.cell_number" + ], + [ + "professionals.cell_number", + "caregivers.cell_number" + ], + [ + "handlers.cell_number", + "caregivers.cell_number" + ] + ] + }, + { + "question": "which professionals live in a #city# containing the substring 'west'? list his or her #role# , #street# , city and #state# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "Handlers": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "Caregivers": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ] + }, + "linking_list": [ + [ + "city", + "professionals.city" + ], + [ + "city", + "Handlers.city" + ], + [ + "city", + "Caregivers.city" + ], + [ + "role", + "professionals.role_code" + ], + [ + "role", + "Handlers.role_code" + ], + [ + "role", + "Caregivers.role_code" + ], + [ + "street", + "professionals.street" + ], + [ + "street", + "Handlers.street" + ], + [ + "street", + "Caregivers.street" + ], + [ + "state", + "professionals.state" + ], + [ + "state", + "Handlers.state" + ], + [ + "state", + "Caregivers.state" + ] + ], + "linking_list_idx": [ + [ + 0, + "professionals.city" + ], + [ + 0, + "Handlers.city" + ], + [ + 0, + "Caregivers.city" + ], + [ + 1, + "professionals.role_code" + ], + [ + 1, + "Handlers.role_code" + ], + [ + 1, + "Caregivers.role_code" + ], + [ + 2, + "professionals.street" + ], + [ + 2, + "Handlers.street" + ], + [ + 2, + "Caregivers.street" + ], + [ + 3, + "professionals.state" + ], + [ + 3, + "Handlers.state" + ], + [ + 3, + "Caregivers.state" + ] + ], + "linking_list_col": [ + [ + "professionals.professional_id", + "handlers.professional_id" + ], + [ + "professionals.professional_id", + "caregivers.professional_id" + ], + [ + "handlers.professional_id", + "caregivers.professional_id" + ], + [ + "professionals.role_code", + "handlers.role_code" + ], + [ + "professionals.role_code", + "caregivers.role_code" + ], + [ + "handlers.role_code", + "caregivers.role_code" + ], + [ + "professionals.first_name", + "handlers.first_name" + ], + [ + "professionals.first_name", + "caregivers.first_name" + ], + [ + "handlers.first_name", + "caregivers.first_name" + ], + [ + "professionals.street", + "handlers.street" + ], + [ + "professionals.street", + "caregivers.street" + ], + [ + "handlers.street", + "caregivers.street" + ], + [ + "professionals.city", + "handlers.city" + ], + [ + "professionals.city", + "caregivers.city" + ], + [ + "handlers.city", + "caregivers.city" + ], + [ + "professionals.state", + "handlers.state" + ], + [ + "professionals.state", + "caregivers.state" + ], + [ + "handlers.state", + "caregivers.state" + ], + [ + "professionals.zip_code", + "handlers.zip_code" + ], + [ + "professionals.zip_code", + "caregivers.zip_code" + ], + [ + "handlers.zip_code", + "caregivers.zip_code" + ], + [ + "professionals.last_name", + "handlers.last_name" + ], + [ + "professionals.last_name", + "caregivers.last_name" + ], + [ + "handlers.last_name", + "caregivers.last_name" + ], + [ + "professionals.email_address", + "handlers.email_address" + ], + [ + "professionals.email_address", + "caregivers.email_address" + ], + [ + "handlers.email_address", + "caregivers.email_address" + ], + [ + "professionals.home_phone", + "handlers.home_phone" + ], + [ + "professionals.home_phone", + "caregivers.home_phone" + ], + [ + "handlers.home_phone", + "caregivers.home_phone" + ], + [ + "professionals.cell_number", + "handlers.cell_number" + ], + [ + "professionals.cell_number", + "caregivers.cell_number" + ], + [ + "handlers.cell_number", + "caregivers.cell_number" + ] + ] + }, + { + "question": "find the #role# , #street# , #city# and #state of the professionals# living in a city that contains the substring 'west'.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "Handlers": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "Caregivers": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ] + }, + "linking_list": [ + [ + "role", + "professionals.role_code" + ], + [ + "role", + "Handlers.role_code" + ], + [ + "role", + "Caregivers.role_code" + ], + [ + "street", + "professionals.street" + ], + [ + "street", + "Handlers.street" + ], + [ + "street", + "Caregivers.street" + ], + [ + "city", + "professionals.city" + ], + [ + "city", + "Handlers.city" + ], + [ + "city", + "Caregivers.city" + ], + [ + "state of the professionals", + "professionals.state" + ], + [ + "state of the professionals", + "Handlers.state" + ], + [ + "state of the professionals", + "Caregivers.state" + ] + ], + "linking_list_idx": [ + [ + 0, + "professionals.role_code" + ], + [ + 0, + "Handlers.role_code" + ], + [ + 0, + "Caregivers.role_code" + ], + [ + 1, + "professionals.street" + ], + [ + 1, + "Handlers.street" + ], + [ + 1, + "Caregivers.street" + ], + [ + 2, + "professionals.city" + ], + [ + 2, + "Handlers.city" + ], + [ + 2, + "Caregivers.city" + ], + [ + 3, + "professionals.state" + ], + [ + 3, + "Handlers.state" + ], + [ + 3, + "Caregivers.state" + ] + ], + "linking_list_col": [ + [ + "professionals.professional_id", + "handlers.professional_id" + ], + [ + "professionals.professional_id", + "caregivers.professional_id" + ], + [ + "handlers.professional_id", + "caregivers.professional_id" + ], + [ + "professionals.role_code", + "handlers.role_code" + ], + [ + "professionals.role_code", + "caregivers.role_code" + ], + [ + "handlers.role_code", + "caregivers.role_code" + ], + [ + "professionals.first_name", + "handlers.first_name" + ], + [ + "professionals.first_name", + "caregivers.first_name" + ], + [ + "handlers.first_name", + "caregivers.first_name" + ], + [ + "professionals.street", + "handlers.street" + ], + [ + "professionals.street", + "caregivers.street" + ], + [ + "handlers.street", + "caregivers.street" + ], + [ + "professionals.city", + "handlers.city" + ], + [ + "professionals.city", + "caregivers.city" + ], + [ + "handlers.city", + "caregivers.city" + ], + [ + "professionals.state", + "handlers.state" + ], + [ + "professionals.state", + "caregivers.state" + ], + [ + "handlers.state", + "caregivers.state" + ], + [ + "professionals.zip_code", + "handlers.zip_code" + ], + [ + "professionals.zip_code", + "caregivers.zip_code" + ], + [ + "handlers.zip_code", + "caregivers.zip_code" + ], + [ + "professionals.last_name", + "handlers.last_name" + ], + [ + "professionals.last_name", + "caregivers.last_name" + ], + [ + "handlers.last_name", + "caregivers.last_name" + ], + [ + "professionals.email_address", + "handlers.email_address" + ], + [ + "professionals.email_address", + "caregivers.email_address" + ], + [ + "handlers.email_address", + "caregivers.email_address" + ], + [ + "professionals.home_phone", + "handlers.home_phone" + ], + [ + "professionals.home_phone", + "caregivers.home_phone" + ], + [ + "handlers.home_phone", + "caregivers.home_phone" + ], + [ + "professionals.cell_number", + "handlers.cell_number" + ], + [ + "professionals.cell_number", + "caregivers.cell_number" + ], + [ + "handlers.cell_number", + "caregivers.cell_number" + ] + ] + }, + { + "question": "which owners live in the #state# whose name contains the substring 'north'? list his #first name# , #last name# and #email# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "Guardians": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "Caretakers": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ] + }, + "linking_list": [ + [ + "state", + "owners.state" + ], + [ + "state", + "Guardians.state" + ], + [ + "state", + "Caretakers.state" + ], + [ + "first name", + "owners.first_name" + ], + [ + "first name", + "Guardians.first_name" + ], + [ + "first name", + "Caretakers.first_name" + ], + [ + "last name", + "owners.last_name" + ], + [ + "last name", + "Guardians.last_name" + ], + [ + "last name", + "Caretakers.last_name" + ], + [ + "email", + "owners.email_address" + ], + [ + "email", + "Guardians.email_address" + ], + [ + "email", + "Caretakers.email_address" + ] + ], + "linking_list_idx": [ + [ + 0, + "owners.state" + ], + [ + 0, + "Guardians.state" + ], + [ + 0, + "Caretakers.state" + ], + [ + 1, + "owners.first_name" + ], + [ + 1, + "Guardians.first_name" + ], + [ + 1, + "Caretakers.first_name" + ], + [ + 2, + "owners.last_name" + ], + [ + 2, + "Guardians.last_name" + ], + [ + 2, + "Caretakers.last_name" + ], + [ + 3, + "owners.email_address" + ], + [ + 3, + "Guardians.email_address" + ], + [ + 3, + "Caretakers.email_address" + ] + ], + "linking_list_col": [ + [ + "owners.owner_id", + "guardians.owner_id" + ], + [ + "owners.owner_id", + "caretakers.owner_id" + ], + [ + "guardians.owner_id", + "caretakers.owner_id" + ], + [ + "owners.first_name", + "guardians.first_name" + ], + [ + "owners.first_name", + "caretakers.first_name" + ], + [ + "guardians.first_name", + "caretakers.first_name" + ], + [ + "owners.last_name", + "guardians.last_name" + ], + [ + "owners.last_name", + "caretakers.last_name" + ], + [ + "guardians.last_name", + "caretakers.last_name" + ], + [ + "owners.street", + "guardians.street" + ], + [ + "owners.street", + "caretakers.street" + ], + [ + "guardians.street", + "caretakers.street" + ], + [ + "owners.city", + "guardians.city" + ], + [ + "owners.city", + "caretakers.city" + ], + [ + "guardians.city", + "caretakers.city" + ], + [ + "owners.state", + "guardians.state" + ], + [ + "owners.state", + "caretakers.state" + ], + [ + "guardians.state", + "caretakers.state" + ], + [ + "owners.zip_code", + "guardians.zip_code" + ], + [ + "owners.zip_code", + "caretakers.zip_code" + ], + [ + "guardians.zip_code", + "caretakers.zip_code" + ], + [ + "owners.email_address", + "guardians.email_address" + ], + [ + "owners.email_address", + "caretakers.email_address" + ], + [ + "guardians.email_address", + "caretakers.email_address" + ], + [ + "owners.home_phone", + "guardians.home_phone" + ], + [ + "owners.home_phone", + "caretakers.home_phone" + ], + [ + "guardians.home_phone", + "caretakers.home_phone" + ], + [ + "owners.cell_number", + "guardians.cell_number" + ], + [ + "owners.cell_number", + "caretakers.cell_number" + ], + [ + "guardians.cell_number", + "caretakers.cell_number" + ] + ] + }, + { + "question": "return the #first name# , #last name# and #email# of the owners living in a #state# whose name contains the substring 'north'.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "Guardians": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "Caretakers": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ] + }, + "linking_list": [ + [ + "first name", + "owners.first_name" + ], + [ + "first name", + "Guardians.first_name" + ], + [ + "first name", + "Caretakers.first_name" + ], + [ + "last name", + "owners.last_name" + ], + [ + "last name", + "Guardians.last_name" + ], + [ + "last name", + "Caretakers.last_name" + ], + [ + "email", + "owners.email_address" + ], + [ + "email", + "Guardians.email_address" + ], + [ + "email", + "Caretakers.email_address" + ], + [ + "state", + "owners.state" + ], + [ + "state", + "Guardians.state" + ], + [ + "state", + "Caretakers.state" + ] + ], + "linking_list_idx": [ + [ + 0, + "owners.first_name" + ], + [ + 0, + "Guardians.first_name" + ], + [ + 0, + "Caretakers.first_name" + ], + [ + 1, + "owners.last_name" + ], + [ + 1, + "Guardians.last_name" + ], + [ + 1, + "Caretakers.last_name" + ], + [ + 2, + "owners.email_address" + ], + [ + 2, + "Guardians.email_address" + ], + [ + 2, + "Caretakers.email_address" + ], + [ + 3, + "owners.state" + ], + [ + 3, + "Guardians.state" + ], + [ + 3, + "Caretakers.state" + ] + ], + "linking_list_col": [ + [ + "owners.owner_id", + "guardians.owner_id" + ], + [ + "owners.owner_id", + "caretakers.owner_id" + ], + [ + "guardians.owner_id", + "caretakers.owner_id" + ], + [ + "owners.first_name", + "guardians.first_name" + ], + [ + "owners.first_name", + "caretakers.first_name" + ], + [ + "guardians.first_name", + "caretakers.first_name" + ], + [ + "owners.last_name", + "guardians.last_name" + ], + [ + "owners.last_name", + "caretakers.last_name" + ], + [ + "guardians.last_name", + "caretakers.last_name" + ], + [ + "owners.street", + "guardians.street" + ], + [ + "owners.street", + "caretakers.street" + ], + [ + "guardians.street", + "caretakers.street" + ], + [ + "owners.city", + "guardians.city" + ], + [ + "owners.city", + "caretakers.city" + ], + [ + "guardians.city", + "caretakers.city" + ], + [ + "owners.state", + "guardians.state" + ], + [ + "owners.state", + "caretakers.state" + ], + [ + "guardians.state", + "caretakers.state" + ], + [ + "owners.zip_code", + "guardians.zip_code" + ], + [ + "owners.zip_code", + "caretakers.zip_code" + ], + [ + "guardians.zip_code", + "caretakers.zip_code" + ], + [ + "owners.email_address", + "guardians.email_address" + ], + [ + "owners.email_address", + "caretakers.email_address" + ], + [ + "guardians.email_address", + "caretakers.email_address" + ], + [ + "owners.home_phone", + "guardians.home_phone" + ], + [ + "owners.home_phone", + "caretakers.home_phone" + ], + [ + "guardians.home_phone", + "caretakers.home_phone" + ], + [ + "owners.cell_number", + "guardians.cell_number" + ], + [ + "owners.cell_number", + "caretakers.cell_number" + ], + [ + "guardians.cell_number", + "caretakers.cell_number" + ] + ] + }, + { + "question": "how many dogs have an #age# below the average?", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "Canines": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "Pooches": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ] + }, + "linking_list": [ + [ + "age", + "dogs.age" + ], + [ + "age", + "Canines.age" + ], + [ + "age", + "Pooches.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "dogs.age" + ], + [ + 0, + "Canines.age" + ], + [ + 0, + "Pooches.age" + ] + ], + "linking_list_col": [ + [ + "dogs.dog_id", + "canines.dog_id" + ], + [ + "dogs.dog_id", + "pooches.dog_id" + ], + [ + "canines.dog_id", + "pooches.dog_id" + ], + [ + "dogs.owner_id", + "canines.owner_id" + ], + [ + "dogs.owner_id", + "pooches.owner_id" + ], + [ + "canines.owner_id", + "pooches.owner_id" + ], + [ + "dogs.abandoned_yn", + "canines.abandoned_yn" + ], + [ + "dogs.abandoned_yn", + "pooches.abandoned_yn" + ], + [ + "canines.abandoned_yn", + "pooches.abandoned_yn" + ], + [ + "dogs.breed_code", + "canines.breed_code" + ], + [ + "dogs.breed_code", + "pooches.breed_code" + ], + [ + "canines.breed_code", + "pooches.breed_code" + ], + [ + "dogs.size_code", + "canines.size_code" + ], + [ + "dogs.size_code", + "pooches.size_code" + ], + [ + "canines.size_code", + "pooches.size_code" + ], + [ + "dogs.name", + "canines.name" + ], + [ + "dogs.name", + "pooches.name" + ], + [ + "canines.name", + "pooches.name" + ], + [ + "dogs.age", + "canines.age" + ], + [ + "dogs.age", + "pooches.age" + ], + [ + "canines.age", + "pooches.age" + ], + [ + "dogs.date_of_birth", + "canines.date_of_birth" + ], + [ + "dogs.date_of_birth", + "pooches.date_of_birth" + ], + [ + "canines.date_of_birth", + "pooches.date_of_birth" + ], + [ + "dogs.gender", + "canines.gender" + ], + [ + "dogs.gender", + "pooches.gender" + ], + [ + "canines.gender", + "pooches.gender" + ], + [ + "dogs.weight", + "canines.weight" + ], + [ + "dogs.weight", + "pooches.weight" + ], + [ + "canines.weight", + "pooches.weight" + ], + [ + "dogs.date_arrived", + "canines.date_arrived" + ], + [ + "dogs.date_arrived", + "pooches.date_arrived" + ], + [ + "canines.date_arrived", + "pooches.date_arrived" + ], + [ + "dogs.date_adopted", + "canines.date_adopted" + ], + [ + "dogs.date_adopted", + "pooches.date_adopted" + ], + [ + "canines.date_adopted", + "pooches.date_adopted" + ], + [ + "dogs.date_departed", + "canines.date_departed" + ], + [ + "dogs.date_departed", + "pooches.date_departed" + ], + [ + "canines.date_departed", + "pooches.date_departed" + ] + ] + }, + { + "question": "count the number of dogs of an #age# below the average.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "Canines": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "Pooches": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ] + }, + "linking_list": [ + [ + "age", + "dogs.age" + ], + [ + "age", + "Canines.age" + ], + [ + "age", + "Pooches.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "dogs.age" + ], + [ + 0, + "Canines.age" + ], + [ + 0, + "Pooches.age" + ] + ], + "linking_list_col": [ + [ + "dogs.dog_id", + "canines.dog_id" + ], + [ + "dogs.dog_id", + "pooches.dog_id" + ], + [ + "canines.dog_id", + "pooches.dog_id" + ], + [ + "dogs.owner_id", + "canines.owner_id" + ], + [ + "dogs.owner_id", + "pooches.owner_id" + ], + [ + "canines.owner_id", + "pooches.owner_id" + ], + [ + "dogs.abandoned_yn", + "canines.abandoned_yn" + ], + [ + "dogs.abandoned_yn", + "pooches.abandoned_yn" + ], + [ + "canines.abandoned_yn", + "pooches.abandoned_yn" + ], + [ + "dogs.breed_code", + "canines.breed_code" + ], + [ + "dogs.breed_code", + "pooches.breed_code" + ], + [ + "canines.breed_code", + "pooches.breed_code" + ], + [ + "dogs.size_code", + "canines.size_code" + ], + [ + "dogs.size_code", + "pooches.size_code" + ], + [ + "canines.size_code", + "pooches.size_code" + ], + [ + "dogs.name", + "canines.name" + ], + [ + "dogs.name", + "pooches.name" + ], + [ + "canines.name", + "pooches.name" + ], + [ + "dogs.age", + "canines.age" + ], + [ + "dogs.age", + "pooches.age" + ], + [ + "canines.age", + "pooches.age" + ], + [ + "dogs.date_of_birth", + "canines.date_of_birth" + ], + [ + "dogs.date_of_birth", + "pooches.date_of_birth" + ], + [ + "canines.date_of_birth", + "pooches.date_of_birth" + ], + [ + "dogs.gender", + "canines.gender" + ], + [ + "dogs.gender", + "pooches.gender" + ], + [ + "canines.gender", + "pooches.gender" + ], + [ + "dogs.weight", + "canines.weight" + ], + [ + "dogs.weight", + "pooches.weight" + ], + [ + "canines.weight", + "pooches.weight" + ], + [ + "dogs.date_arrived", + "canines.date_arrived" + ], + [ + "dogs.date_arrived", + "pooches.date_arrived" + ], + [ + "canines.date_arrived", + "pooches.date_arrived" + ], + [ + "dogs.date_adopted", + "canines.date_adopted" + ], + [ + "dogs.date_adopted", + "pooches.date_adopted" + ], + [ + "canines.date_adopted", + "pooches.date_adopted" + ], + [ + "dogs.date_departed", + "canines.date_departed" + ], + [ + "dogs.date_departed", + "pooches.date_departed" + ], + [ + "canines.date_departed", + "pooches.date_departed" + ] + ] + }, + { + "question": "show me the #cost of the most recently performed treatment# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "procedures": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "therapies": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "cost of the most recently performed treatment", + "treatments.cost_of_treatment" + ], + [ + "cost of the most recently performed treatment", + "procedures.cost_of_treatment" + ], + [ + "cost of the most recently performed treatment", + "therapies.cost_of_treatment" + ] + ], + "linking_list_idx": [ + [ + 0, + "treatments.cost_of_treatment" + ], + [ + 0, + "procedures.cost_of_treatment" + ], + [ + 0, + "therapies.cost_of_treatment" + ] + ], + "linking_list_col": [ + [ + "treatments.treatment_id", + "procedures.treatment_id" + ], + [ + "treatments.treatment_id", + "therapies.treatment_id" + ], + [ + "procedures.treatment_id", + "therapies.treatment_id" + ], + [ + "treatments.dog_id", + "procedures.dog_id" + ], + [ + "treatments.dog_id", + "therapies.dog_id" + ], + [ + "procedures.dog_id", + "therapies.dog_id" + ], + [ + "treatments.professional_id", + "procedures.professional_id" + ], + [ + "treatments.professional_id", + "therapies.professional_id" + ], + [ + "procedures.professional_id", + "therapies.professional_id" + ], + [ + "treatments.treatment_type_code", + "procedures.treatment_type_code" + ], + [ + "treatments.treatment_type_code", + "therapies.treatment_type_code" + ], + [ + "procedures.treatment_type_code", + "therapies.treatment_type_code" + ], + [ + "treatments.date_of_treatment", + "procedures.date_of_treatment" + ], + [ + "treatments.date_of_treatment", + "therapies.date_of_treatment" + ], + [ + "procedures.date_of_treatment", + "therapies.date_of_treatment" + ], + [ + "treatments.cost_of_treatment", + "procedures.cost_of_treatment" + ], + [ + "treatments.cost_of_treatment", + "therapies.cost_of_treatment" + ], + [ + "procedures.cost_of_treatment", + "therapies.cost_of_treatment" + ] + ] + }, + { + "question": "find the #number of owners# who #do not own any dogs# at this moment.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "Canines": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "Pooches": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ] + }, + "linking_list": [ + [ + "number of owners", + "owners.owner_id" + ], + [ + "do not own any dogs", + "dogs.owner_id" + ], + [ + "do not own any dogs", + "Canines.owner_id" + ], + [ + "do not own any dogs", + "Pooches.owner_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "owners.owner_id" + ], + [ + 1, + "dogs.owner_id" + ], + [ + 1, + "Canines.owner_id" + ], + [ + 1, + "Pooches.owner_id" + ] + ], + "linking_list_col": [ + [ + "dogs.dog_id", + "canines.dog_id" + ], + [ + "dogs.dog_id", + "pooches.dog_id" + ], + [ + "canines.dog_id", + "pooches.dog_id" + ], + [ + "dogs.owner_id", + "canines.owner_id" + ], + [ + "dogs.owner_id", + "pooches.owner_id" + ], + [ + "canines.owner_id", + "pooches.owner_id" + ], + [ + "dogs.abandoned_yn", + "canines.abandoned_yn" + ], + [ + "dogs.abandoned_yn", + "pooches.abandoned_yn" + ], + [ + "canines.abandoned_yn", + "pooches.abandoned_yn" + ], + [ + "dogs.breed_code", + "canines.breed_code" + ], + [ + "dogs.breed_code", + "pooches.breed_code" + ], + [ + "canines.breed_code", + "pooches.breed_code" + ], + [ + "dogs.size_code", + "canines.size_code" + ], + [ + "dogs.size_code", + "pooches.size_code" + ], + [ + "canines.size_code", + "pooches.size_code" + ], + [ + "dogs.name", + "canines.name" + ], + [ + "dogs.name", + "pooches.name" + ], + [ + "canines.name", + "pooches.name" + ], + [ + "dogs.age", + "canines.age" + ], + [ + "dogs.age", + "pooches.age" + ], + [ + "canines.age", + "pooches.age" + ], + [ + "dogs.date_of_birth", + "canines.date_of_birth" + ], + [ + "dogs.date_of_birth", + "pooches.date_of_birth" + ], + [ + "canines.date_of_birth", + "pooches.date_of_birth" + ], + [ + "dogs.gender", + "canines.gender" + ], + [ + "dogs.gender", + "pooches.gender" + ], + [ + "canines.gender", + "pooches.gender" + ], + [ + "dogs.weight", + "canines.weight" + ], + [ + "dogs.weight", + "pooches.weight" + ], + [ + "canines.weight", + "pooches.weight" + ], + [ + "dogs.date_arrived", + "canines.date_arrived" + ], + [ + "dogs.date_arrived", + "pooches.date_arrived" + ], + [ + "canines.date_arrived", + "pooches.date_arrived" + ], + [ + "dogs.date_adopted", + "canines.date_adopted" + ], + [ + "dogs.date_adopted", + "pooches.date_adopted" + ], + [ + "canines.date_adopted", + "pooches.date_adopted" + ], + [ + "dogs.date_departed", + "canines.date_departed" + ], + [ + "dogs.date_departed", + "pooches.date_departed" + ], + [ + "canines.date_departed", + "pooches.date_departed" + ] + ] + }, + { + "question": "how many professionals did not #operate any treatment# on dogs?", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "procedures": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "therapies": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "operate any treatment", + "treatments.professional_id" + ], + [ + "operate any treatment", + "procedures.professional_id" + ], + [ + "operate any treatment", + "therapies.professional_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "treatments.professional_id" + ], + [ + 0, + "procedures.professional_id" + ], + [ + 0, + "therapies.professional_id" + ] + ], + "linking_list_col": [ + [ + "treatments.treatment_id", + "procedures.treatment_id" + ], + [ + "treatments.treatment_id", + "therapies.treatment_id" + ], + [ + "procedures.treatment_id", + "therapies.treatment_id" + ], + [ + "treatments.dog_id", + "procedures.dog_id" + ], + [ + "treatments.dog_id", + "therapies.dog_id" + ], + [ + "procedures.dog_id", + "therapies.dog_id" + ], + [ + "treatments.professional_id", + "procedures.professional_id" + ], + [ + "treatments.professional_id", + "therapies.professional_id" + ], + [ + "procedures.professional_id", + "therapies.professional_id" + ], + [ + "treatments.treatment_type_code", + "procedures.treatment_type_code" + ], + [ + "treatments.treatment_type_code", + "therapies.treatment_type_code" + ], + [ + "procedures.treatment_type_code", + "therapies.treatment_type_code" + ], + [ + "treatments.date_of_treatment", + "procedures.date_of_treatment" + ], + [ + "treatments.date_of_treatment", + "therapies.date_of_treatment" + ], + [ + "procedures.date_of_treatment", + "therapies.date_of_treatment" + ], + [ + "treatments.cost_of_treatment", + "procedures.cost_of_treatment" + ], + [ + "treatments.cost_of_treatment", + "therapies.cost_of_treatment" + ], + [ + "procedures.cost_of_treatment", + "therapies.cost_of_treatment" + ] + ] + }, + { + "question": "find the number of professionals who have not #treated# any dogs.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "procedures": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "therapies": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "treated", + "treatments.professional_id" + ], + [ + "treated", + "procedures.professional_id" + ], + [ + "treated", + "therapies.professional_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "treatments.professional_id" + ], + [ + 0, + "procedures.professional_id" + ], + [ + 0, + "therapies.professional_id" + ] + ], + "linking_list_col": [ + [ + "treatments.treatment_id", + "procedures.treatment_id" + ], + [ + "treatments.treatment_id", + "therapies.treatment_id" + ], + [ + "procedures.treatment_id", + "therapies.treatment_id" + ], + [ + "treatments.dog_id", + "procedures.dog_id" + ], + [ + "treatments.dog_id", + "therapies.dog_id" + ], + [ + "procedures.dog_id", + "therapies.dog_id" + ], + [ + "treatments.professional_id", + "procedures.professional_id" + ], + [ + "treatments.professional_id", + "therapies.professional_id" + ], + [ + "procedures.professional_id", + "therapies.professional_id" + ], + [ + "treatments.treatment_type_code", + "procedures.treatment_type_code" + ], + [ + "treatments.treatment_type_code", + "therapies.treatment_type_code" + ], + [ + "procedures.treatment_type_code", + "therapies.treatment_type_code" + ], + [ + "treatments.date_of_treatment", + "procedures.date_of_treatment" + ], + [ + "treatments.date_of_treatment", + "therapies.date_of_treatment" + ], + [ + "procedures.date_of_treatment", + "therapies.date_of_treatment" + ], + [ + "treatments.cost_of_treatment", + "procedures.cost_of_treatment" + ], + [ + "treatments.cost_of_treatment", + "therapies.cost_of_treatment" + ], + [ + "procedures.cost_of_treatment", + "therapies.cost_of_treatment" + ] + ] + }, + { + "question": "list the #dog name# , #age# and #weight of the dogs# who have been abandoned? 1 stands for yes, and 0 stands for no.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "Canines": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "Pooches": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ] + }, + "linking_list": [ + [ + "dog name", + "dogs.name" + ], + [ + "dog name", + "Canines.name" + ], + [ + "dog name", + "Pooches.name" + ], + [ + "age", + "dogs.age" + ], + [ + "age", + "Canines.age" + ], + [ + "age", + "Pooches.age" + ], + [ + "weight of the dogs", + "dogs.weight" + ], + [ + "weight of the dogs", + "Canines.weight" + ], + [ + "weight of the dogs", + "Pooches.weight" + ] + ], + "linking_list_idx": [ + [ + 0, + "dogs.name" + ], + [ + 0, + "Canines.name" + ], + [ + 0, + "Pooches.name" + ], + [ + 1, + "dogs.age" + ], + [ + 1, + "Canines.age" + ], + [ + 1, + "Pooches.age" + ], + [ + 2, + "dogs.weight" + ], + [ + 2, + "Canines.weight" + ], + [ + 2, + "Pooches.weight" + ] + ], + "linking_list_col": [ + [ + "dogs.dog_id", + "canines.dog_id" + ], + [ + "dogs.dog_id", + "pooches.dog_id" + ], + [ + "canines.dog_id", + "pooches.dog_id" + ], + [ + "dogs.owner_id", + "canines.owner_id" + ], + [ + "dogs.owner_id", + "pooches.owner_id" + ], + [ + "canines.owner_id", + "pooches.owner_id" + ], + [ + "dogs.abandoned_yn", + "canines.abandoned_yn" + ], + [ + "dogs.abandoned_yn", + "pooches.abandoned_yn" + ], + [ + "canines.abandoned_yn", + "pooches.abandoned_yn" + ], + [ + "dogs.breed_code", + "canines.breed_code" + ], + [ + "dogs.breed_code", + "pooches.breed_code" + ], + [ + "canines.breed_code", + "pooches.breed_code" + ], + [ + "dogs.size_code", + "canines.size_code" + ], + [ + "dogs.size_code", + "pooches.size_code" + ], + [ + "canines.size_code", + "pooches.size_code" + ], + [ + "dogs.name", + "canines.name" + ], + [ + "dogs.name", + "pooches.name" + ], + [ + "canines.name", + "pooches.name" + ], + [ + "dogs.age", + "canines.age" + ], + [ + "dogs.age", + "pooches.age" + ], + [ + "canines.age", + "pooches.age" + ], + [ + "dogs.date_of_birth", + "canines.date_of_birth" + ], + [ + "dogs.date_of_birth", + "pooches.date_of_birth" + ], + [ + "canines.date_of_birth", + "pooches.date_of_birth" + ], + [ + "dogs.gender", + "canines.gender" + ], + [ + "dogs.gender", + "pooches.gender" + ], + [ + "canines.gender", + "pooches.gender" + ], + [ + "dogs.weight", + "canines.weight" + ], + [ + "dogs.weight", + "pooches.weight" + ], + [ + "canines.weight", + "pooches.weight" + ], + [ + "dogs.date_arrived", + "canines.date_arrived" + ], + [ + "dogs.date_arrived", + "pooches.date_arrived" + ], + [ + "canines.date_arrived", + "pooches.date_arrived" + ], + [ + "dogs.date_adopted", + "canines.date_adopted" + ], + [ + "dogs.date_adopted", + "pooches.date_adopted" + ], + [ + "canines.date_adopted", + "pooches.date_adopted" + ], + [ + "dogs.date_departed", + "canines.date_departed" + ], + [ + "dogs.date_departed", + "pooches.date_departed" + ], + [ + "canines.date_departed", + "pooches.date_departed" + ] + ] + }, + { + "question": "what are the #dog name# , #age# and #weight of the dogs# that were abandoned? note that 1 stands for yes, and 0 stands for no in the tables.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "Canines": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "Pooches": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ] + }, + "linking_list": [ + [ + "dog name", + "dogs.name" + ], + [ + "dog name", + "Canines.name" + ], + [ + "dog name", + "Pooches.name" + ], + [ + "age", + "dogs.age" + ], + [ + "age", + "Canines.age" + ], + [ + "age", + "Pooches.age" + ], + [ + "weight of the dogs", + "dogs.weight" + ], + [ + "weight of the dogs", + "Canines.weight" + ], + [ + "weight of the dogs", + "Pooches.weight" + ] + ], + "linking_list_idx": [ + [ + 0, + "dogs.name" + ], + [ + 0, + "Canines.name" + ], + [ + 0, + "Pooches.name" + ], + [ + 1, + "dogs.age" + ], + [ + 1, + "Canines.age" + ], + [ + 1, + "Pooches.age" + ], + [ + 2, + "dogs.weight" + ], + [ + 2, + "Canines.weight" + ], + [ + 2, + "Pooches.weight" + ] + ], + "linking_list_col": [ + [ + "dogs.dog_id", + "canines.dog_id" + ], + [ + "dogs.dog_id", + "pooches.dog_id" + ], + [ + "canines.dog_id", + "pooches.dog_id" + ], + [ + "dogs.owner_id", + "canines.owner_id" + ], + [ + "dogs.owner_id", + "pooches.owner_id" + ], + [ + "canines.owner_id", + "pooches.owner_id" + ], + [ + "dogs.abandoned_yn", + "canines.abandoned_yn" + ], + [ + "dogs.abandoned_yn", + "pooches.abandoned_yn" + ], + [ + "canines.abandoned_yn", + "pooches.abandoned_yn" + ], + [ + "dogs.breed_code", + "canines.breed_code" + ], + [ + "dogs.breed_code", + "pooches.breed_code" + ], + [ + "canines.breed_code", + "pooches.breed_code" + ], + [ + "dogs.size_code", + "canines.size_code" + ], + [ + "dogs.size_code", + "pooches.size_code" + ], + [ + "canines.size_code", + "pooches.size_code" + ], + [ + "dogs.name", + "canines.name" + ], + [ + "dogs.name", + "pooches.name" + ], + [ + "canines.name", + "pooches.name" + ], + [ + "dogs.age", + "canines.age" + ], + [ + "dogs.age", + "pooches.age" + ], + [ + "canines.age", + "pooches.age" + ], + [ + "dogs.date_of_birth", + "canines.date_of_birth" + ], + [ + "dogs.date_of_birth", + "pooches.date_of_birth" + ], + [ + "canines.date_of_birth", + "pooches.date_of_birth" + ], + [ + "dogs.gender", + "canines.gender" + ], + [ + "dogs.gender", + "pooches.gender" + ], + [ + "canines.gender", + "pooches.gender" + ], + [ + "dogs.weight", + "canines.weight" + ], + [ + "dogs.weight", + "pooches.weight" + ], + [ + "canines.weight", + "pooches.weight" + ], + [ + "dogs.date_arrived", + "canines.date_arrived" + ], + [ + "dogs.date_arrived", + "pooches.date_arrived" + ], + [ + "canines.date_arrived", + "pooches.date_arrived" + ], + [ + "dogs.date_adopted", + "canines.date_adopted" + ], + [ + "dogs.date_adopted", + "pooches.date_adopted" + ], + [ + "canines.date_adopted", + "pooches.date_adopted" + ], + [ + "dogs.date_departed", + "canines.date_departed" + ], + [ + "dogs.date_departed", + "pooches.date_departed" + ], + [ + "canines.date_departed", + "pooches.date_departed" + ] + ] + }, + { + "question": "list the #name of singers# in ascending order of #net worth# .", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "vocalist": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "musician": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ] + }, + "linking_list": [ + [ + "name of singers", + "singer.name" + ], + [ + "name of singers", + "vocalist.name" + ], + [ + "name of singers", + "musician.name" + ], + [ + "net worth", + "singer.net_worth_millions" + ], + [ + "net worth", + "vocalist.net_worth_millions" + ], + [ + "net worth", + "musician.net_worth_millions" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 0, + "vocalist.name" + ], + [ + 0, + "musician.name" + ], + [ + 1, + "singer.net_worth_millions" + ], + [ + 1, + "vocalist.net_worth_millions" + ], + [ + 1, + "musician.net_worth_millions" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "vocalist.singer_id" + ], + [ + "singer.singer_id", + "musician.singer_id" + ], + [ + "vocalist.singer_id", + "musician.singer_id" + ], + [ + "singer.name", + "vocalist.name" + ], + [ + "singer.name", + "musician.name" + ], + [ + "vocalist.name", + "musician.name" + ], + [ + "singer.birth_year", + "vocalist.birth_year" + ], + [ + "singer.birth_year", + "musician.birth_year" + ], + [ + "vocalist.birth_year", + "musician.birth_year" + ], + [ + "singer.net_worth_millions", + "vocalist.net_worth_millions" + ], + [ + "singer.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "vocalist.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "singer.citizenship", + "vocalist.citizenship" + ], + [ + "singer.citizenship", + "musician.citizenship" + ], + [ + "vocalist.citizenship", + "musician.citizenship" + ] + ] + }, + { + "question": "what are the #names of singers# ordered by ascending net worth?", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "vocalist": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "musician": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ] + }, + "linking_list": [ + [ + "names of singers", + "singer.name" + ], + [ + "names of singers", + "vocalist.name" + ], + [ + "names of singers", + "musician.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 0, + "vocalist.name" + ], + [ + 0, + "musician.name" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "vocalist.singer_id" + ], + [ + "singer.singer_id", + "musician.singer_id" + ], + [ + "vocalist.singer_id", + "musician.singer_id" + ], + [ + "singer.name", + "vocalist.name" + ], + [ + "singer.name", + "musician.name" + ], + [ + "vocalist.name", + "musician.name" + ], + [ + "singer.birth_year", + "vocalist.birth_year" + ], + [ + "singer.birth_year", + "musician.birth_year" + ], + [ + "vocalist.birth_year", + "musician.birth_year" + ], + [ + "singer.net_worth_millions", + "vocalist.net_worth_millions" + ], + [ + "singer.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "vocalist.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "singer.citizenship", + "vocalist.citizenship" + ], + [ + "singer.citizenship", + "musician.citizenship" + ], + [ + "vocalist.citizenship", + "musician.citizenship" + ] + ] + }, + { + "question": "list the #name of singers# whose #citizenship# is not \"france\".", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "vocalist": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "musician": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ] + }, + "linking_list": [ + [ + "name of singers", + "singer.name" + ], + [ + "name of singers", + "vocalist.name" + ], + [ + "name of singers", + "musician.name" + ], + [ + "citizenship", + "singer.citizenship" + ], + [ + "citizenship", + "vocalist.citizenship" + ], + [ + "citizenship", + "musician.citizenship" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 0, + "vocalist.name" + ], + [ + 0, + "musician.name" + ], + [ + 1, + "singer.citizenship" + ], + [ + 1, + "vocalist.citizenship" + ], + [ + 1, + "musician.citizenship" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "vocalist.singer_id" + ], + [ + "singer.singer_id", + "musician.singer_id" + ], + [ + "vocalist.singer_id", + "musician.singer_id" + ], + [ + "singer.name", + "vocalist.name" + ], + [ + "singer.name", + "musician.name" + ], + [ + "vocalist.name", + "musician.name" + ], + [ + "singer.birth_year", + "vocalist.birth_year" + ], + [ + "singer.birth_year", + "musician.birth_year" + ], + [ + "vocalist.birth_year", + "musician.birth_year" + ], + [ + "singer.net_worth_millions", + "vocalist.net_worth_millions" + ], + [ + "singer.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "vocalist.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "singer.citizenship", + "vocalist.citizenship" + ], + [ + "singer.citizenship", + "musician.citizenship" + ], + [ + "vocalist.citizenship", + "musician.citizenship" + ] + ] + }, + { + "question": "what are the #names of the singers# who are not french citizens?", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "vocalist": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "musician": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ] + }, + "linking_list": [ + [ + "names of the singers", + "singer.name" + ], + [ + "names of the singers", + "vocalist.name" + ], + [ + "names of the singers", + "musician.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 0, + "vocalist.name" + ], + [ + 0, + "musician.name" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "vocalist.singer_id" + ], + [ + "singer.singer_id", + "musician.singer_id" + ], + [ + "vocalist.singer_id", + "musician.singer_id" + ], + [ + "singer.name", + "vocalist.name" + ], + [ + "singer.name", + "musician.name" + ], + [ + "vocalist.name", + "musician.name" + ], + [ + "singer.birth_year", + "vocalist.birth_year" + ], + [ + "singer.birth_year", + "musician.birth_year" + ], + [ + "vocalist.birth_year", + "musician.birth_year" + ], + [ + "singer.net_worth_millions", + "vocalist.net_worth_millions" + ], + [ + "singer.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "vocalist.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "singer.citizenship", + "vocalist.citizenship" + ], + [ + "singer.citizenship", + "musician.citizenship" + ], + [ + "vocalist.citizenship", + "musician.citizenship" + ] + ] + }, + { + "question": "show the #name of singers# whose #birth year# is either 1948 or 1949?", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "vocalist": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "musician": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ] + }, + "linking_list": [ + [ + "name of singers", + "singer.name" + ], + [ + "name of singers", + "vocalist.name" + ], + [ + "name of singers", + "musician.name" + ], + [ + "birth year", + "singer.birth_year" + ], + [ + "birth year", + "vocalist.birth_year" + ], + [ + "birth year", + "musician.birth_year" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 0, + "vocalist.name" + ], + [ + 0, + "musician.name" + ], + [ + 1, + "singer.birth_year" + ], + [ + 1, + "vocalist.birth_year" + ], + [ + 1, + "musician.birth_year" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "vocalist.singer_id" + ], + [ + "singer.singer_id", + "musician.singer_id" + ], + [ + "vocalist.singer_id", + "musician.singer_id" + ], + [ + "singer.name", + "vocalist.name" + ], + [ + "singer.name", + "musician.name" + ], + [ + "vocalist.name", + "musician.name" + ], + [ + "singer.birth_year", + "vocalist.birth_year" + ], + [ + "singer.birth_year", + "musician.birth_year" + ], + [ + "vocalist.birth_year", + "musician.birth_year" + ], + [ + "singer.net_worth_millions", + "vocalist.net_worth_millions" + ], + [ + "singer.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "vocalist.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "singer.citizenship", + "vocalist.citizenship" + ], + [ + "singer.citizenship", + "musician.citizenship" + ], + [ + "vocalist.citizenship", + "musician.citizenship" + ] + ] + }, + { + "question": "what are the #names of the singers# whose #birth years# are either 1948 or 1949?", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "vocalist": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "musician": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ] + }, + "linking_list": [ + [ + "names of the singers", + "singer.name" + ], + [ + "names of the singers", + "vocalist.name" + ], + [ + "names of the singers", + "musician.name" + ], + [ + "birth years", + "singer.birth_year" + ], + [ + "birth years", + "vocalist.birth_year" + ], + [ + "birth years", + "musician.birth_year" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 0, + "vocalist.name" + ], + [ + 0, + "musician.name" + ], + [ + 1, + "singer.birth_year" + ], + [ + 1, + "vocalist.birth_year" + ], + [ + 1, + "musician.birth_year" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "vocalist.singer_id" + ], + [ + "singer.singer_id", + "musician.singer_id" + ], + [ + "vocalist.singer_id", + "musician.singer_id" + ], + [ + "singer.name", + "vocalist.name" + ], + [ + "singer.name", + "musician.name" + ], + [ + "vocalist.name", + "musician.name" + ], + [ + "singer.birth_year", + "vocalist.birth_year" + ], + [ + "singer.birth_year", + "musician.birth_year" + ], + [ + "vocalist.birth_year", + "musician.birth_year" + ], + [ + "singer.net_worth_millions", + "vocalist.net_worth_millions" + ], + [ + "singer.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "vocalist.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "singer.citizenship", + "vocalist.citizenship" + ], + [ + "singer.citizenship", + "musician.citizenship" + ], + [ + "vocalist.citizenship", + "musician.citizenship" + ] + ] + }, + { + "question": "what is the #name of the singer# with the largest net worth?", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "vocalist": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "musician": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ] + }, + "linking_list": [ + [ + "name of the singer", + "singer.name" + ], + [ + "name of the singer", + "vocalist.name" + ], + [ + "name of the singer", + "musician.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 0, + "vocalist.name" + ], + [ + 0, + "musician.name" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "vocalist.singer_id" + ], + [ + "singer.singer_id", + "musician.singer_id" + ], + [ + "vocalist.singer_id", + "musician.singer_id" + ], + [ + "singer.name", + "vocalist.name" + ], + [ + "singer.name", + "musician.name" + ], + [ + "vocalist.name", + "musician.name" + ], + [ + "singer.birth_year", + "vocalist.birth_year" + ], + [ + "singer.birth_year", + "musician.birth_year" + ], + [ + "vocalist.birth_year", + "musician.birth_year" + ], + [ + "singer.net_worth_millions", + "vocalist.net_worth_millions" + ], + [ + "singer.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "vocalist.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "singer.citizenship", + "vocalist.citizenship" + ], + [ + "singer.citizenship", + "musician.citizenship" + ], + [ + "vocalist.citizenship", + "musician.citizenship" + ] + ] + }, + { + "question": "what is the #name of the singer# who is #worth# the most?", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "vocalist": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "musician": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ] + }, + "linking_list": [ + [ + "name of the singer", + "singer.name" + ], + [ + "name of the singer", + "vocalist.name" + ], + [ + "name of the singer", + "musician.name" + ], + [ + "worth", + "singer.net_worth_millions" + ], + [ + "worth", + "vocalist.net_worth_millions" + ], + [ + "worth", + "musician.net_worth_millions" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 0, + "vocalist.name" + ], + [ + 0, + "musician.name" + ], + [ + 1, + "singer.net_worth_millions" + ], + [ + 1, + "vocalist.net_worth_millions" + ], + [ + 1, + "musician.net_worth_millions" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "vocalist.singer_id" + ], + [ + "singer.singer_id", + "musician.singer_id" + ], + [ + "vocalist.singer_id", + "musician.singer_id" + ], + [ + "singer.name", + "vocalist.name" + ], + [ + "singer.name", + "musician.name" + ], + [ + "vocalist.name", + "musician.name" + ], + [ + "singer.birth_year", + "vocalist.birth_year" + ], + [ + "singer.birth_year", + "musician.birth_year" + ], + [ + "vocalist.birth_year", + "musician.birth_year" + ], + [ + "singer.net_worth_millions", + "vocalist.net_worth_millions" + ], + [ + "singer.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "vocalist.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "singer.citizenship", + "vocalist.citizenship" + ], + [ + "singer.citizenship", + "musician.citizenship" + ], + [ + "vocalist.citizenship", + "musician.citizenship" + ] + ] + }, + { + "question": "show different #citizenship of singers# and the number of #singers of each citizenship# .", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "vocalist": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "musician": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ] + }, + "linking_list": [ + [ + "citizenship of singers", + "singer.citizenship" + ], + [ + "citizenship of singers", + "vocalist.citizenship" + ], + [ + "citizenship of singers", + "musician.citizenship" + ], + [ + "singers of each citizenship", + "singer.citizenship" + ], + [ + "singers of each citizenship", + "vocalist.citizenship" + ], + [ + "singers of each citizenship", + "musician.citizenship" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.citizenship" + ], + [ + 0, + "vocalist.citizenship" + ], + [ + 0, + "musician.citizenship" + ], + [ + 1, + "singer.citizenship" + ], + [ + 1, + "vocalist.citizenship" + ], + [ + 1, + "musician.citizenship" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "vocalist.singer_id" + ], + [ + "singer.singer_id", + "musician.singer_id" + ], + [ + "vocalist.singer_id", + "musician.singer_id" + ], + [ + "singer.name", + "vocalist.name" + ], + [ + "singer.name", + "musician.name" + ], + [ + "vocalist.name", + "musician.name" + ], + [ + "singer.birth_year", + "vocalist.birth_year" + ], + [ + "singer.birth_year", + "musician.birth_year" + ], + [ + "vocalist.birth_year", + "musician.birth_year" + ], + [ + "singer.net_worth_millions", + "vocalist.net_worth_millions" + ], + [ + "singer.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "vocalist.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "singer.citizenship", + "vocalist.citizenship" + ], + [ + "singer.citizenship", + "musician.citizenship" + ], + [ + "vocalist.citizenship", + "musician.citizenship" + ] + ] + }, + { + "question": "for each #citizenship# , how many singers are from that country?", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "vocalist": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "musician": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ] + }, + "linking_list": [ + [ + "citizenship", + "singer.citizenship" + ], + [ + "citizenship", + "vocalist.citizenship" + ], + [ + "citizenship", + "musician.citizenship" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.citizenship" + ], + [ + 0, + "vocalist.citizenship" + ], + [ + 0, + "musician.citizenship" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "vocalist.singer_id" + ], + [ + "singer.singer_id", + "musician.singer_id" + ], + [ + "vocalist.singer_id", + "musician.singer_id" + ], + [ + "singer.name", + "vocalist.name" + ], + [ + "singer.name", + "musician.name" + ], + [ + "vocalist.name", + "musician.name" + ], + [ + "singer.birth_year", + "vocalist.birth_year" + ], + [ + "singer.birth_year", + "musician.birth_year" + ], + [ + "vocalist.birth_year", + "musician.birth_year" + ], + [ + "singer.net_worth_millions", + "vocalist.net_worth_millions" + ], + [ + "singer.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "vocalist.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "singer.citizenship", + "vocalist.citizenship" + ], + [ + "singer.citizenship", + "musician.citizenship" + ], + [ + "vocalist.citizenship", + "musician.citizenship" + ] + ] + }, + { + "question": "please show the most common #citizenship of singers# .", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "vocalist": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "musician": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ] + }, + "linking_list": [ + [ + "citizenship of singers", + "singer.citizenship" + ], + [ + "citizenship of singers", + "vocalist.citizenship" + ], + [ + "citizenship of singers", + "musician.citizenship" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.citizenship" + ], + [ + 0, + "vocalist.citizenship" + ], + [ + 0, + "musician.citizenship" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "vocalist.singer_id" + ], + [ + "singer.singer_id", + "musician.singer_id" + ], + [ + "vocalist.singer_id", + "musician.singer_id" + ], + [ + "singer.name", + "vocalist.name" + ], + [ + "singer.name", + "musician.name" + ], + [ + "vocalist.name", + "musician.name" + ], + [ + "singer.birth_year", + "vocalist.birth_year" + ], + [ + "singer.birth_year", + "musician.birth_year" + ], + [ + "vocalist.birth_year", + "musician.birth_year" + ], + [ + "singer.net_worth_millions", + "vocalist.net_worth_millions" + ], + [ + "singer.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "vocalist.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "singer.citizenship", + "vocalist.citizenship" + ], + [ + "singer.citizenship", + "musician.citizenship" + ], + [ + "vocalist.citizenship", + "musician.citizenship" + ] + ] + }, + { + "question": "show different #citizenships# and the #maximum net worth of singers# of each citizenship.", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "vocalist": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "musician": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ] + }, + "linking_list": [ + [ + "citizenships", + "singer.citizenship" + ], + [ + "citizenships", + "vocalist.citizenship" + ], + [ + "citizenships", + "musician.citizenship" + ], + [ + "maximum net worth of singers", + "singer.net_worth_millions" + ], + [ + "maximum net worth of singers", + "vocalist.net_worth_millions" + ], + [ + "maximum net worth of singers", + "musician.net_worth_millions" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.citizenship" + ], + [ + 0, + "vocalist.citizenship" + ], + [ + 0, + "musician.citizenship" + ], + [ + 1, + "singer.net_worth_millions" + ], + [ + 1, + "vocalist.net_worth_millions" + ], + [ + 1, + "musician.net_worth_millions" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "vocalist.singer_id" + ], + [ + "singer.singer_id", + "musician.singer_id" + ], + [ + "vocalist.singer_id", + "musician.singer_id" + ], + [ + "singer.name", + "vocalist.name" + ], + [ + "singer.name", + "musician.name" + ], + [ + "vocalist.name", + "musician.name" + ], + [ + "singer.birth_year", + "vocalist.birth_year" + ], + [ + "singer.birth_year", + "musician.birth_year" + ], + [ + "vocalist.birth_year", + "musician.birth_year" + ], + [ + "singer.net_worth_millions", + "vocalist.net_worth_millions" + ], + [ + "singer.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "vocalist.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "singer.citizenship", + "vocalist.citizenship" + ], + [ + "singer.citizenship", + "musician.citizenship" + ], + [ + "vocalist.citizenship", + "musician.citizenship" + ] + ] + }, + { + "question": "for each #citizenship# , what is the maximum net worth?", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "vocalist": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "musician": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ] + }, + "linking_list": [ + [ + "citizenship", + "singer.citizenship" + ], + [ + "citizenship", + "vocalist.citizenship" + ], + [ + "citizenship", + "musician.citizenship" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.citizenship" + ], + [ + 0, + "vocalist.citizenship" + ], + [ + 0, + "musician.citizenship" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "vocalist.singer_id" + ], + [ + "singer.singer_id", + "musician.singer_id" + ], + [ + "vocalist.singer_id", + "musician.singer_id" + ], + [ + "singer.name", + "vocalist.name" + ], + [ + "singer.name", + "musician.name" + ], + [ + "vocalist.name", + "musician.name" + ], + [ + "singer.birth_year", + "vocalist.birth_year" + ], + [ + "singer.birth_year", + "musician.birth_year" + ], + [ + "vocalist.birth_year", + "musician.birth_year" + ], + [ + "singer.net_worth_millions", + "vocalist.net_worth_millions" + ], + [ + "singer.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "vocalist.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "singer.citizenship", + "vocalist.citizenship" + ], + [ + "singer.citizenship", + "musician.citizenship" + ], + [ + "vocalist.citizenship", + "musician.citizenship" + ] + ] + }, + { + "question": "show #titles of songs# and #names of singers# .", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "track": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "composition": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "linking_list": [ + [ + "titles of songs", + "song.title" + ], + [ + "titles of songs", + "track.title" + ], + [ + "titles of songs", + "composition.title" + ], + [ + "names of singers", + "singer.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "song.title" + ], + [ + 0, + "track.title" + ], + [ + 0, + "composition.title" + ], + [ + 1, + "singer.name" + ] + ], + "linking_list_col": [ + [ + "song.song_id", + "track.song_id" + ], + [ + "song.song_id", + "composition.song_id" + ], + [ + "track.song_id", + "composition.song_id" + ], + [ + "song.title", + "track.title" + ], + [ + "song.title", + "composition.title" + ], + [ + "track.title", + "composition.title" + ], + [ + "song.singer_id", + "track.singer_id" + ], + [ + "song.singer_id", + "composition.singer_id" + ], + [ + "track.singer_id", + "composition.singer_id" + ], + [ + "song.sales", + "track.sales" + ], + [ + "song.sales", + "composition.sales" + ], + [ + "track.sales", + "composition.sales" + ], + [ + "song.highest_position", + "track.highest_position" + ], + [ + "song.highest_position", + "composition.highest_position" + ], + [ + "track.highest_position", + "composition.highest_position" + ] + ] + }, + { + "question": "what are the #song titles# and singer names?", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "track": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "composition": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "linking_list": [ + [ + "song titles", + "song.title" + ], + [ + "song titles", + "track.title" + ], + [ + "song titles", + "composition.title" + ] + ], + "linking_list_idx": [ + [ + 0, + "song.title" + ], + [ + 0, + "track.title" + ], + [ + 0, + "composition.title" + ] + ], + "linking_list_col": [ + [ + "song.song_id", + "track.song_id" + ], + [ + "song.song_id", + "composition.song_id" + ], + [ + "track.song_id", + "composition.song_id" + ], + [ + "song.title", + "track.title" + ], + [ + "song.title", + "composition.title" + ], + [ + "track.title", + "composition.title" + ], + [ + "song.singer_id", + "track.singer_id" + ], + [ + "song.singer_id", + "composition.singer_id" + ], + [ + "track.singer_id", + "composition.singer_id" + ], + [ + "song.sales", + "track.sales" + ], + [ + "song.sales", + "composition.sales" + ], + [ + "track.sales", + "composition.sales" + ], + [ + "song.highest_position", + "track.highest_position" + ], + [ + "song.highest_position", + "composition.highest_position" + ], + [ + "track.highest_position", + "composition.highest_position" + ] + ] + }, + { + "question": "show distinct #names of singers# that have #songs with sales# more than 300000.", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "track": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "composition": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "linking_list": [ + [ + "names of singers", + "singer.name" + ], + [ + "songs with sales", + "song.sales" + ], + [ + "songs with sales", + "track.sales" + ], + [ + "songs with sales", + "composition.sales" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 1, + "song.sales" + ], + [ + 1, + "track.sales" + ], + [ + 1, + "composition.sales" + ] + ], + "linking_list_col": [ + [ + "song.song_id", + "track.song_id" + ], + [ + "song.song_id", + "composition.song_id" + ], + [ + "track.song_id", + "composition.song_id" + ], + [ + "song.title", + "track.title" + ], + [ + "song.title", + "composition.title" + ], + [ + "track.title", + "composition.title" + ], + [ + "song.singer_id", + "track.singer_id" + ], + [ + "song.singer_id", + "composition.singer_id" + ], + [ + "track.singer_id", + "composition.singer_id" + ], + [ + "song.sales", + "track.sales" + ], + [ + "song.sales", + "composition.sales" + ], + [ + "track.sales", + "composition.sales" + ], + [ + "song.highest_position", + "track.highest_position" + ], + [ + "song.highest_position", + "composition.highest_position" + ], + [ + "track.highest_position", + "composition.highest_position" + ] + ] + }, + { + "question": "what are the different #names of the singers# that have #sales# more than 300000?", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "track": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "composition": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "linking_list": [ + [ + "names of the singers", + "singer.name" + ], + [ + "sales", + "song.sales" + ], + [ + "sales", + "track.sales" + ], + [ + "sales", + "composition.sales" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 1, + "song.sales" + ], + [ + 1, + "track.sales" + ], + [ + 1, + "composition.sales" + ] + ], + "linking_list_col": [ + [ + "song.song_id", + "track.song_id" + ], + [ + "song.song_id", + "composition.song_id" + ], + [ + "track.song_id", + "composition.song_id" + ], + [ + "song.title", + "track.title" + ], + [ + "song.title", + "composition.title" + ], + [ + "track.title", + "composition.title" + ], + [ + "song.singer_id", + "track.singer_id" + ], + [ + "song.singer_id", + "composition.singer_id" + ], + [ + "track.singer_id", + "composition.singer_id" + ], + [ + "song.sales", + "track.sales" + ], + [ + "song.sales", + "composition.sales" + ], + [ + "track.sales", + "composition.sales" + ], + [ + "song.highest_position", + "track.highest_position" + ], + [ + "song.highest_position", + "composition.highest_position" + ], + [ + "track.highest_position", + "composition.highest_position" + ] + ] + }, + { + "question": "show the #names of singers# and the #total sales of their songs# .", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "track": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "composition": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "linking_list": [ + [ + "names of singers", + "singer.name" + ], + [ + "total sales of their songs", + "song.sales" + ], + [ + "total sales of their songs", + "track.sales" + ], + [ + "total sales of their songs", + "composition.sales" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 1, + "song.sales" + ], + [ + 1, + "track.sales" + ], + [ + 1, + "composition.sales" + ] + ], + "linking_list_col": [ + [ + "song.song_id", + "track.song_id" + ], + [ + "song.song_id", + "composition.song_id" + ], + [ + "track.song_id", + "composition.song_id" + ], + [ + "song.title", + "track.title" + ], + [ + "song.title", + "composition.title" + ], + [ + "track.title", + "composition.title" + ], + [ + "song.singer_id", + "track.singer_id" + ], + [ + "song.singer_id", + "composition.singer_id" + ], + [ + "track.singer_id", + "composition.singer_id" + ], + [ + "song.sales", + "track.sales" + ], + [ + "song.sales", + "composition.sales" + ], + [ + "track.sales", + "composition.sales" + ], + [ + "song.highest_position", + "track.highest_position" + ], + [ + "song.highest_position", + "composition.highest_position" + ], + [ + "track.highest_position", + "composition.highest_position" + ] + ] + }, + { + "question": "for each #singer name# , what is the #total sales# for their songs?", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "track": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "composition": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "linking_list": [ + [ + "singer name", + "singer.name" + ], + [ + "total sales", + "song.sales" + ], + [ + "total sales", + "track.sales" + ], + [ + "total sales", + "composition.sales" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 1, + "song.sales" + ], + [ + 1, + "track.sales" + ], + [ + 1, + "composition.sales" + ] + ], + "linking_list_col": [ + [ + "song.song_id", + "track.song_id" + ], + [ + "song.song_id", + "composition.song_id" + ], + [ + "track.song_id", + "composition.song_id" + ], + [ + "song.title", + "track.title" + ], + [ + "song.title", + "composition.title" + ], + [ + "track.title", + "composition.title" + ], + [ + "song.singer_id", + "track.singer_id" + ], + [ + "song.singer_id", + "composition.singer_id" + ], + [ + "track.singer_id", + "composition.singer_id" + ], + [ + "song.sales", + "track.sales" + ], + [ + "song.sales", + "composition.sales" + ], + [ + "track.sales", + "composition.sales" + ], + [ + "song.highest_position", + "track.highest_position" + ], + [ + "song.highest_position", + "composition.highest_position" + ], + [ + "track.highest_position", + "composition.highest_position" + ] + ] + }, + { + "question": "show the #citizenship# shared by #singers with birth year# before 1945 and after 1955.", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "vocalist": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "musician": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ] + }, + "linking_list": [ + [ + "citizenship", + "singer.citizenship" + ], + [ + "citizenship", + "vocalist.citizenship" + ], + [ + "citizenship", + "musician.citizenship" + ], + [ + "singers with birth year", + "singer.birth_year" + ], + [ + "singers with birth year", + "vocalist.birth_year" + ], + [ + "singers with birth year", + "musician.birth_year" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.citizenship" + ], + [ + 0, + "vocalist.citizenship" + ], + [ + 0, + "musician.citizenship" + ], + [ + 1, + "singer.birth_year" + ], + [ + 1, + "vocalist.birth_year" + ], + [ + 1, + "musician.birth_year" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "vocalist.singer_id" + ], + [ + "singer.singer_id", + "musician.singer_id" + ], + [ + "vocalist.singer_id", + "musician.singer_id" + ], + [ + "singer.name", + "vocalist.name" + ], + [ + "singer.name", + "musician.name" + ], + [ + "vocalist.name", + "musician.name" + ], + [ + "singer.birth_year", + "vocalist.birth_year" + ], + [ + "singer.birth_year", + "musician.birth_year" + ], + [ + "vocalist.birth_year", + "musician.birth_year" + ], + [ + "singer.net_worth_millions", + "vocalist.net_worth_millions" + ], + [ + "singer.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "vocalist.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "singer.citizenship", + "vocalist.citizenship" + ], + [ + "singer.citizenship", + "musician.citizenship" + ], + [ + "vocalist.citizenship", + "musician.citizenship" + ] + ] + }, + { + "question": "what are the #citizenships# that are shared by #singers with a birth year# before 1945 and after 1955?", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "vocalist": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "musician": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ] + }, + "linking_list": [ + [ + "citizenships", + "singer.citizenship" + ], + [ + "citizenships", + "vocalist.citizenship" + ], + [ + "citizenships", + "musician.citizenship" + ], + [ + "singers with a birth year", + "singer.birth_year" + ], + [ + "singers with a birth year", + "vocalist.birth_year" + ], + [ + "singers with a birth year", + "musician.birth_year" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.citizenship" + ], + [ + 0, + "vocalist.citizenship" + ], + [ + 0, + "musician.citizenship" + ], + [ + 1, + "singer.birth_year" + ], + [ + 1, + "vocalist.birth_year" + ], + [ + 1, + "musician.birth_year" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "vocalist.singer_id" + ], + [ + "singer.singer_id", + "musician.singer_id" + ], + [ + "vocalist.singer_id", + "musician.singer_id" + ], + [ + "singer.name", + "vocalist.name" + ], + [ + "singer.name", + "musician.name" + ], + [ + "vocalist.name", + "musician.name" + ], + [ + "singer.birth_year", + "vocalist.birth_year" + ], + [ + "singer.birth_year", + "musician.birth_year" + ], + [ + "vocalist.birth_year", + "musician.birth_year" + ], + [ + "singer.net_worth_millions", + "vocalist.net_worth_millions" + ], + [ + "singer.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "vocalist.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "singer.citizenship", + "vocalist.citizenship" + ], + [ + "singer.citizenship", + "musician.citizenship" + ], + [ + "vocalist.citizenship", + "musician.citizenship" + ] + ] + }, + { + "question": "what is the #feature# type name of feature aircon?", + "db_schema": { + "ref_feature_types": [ + "feature_type_code", + "feature_type_name" + ], + "ref_property_types": [ + "property_type_code", + "property_type_description" + ], + "other_available_features": [ + "feature_id", + "feature_type_code", + "feature_name", + "feature_description" + ], + "properties": [ + "property_id", + "property_type_code", + "date_on_market", + "date_sold", + "property_name", + "property_address", + "room_count", + "vendor_requested_price", + "buyer_offered_price", + "agreed_selling_price", + "apt_feature_1", + "apt_feature_2", + "apt_feature_3", + "fld_feature_1", + "fld_feature_2", + "fld_feature_3", + "hse_feature_1", + "hse_feature_2", + "hse_feature_3", + "oth_feature_1", + "oth_feature_2", + "oth_feature_3", + "shp_feature_1", + "shp_feature_2", + "shp_feature_3", + "other_property_details" + ], + "other_property_features": [ + "property_id", + "feature_id", + "property_feature_description" + ], + "Additional_Features": [ + "feature_id", + "feature_type_code", + "feature_name", + "feature_description" + ], + "Extra_Property_Features": [ + "feature_id", + "feature_type_code", + "feature_name", + "feature_description" + ] + }, + "linking_list": [ + [ + "feature", + "other_available_features.feature_name" + ], + [ + "feature", + "Additional_Features.feature_name" + ], + [ + "feature", + "Extra_Property_Features.feature_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "other_available_features.feature_name" + ], + [ + 0, + "Additional_Features.feature_name" + ], + [ + 0, + "Extra_Property_Features.feature_name" + ] + ], + "linking_list_col": [ + [ + "other_available_features.feature_id", + "additional_features.feature_id" + ], + [ + "other_available_features.feature_id", + "extra_property_features.feature_id" + ], + [ + "additional_features.feature_id", + "extra_property_features.feature_id" + ], + [ + "other_available_features.feature_type_code", + "additional_features.feature_type_code" + ], + [ + "other_available_features.feature_type_code", + "extra_property_features.feature_type_code" + ], + [ + "additional_features.feature_type_code", + "extra_property_features.feature_type_code" + ], + [ + "other_available_features.feature_name", + "additional_features.feature_name" + ], + [ + "other_available_features.feature_name", + "extra_property_features.feature_name" + ], + [ + "additional_features.feature_name", + "extra_property_features.feature_name" + ], + [ + "other_available_features.feature_description", + "additional_features.feature_description" + ], + [ + "other_available_features.feature_description", + "extra_property_features.feature_description" + ], + [ + "additional_features.feature_description", + "extra_property_features.feature_description" + ] + ] + }, + { + "question": "show the #property type descriptions of properties# belonging to that #code# .", + "db_schema": { + "ref_feature_types": [ + "feature_type_code", + "feature_type_name" + ], + "ref_property_types": [ + "property_type_code", + "property_type_description" + ], + "other_available_features": [ + "feature_id", + "feature_type_code", + "feature_name", + "feature_description" + ], + "properties": [ + "property_id", + "property_type_code", + "date_on_market", + "date_sold", + "property_name", + "property_address", + "room_count", + "vendor_requested_price", + "buyer_offered_price", + "agreed_selling_price", + "apt_feature_1", + "apt_feature_2", + "apt_feature_3", + "fld_feature_1", + "fld_feature_2", + "fld_feature_3", + "hse_feature_1", + "hse_feature_2", + "hse_feature_3", + "oth_feature_1", + "oth_feature_2", + "oth_feature_3", + "shp_feature_1", + "shp_feature_2", + "shp_feature_3", + "other_property_details" + ], + "other_property_features": [ + "property_id", + "feature_id", + "property_feature_description" + ], + "Estates": [ + "property_id", + "property_type_code", + "date_on_market", + "date_sold", + "property_name", + "property_address", + "room_count", + "vendor_requested_price", + "buyer_offered_price", + "agreed_selling_price", + "apt_feature_1", + "apt_feature_2", + "apt_feature_3", + "fld_feature_1", + "fld_feature_2", + "fld_feature_3", + "hse_feature_1", + "hse_feature_2", + "hse_feature_3", + "oth_feature_1", + "oth_feature_2", + "oth_feature_3", + "shp_feature_1", + "shp_feature_2", + "shp_feature_3", + "other_property_details" + ], + "Real_Estate_Listings": [ + "property_id", + "property_type_code", + "date_on_market", + "date_sold", + "property_name", + "property_address", + "room_count", + "vendor_requested_price", + "buyer_offered_price", + "agreed_selling_price", + "apt_feature_1", + "apt_feature_2", + "apt_feature_3", + "fld_feature_1", + "fld_feature_2", + "fld_feature_3", + "hse_feature_1", + "hse_feature_2", + "hse_feature_3", + "oth_feature_1", + "oth_feature_2", + "oth_feature_3", + "shp_feature_1", + "shp_feature_2", + "shp_feature_3", + "other_property_details" + ] + }, + "linking_list": [ + [ + "property type descriptions of properties", + "ref_property_types.property_type_description" + ], + [ + "code", + "properties.property_type_code" + ], + [ + "code", + "Estates.property_type_code" + ], + [ + "code", + "Real_Estate_Listings.property_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "ref_property_types.property_type_description" + ], + [ + 1, + "properties.property_type_code" + ], + [ + 1, + "Estates.property_type_code" + ], + [ + 1, + "Real_Estate_Listings.property_type_code" + ] + ], + "linking_list_col": [ + [ + "properties.property_id", + "estates.property_id" + ], + [ + "properties.property_id", + "real_estate_listings.property_id" + ], + [ + "estates.property_id", + "real_estate_listings.property_id" + ], + [ + "properties.property_type_code", + "estates.property_type_code" + ], + [ + "properties.property_type_code", + "real_estate_listings.property_type_code" + ], + [ + "estates.property_type_code", + "real_estate_listings.property_type_code" + ], + [ + "properties.date_on_market", + "estates.date_on_market" + ], + [ + "properties.date_on_market", + "real_estate_listings.date_on_market" + ], + [ + "estates.date_on_market", + "real_estate_listings.date_on_market" + ], + [ + "properties.date_sold", + "estates.date_sold" + ], + [ + "properties.date_sold", + "real_estate_listings.date_sold" + ], + [ + "estates.date_sold", + "real_estate_listings.date_sold" + ], + [ + "properties.property_name", + "estates.property_name" + ], + [ + "properties.property_name", + "real_estate_listings.property_name" + ], + [ + "estates.property_name", + "real_estate_listings.property_name" + ], + [ + "properties.property_address", + "estates.property_address" + ], + [ + "properties.property_address", + "real_estate_listings.property_address" + ], + [ + "estates.property_address", + "real_estate_listings.property_address" + ], + [ + "properties.room_count", + "estates.room_count" + ], + [ + "properties.room_count", + "real_estate_listings.room_count" + ], + [ + "estates.room_count", + "real_estate_listings.room_count" + ], + [ + "properties.vendor_requested_price", + "estates.vendor_requested_price" + ], + [ + "properties.vendor_requested_price", + "real_estate_listings.vendor_requested_price" + ], + [ + "estates.vendor_requested_price", + "real_estate_listings.vendor_requested_price" + ], + [ + "properties.buyer_offered_price", + "estates.buyer_offered_price" + ], + [ + "properties.buyer_offered_price", + "real_estate_listings.buyer_offered_price" + ], + [ + "estates.buyer_offered_price", + "real_estate_listings.buyer_offered_price" + ], + [ + "properties.agreed_selling_price", + "estates.agreed_selling_price" + ], + [ + "properties.agreed_selling_price", + "real_estate_listings.agreed_selling_price" + ], + [ + "estates.agreed_selling_price", + "real_estate_listings.agreed_selling_price" + ], + [ + "properties.apt_feature_1", + "estates.apt_feature_1" + ], + [ + "properties.apt_feature_1", + "real_estate_listings.apt_feature_1" + ], + [ + "estates.apt_feature_1", + "real_estate_listings.apt_feature_1" + ], + [ + "properties.apt_feature_2", + "estates.apt_feature_2" + ], + [ + "properties.apt_feature_2", + "real_estate_listings.apt_feature_2" + ], + [ + "estates.apt_feature_2", + "real_estate_listings.apt_feature_2" + ], + [ + "properties.apt_feature_3", + "estates.apt_feature_3" + ], + [ + "properties.apt_feature_3", + "real_estate_listings.apt_feature_3" + ], + [ + "estates.apt_feature_3", + "real_estate_listings.apt_feature_3" + ], + [ + "properties.fld_feature_1", + "estates.fld_feature_1" + ], + [ + "properties.fld_feature_1", + "real_estate_listings.fld_feature_1" + ], + [ + "estates.fld_feature_1", + "real_estate_listings.fld_feature_1" + ], + [ + "properties.fld_feature_2", + "estates.fld_feature_2" + ], + [ + "properties.fld_feature_2", + "real_estate_listings.fld_feature_2" + ], + [ + "estates.fld_feature_2", + "real_estate_listings.fld_feature_2" + ], + [ + "properties.fld_feature_3", + "estates.fld_feature_3" + ], + [ + "properties.fld_feature_3", + "real_estate_listings.fld_feature_3" + ], + [ + "estates.fld_feature_3", + "real_estate_listings.fld_feature_3" + ], + [ + "properties.hse_feature_1", + "estates.hse_feature_1" + ], + [ + "properties.hse_feature_1", + "real_estate_listings.hse_feature_1" + ], + [ + "estates.hse_feature_1", + "real_estate_listings.hse_feature_1" + ], + [ + "properties.hse_feature_2", + "estates.hse_feature_2" + ], + [ + "properties.hse_feature_2", + "real_estate_listings.hse_feature_2" + ], + [ + "estates.hse_feature_2", + "real_estate_listings.hse_feature_2" + ], + [ + "properties.hse_feature_3", + "estates.hse_feature_3" + ], + [ + "properties.hse_feature_3", + "real_estate_listings.hse_feature_3" + ], + [ + "estates.hse_feature_3", + "real_estate_listings.hse_feature_3" + ], + [ + "properties.oth_feature_1", + "estates.oth_feature_1" + ], + [ + "properties.oth_feature_1", + "real_estate_listings.oth_feature_1" + ], + [ + "estates.oth_feature_1", + "real_estate_listings.oth_feature_1" + ], + [ + "properties.oth_feature_2", + "estates.oth_feature_2" + ], + [ + "properties.oth_feature_2", + "real_estate_listings.oth_feature_2" + ], + [ + "estates.oth_feature_2", + "real_estate_listings.oth_feature_2" + ], + [ + "properties.oth_feature_3", + "estates.oth_feature_3" + ], + [ + "properties.oth_feature_3", + "real_estate_listings.oth_feature_3" + ], + [ + "estates.oth_feature_3", + "real_estate_listings.oth_feature_3" + ], + [ + "properties.shp_feature_1", + "estates.shp_feature_1" + ], + [ + "properties.shp_feature_1", + "real_estate_listings.shp_feature_1" + ], + [ + "estates.shp_feature_1", + "real_estate_listings.shp_feature_1" + ], + [ + "properties.shp_feature_2", + "estates.shp_feature_2" + ], + [ + "properties.shp_feature_2", + "real_estate_listings.shp_feature_2" + ], + [ + "estates.shp_feature_2", + "real_estate_listings.shp_feature_2" + ], + [ + "properties.shp_feature_3", + "estates.shp_feature_3" + ], + [ + "properties.shp_feature_3", + "real_estate_listings.shp_feature_3" + ], + [ + "estates.shp_feature_3", + "real_estate_listings.shp_feature_3" + ], + [ + "properties.other_property_details", + "estates.other_property_details" + ], + [ + "properties.other_property_details", + "real_estate_listings.other_property_details" + ], + [ + "estates.other_property_details", + "real_estate_listings.other_property_details" + ] + ] + }, + { + "question": "what are the #names of properties# that are either #houses# or apartments with more than 1 room?", + "db_schema": { + "ref_feature_types": [ + "feature_type_code", + "feature_type_name" + ], + "ref_property_types": [ + "property_type_code", + "property_type_description" + ], + "other_available_features": [ + "feature_id", + "feature_type_code", + "feature_name", + "feature_description" + ], + "properties": [ + "property_id", + "property_type_code", + "date_on_market", + "date_sold", + "property_name", + "property_address", + "room_count", + "vendor_requested_price", + "buyer_offered_price", + "agreed_selling_price", + "apt_feature_1", + "apt_feature_2", + "apt_feature_3", + "fld_feature_1", + "fld_feature_2", + "fld_feature_3", + "hse_feature_1", + "hse_feature_2", + "hse_feature_3", + "oth_feature_1", + "oth_feature_2", + "oth_feature_3", + "shp_feature_1", + "shp_feature_2", + "shp_feature_3", + "other_property_details" + ], + "other_property_features": [ + "property_id", + "feature_id", + "property_feature_description" + ], + "Estates": [ + "property_id", + "property_type_code", + "date_on_market", + "date_sold", + "property_name", + "property_address", + "room_count", + "vendor_requested_price", + "buyer_offered_price", + "agreed_selling_price", + "apt_feature_1", + "apt_feature_2", + "apt_feature_3", + "fld_feature_1", + "fld_feature_2", + "fld_feature_3", + "hse_feature_1", + "hse_feature_2", + "hse_feature_3", + "oth_feature_1", + "oth_feature_2", + "oth_feature_3", + "shp_feature_1", + "shp_feature_2", + "shp_feature_3", + "other_property_details" + ], + "Real_Estate_Listings": [ + "property_id", + "property_type_code", + "date_on_market", + "date_sold", + "property_name", + "property_address", + "room_count", + "vendor_requested_price", + "buyer_offered_price", + "agreed_selling_price", + "apt_feature_1", + "apt_feature_2", + "apt_feature_3", + "fld_feature_1", + "fld_feature_2", + "fld_feature_3", + "hse_feature_1", + "hse_feature_2", + "hse_feature_3", + "oth_feature_1", + "oth_feature_2", + "oth_feature_3", + "shp_feature_1", + "shp_feature_2", + "shp_feature_3", + "other_property_details" + ] + }, + "linking_list": [ + [ + "names of properties", + "properties.property_name" + ], + [ + "names of properties", + "Estates.property_name" + ], + [ + "names of properties", + "Real_Estate_Listings.property_name" + ], + [ + "houses", + "properties.property_type_code" + ], + [ + "houses", + "Estates.property_type_code" + ], + [ + "houses", + "Real_Estate_Listings.property_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "properties.property_name" + ], + [ + 0, + "Estates.property_name" + ], + [ + 0, + "Real_Estate_Listings.property_name" + ], + [ + 1, + "properties.property_type_code" + ], + [ + 1, + "Estates.property_type_code" + ], + [ + 1, + "Real_Estate_Listings.property_type_code" + ] + ], + "linking_list_col": [ + [ + "properties.property_id", + "estates.property_id" + ], + [ + "properties.property_id", + "real_estate_listings.property_id" + ], + [ + "estates.property_id", + "real_estate_listings.property_id" + ], + [ + "properties.property_type_code", + "estates.property_type_code" + ], + [ + "properties.property_type_code", + "real_estate_listings.property_type_code" + ], + [ + "estates.property_type_code", + "real_estate_listings.property_type_code" + ], + [ + "properties.date_on_market", + "estates.date_on_market" + ], + [ + "properties.date_on_market", + "real_estate_listings.date_on_market" + ], + [ + "estates.date_on_market", + "real_estate_listings.date_on_market" + ], + [ + "properties.date_sold", + "estates.date_sold" + ], + [ + "properties.date_sold", + "real_estate_listings.date_sold" + ], + [ + "estates.date_sold", + "real_estate_listings.date_sold" + ], + [ + "properties.property_name", + "estates.property_name" + ], + [ + "properties.property_name", + "real_estate_listings.property_name" + ], + [ + "estates.property_name", + "real_estate_listings.property_name" + ], + [ + "properties.property_address", + "estates.property_address" + ], + [ + "properties.property_address", + "real_estate_listings.property_address" + ], + [ + "estates.property_address", + "real_estate_listings.property_address" + ], + [ + "properties.room_count", + "estates.room_count" + ], + [ + "properties.room_count", + "real_estate_listings.room_count" + ], + [ + "estates.room_count", + "real_estate_listings.room_count" + ], + [ + "properties.vendor_requested_price", + "estates.vendor_requested_price" + ], + [ + "properties.vendor_requested_price", + "real_estate_listings.vendor_requested_price" + ], + [ + "estates.vendor_requested_price", + "real_estate_listings.vendor_requested_price" + ], + [ + "properties.buyer_offered_price", + "estates.buyer_offered_price" + ], + [ + "properties.buyer_offered_price", + "real_estate_listings.buyer_offered_price" + ], + [ + "estates.buyer_offered_price", + "real_estate_listings.buyer_offered_price" + ], + [ + "properties.agreed_selling_price", + "estates.agreed_selling_price" + ], + [ + "properties.agreed_selling_price", + "real_estate_listings.agreed_selling_price" + ], + [ + "estates.agreed_selling_price", + "real_estate_listings.agreed_selling_price" + ], + [ + "properties.apt_feature_1", + "estates.apt_feature_1" + ], + [ + "properties.apt_feature_1", + "real_estate_listings.apt_feature_1" + ], + [ + "estates.apt_feature_1", + "real_estate_listings.apt_feature_1" + ], + [ + "properties.apt_feature_2", + "estates.apt_feature_2" + ], + [ + "properties.apt_feature_2", + "real_estate_listings.apt_feature_2" + ], + [ + "estates.apt_feature_2", + "real_estate_listings.apt_feature_2" + ], + [ + "properties.apt_feature_3", + "estates.apt_feature_3" + ], + [ + "properties.apt_feature_3", + "real_estate_listings.apt_feature_3" + ], + [ + "estates.apt_feature_3", + "real_estate_listings.apt_feature_3" + ], + [ + "properties.fld_feature_1", + "estates.fld_feature_1" + ], + [ + "properties.fld_feature_1", + "real_estate_listings.fld_feature_1" + ], + [ + "estates.fld_feature_1", + "real_estate_listings.fld_feature_1" + ], + [ + "properties.fld_feature_2", + "estates.fld_feature_2" + ], + [ + "properties.fld_feature_2", + "real_estate_listings.fld_feature_2" + ], + [ + "estates.fld_feature_2", + "real_estate_listings.fld_feature_2" + ], + [ + "properties.fld_feature_3", + "estates.fld_feature_3" + ], + [ + "properties.fld_feature_3", + "real_estate_listings.fld_feature_3" + ], + [ + "estates.fld_feature_3", + "real_estate_listings.fld_feature_3" + ], + [ + "properties.hse_feature_1", + "estates.hse_feature_1" + ], + [ + "properties.hse_feature_1", + "real_estate_listings.hse_feature_1" + ], + [ + "estates.hse_feature_1", + "real_estate_listings.hse_feature_1" + ], + [ + "properties.hse_feature_2", + "estates.hse_feature_2" + ], + [ + "properties.hse_feature_2", + "real_estate_listings.hse_feature_2" + ], + [ + "estates.hse_feature_2", + "real_estate_listings.hse_feature_2" + ], + [ + "properties.hse_feature_3", + "estates.hse_feature_3" + ], + [ + "properties.hse_feature_3", + "real_estate_listings.hse_feature_3" + ], + [ + "estates.hse_feature_3", + "real_estate_listings.hse_feature_3" + ], + [ + "properties.oth_feature_1", + "estates.oth_feature_1" + ], + [ + "properties.oth_feature_1", + "real_estate_listings.oth_feature_1" + ], + [ + "estates.oth_feature_1", + "real_estate_listings.oth_feature_1" + ], + [ + "properties.oth_feature_2", + "estates.oth_feature_2" + ], + [ + "properties.oth_feature_2", + "real_estate_listings.oth_feature_2" + ], + [ + "estates.oth_feature_2", + "real_estate_listings.oth_feature_2" + ], + [ + "properties.oth_feature_3", + "estates.oth_feature_3" + ], + [ + "properties.oth_feature_3", + "real_estate_listings.oth_feature_3" + ], + [ + "estates.oth_feature_3", + "real_estate_listings.oth_feature_3" + ], + [ + "properties.shp_feature_1", + "estates.shp_feature_1" + ], + [ + "properties.shp_feature_1", + "real_estate_listings.shp_feature_1" + ], + [ + "estates.shp_feature_1", + "real_estate_listings.shp_feature_1" + ], + [ + "properties.shp_feature_2", + "estates.shp_feature_2" + ], + [ + "properties.shp_feature_2", + "real_estate_listings.shp_feature_2" + ], + [ + "estates.shp_feature_2", + "real_estate_listings.shp_feature_2" + ], + [ + "properties.shp_feature_3", + "estates.shp_feature_3" + ], + [ + "properties.shp_feature_3", + "real_estate_listings.shp_feature_3" + ], + [ + "estates.shp_feature_3", + "real_estate_listings.shp_feature_3" + ], + [ + "properties.other_property_details", + "estates.other_property_details" + ], + [ + "properties.other_property_details", + "real_estate_listings.other_property_details" + ], + [ + "estates.other_property_details", + "real_estate_listings.other_property_details" + ] + ] + }, + { + "question": "show #name# , #country# , #age# for all singers ordered by age from the oldest to the youngest.", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "artist": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "performer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ] + }, + "linking_list": [ + [ + "name", + "singer.name" + ], + [ + "name", + "artist.name" + ], + [ + "name", + "performer.name" + ], + [ + "country", + "singer.country" + ], + [ + "country", + "artist.country" + ], + [ + "country", + "performer.country" + ], + [ + "age", + "singer.age" + ], + [ + "age", + "artist.age" + ], + [ + "age", + "performer.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 0, + "artist.name" + ], + [ + 0, + "performer.name" + ], + [ + 1, + "singer.country" + ], + [ + 1, + "artist.country" + ], + [ + 1, + "performer.country" + ], + [ + 2, + "singer.age" + ], + [ + 2, + "artist.age" + ], + [ + 2, + "performer.age" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "artist.singer_id" + ], + [ + "singer.singer_id", + "performer.singer_id" + ], + [ + "artist.singer_id", + "performer.singer_id" + ], + [ + "singer.name", + "artist.name" + ], + [ + "singer.name", + "performer.name" + ], + [ + "artist.name", + "performer.name" + ], + [ + "singer.country", + "artist.country" + ], + [ + "singer.country", + "performer.country" + ], + [ + "artist.country", + "performer.country" + ], + [ + "singer.song_name", + "artist.song_name" + ], + [ + "singer.song_name", + "performer.song_name" + ], + [ + "artist.song_name", + "performer.song_name" + ], + [ + "singer.song_release_year", + "artist.song_release_year" + ], + [ + "singer.song_release_year", + "performer.song_release_year" + ], + [ + "artist.song_release_year", + "performer.song_release_year" + ], + [ + "singer.age", + "artist.age" + ], + [ + "singer.age", + "performer.age" + ], + [ + "artist.age", + "performer.age" + ], + [ + "singer.is_male", + "artist.is_male" + ], + [ + "singer.is_male", + "performer.is_male" + ], + [ + "artist.is_male", + "performer.is_male" + ] + ] + }, + { + "question": "what is the #average# , #minimum# , and #maximum# age of all singers from france?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "artist": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "performer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ] + }, + "linking_list": [ + [ + "average", + "singer.age" + ], + [ + "average", + "artist.age" + ], + [ + "average", + "performer.age" + ], + [ + "minimum", + "singer.age" + ], + [ + "minimum", + "artist.age" + ], + [ + "minimum", + "performer.age" + ], + [ + "maximum", + "singer.age" + ], + [ + "maximum", + "artist.age" + ], + [ + "maximum", + "performer.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.age" + ], + [ + 0, + "artist.age" + ], + [ + 0, + "performer.age" + ], + [ + 1, + "singer.age" + ], + [ + 1, + "artist.age" + ], + [ + 1, + "performer.age" + ], + [ + 2, + "singer.age" + ], + [ + 2, + "artist.age" + ], + [ + 2, + "performer.age" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "artist.singer_id" + ], + [ + "singer.singer_id", + "performer.singer_id" + ], + [ + "artist.singer_id", + "performer.singer_id" + ], + [ + "singer.name", + "artist.name" + ], + [ + "singer.name", + "performer.name" + ], + [ + "artist.name", + "performer.name" + ], + [ + "singer.country", + "artist.country" + ], + [ + "singer.country", + "performer.country" + ], + [ + "artist.country", + "performer.country" + ], + [ + "singer.song_name", + "artist.song_name" + ], + [ + "singer.song_name", + "performer.song_name" + ], + [ + "artist.song_name", + "performer.song_name" + ], + [ + "singer.song_release_year", + "artist.song_release_year" + ], + [ + "singer.song_release_year", + "performer.song_release_year" + ], + [ + "artist.song_release_year", + "performer.song_release_year" + ], + [ + "singer.age", + "artist.age" + ], + [ + "singer.age", + "performer.age" + ], + [ + "artist.age", + "performer.age" + ], + [ + "singer.is_male", + "artist.is_male" + ], + [ + "singer.is_male", + "performer.is_male" + ], + [ + "artist.is_male", + "performer.is_male" + ] + ] + }, + { + "question": "what is the average, minimum, and #maximum age# for all french singers?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "artist": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "performer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ] + }, + "linking_list": [ + [ + "maximum age", + "singer.age" + ], + [ + "maximum age", + "artist.age" + ], + [ + "maximum age", + "performer.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.age" + ], + [ + 0, + "artist.age" + ], + [ + 0, + "performer.age" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "artist.singer_id" + ], + [ + "singer.singer_id", + "performer.singer_id" + ], + [ + "artist.singer_id", + "performer.singer_id" + ], + [ + "singer.name", + "artist.name" + ], + [ + "singer.name", + "performer.name" + ], + [ + "artist.name", + "performer.name" + ], + [ + "singer.country", + "artist.country" + ], + [ + "singer.country", + "performer.country" + ], + [ + "artist.country", + "performer.country" + ], + [ + "singer.song_name", + "artist.song_name" + ], + [ + "singer.song_name", + "performer.song_name" + ], + [ + "artist.song_name", + "performer.song_name" + ], + [ + "singer.song_release_year", + "artist.song_release_year" + ], + [ + "singer.song_release_year", + "performer.song_release_year" + ], + [ + "artist.song_release_year", + "performer.song_release_year" + ], + [ + "singer.age", + "artist.age" + ], + [ + "singer.age", + "performer.age" + ], + [ + "artist.age", + "performer.age" + ], + [ + "singer.is_male", + "artist.is_male" + ], + [ + "singer.is_male", + "performer.is_male" + ], + [ + "artist.is_male", + "performer.is_male" + ] + ] + }, + { + "question": "show all countries and the #number of singers in each country# .", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "artist": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "performer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ] + }, + "linking_list": [ + [ + "number of singers in each country", + "singer.country" + ], + [ + "number of singers in each country", + "artist.country" + ], + [ + "number of singers in each country", + "performer.country" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.country" + ], + [ + 0, + "artist.country" + ], + [ + 0, + "performer.country" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "artist.singer_id" + ], + [ + "singer.singer_id", + "performer.singer_id" + ], + [ + "artist.singer_id", + "performer.singer_id" + ], + [ + "singer.name", + "artist.name" + ], + [ + "singer.name", + "performer.name" + ], + [ + "artist.name", + "performer.name" + ], + [ + "singer.country", + "artist.country" + ], + [ + "singer.country", + "performer.country" + ], + [ + "artist.country", + "performer.country" + ], + [ + "singer.song_name", + "artist.song_name" + ], + [ + "singer.song_name", + "performer.song_name" + ], + [ + "artist.song_name", + "performer.song_name" + ], + [ + "singer.song_release_year", + "artist.song_release_year" + ], + [ + "singer.song_release_year", + "performer.song_release_year" + ], + [ + "artist.song_release_year", + "performer.song_release_year" + ], + [ + "singer.age", + "artist.age" + ], + [ + "singer.age", + "performer.age" + ], + [ + "artist.age", + "performer.age" + ], + [ + "singer.is_male", + "artist.is_male" + ], + [ + "singer.is_male", + "performer.is_male" + ], + [ + "artist.is_male", + "performer.is_male" + ] + ] + }, + { + "question": "show #name# , #country# , #age# for all singers ordered by age from the oldest to the youngest.", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "artist": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "performer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ] + }, + "linking_list": [ + [ + "name", + "singer.name" + ], + [ + "name", + "artist.name" + ], + [ + "name", + "performer.name" + ], + [ + "country", + "singer.country" + ], + [ + "country", + "artist.country" + ], + [ + "country", + "performer.country" + ], + [ + "age", + "singer.age" + ], + [ + "age", + "artist.age" + ], + [ + "age", + "performer.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 0, + "artist.name" + ], + [ + 0, + "performer.name" + ], + [ + 1, + "singer.country" + ], + [ + 1, + "artist.country" + ], + [ + 1, + "performer.country" + ], + [ + 2, + "singer.age" + ], + [ + 2, + "artist.age" + ], + [ + 2, + "performer.age" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "artist.singer_id" + ], + [ + "singer.singer_id", + "performer.singer_id" + ], + [ + "artist.singer_id", + "performer.singer_id" + ], + [ + "singer.name", + "artist.name" + ], + [ + "singer.name", + "performer.name" + ], + [ + "artist.name", + "performer.name" + ], + [ + "singer.country", + "artist.country" + ], + [ + "singer.country", + "performer.country" + ], + [ + "artist.country", + "performer.country" + ], + [ + "singer.song_name", + "artist.song_name" + ], + [ + "singer.song_name", + "performer.song_name" + ], + [ + "artist.song_name", + "performer.song_name" + ], + [ + "singer.song_release_year", + "artist.song_release_year" + ], + [ + "singer.song_release_year", + "performer.song_release_year" + ], + [ + "artist.song_release_year", + "performer.song_release_year" + ], + [ + "singer.age", + "artist.age" + ], + [ + "singer.age", + "performer.age" + ], + [ + "artist.age", + "performer.age" + ], + [ + "singer.is_male", + "artist.is_male" + ], + [ + "singer.is_male", + "performer.is_male" + ], + [ + "artist.is_male", + "performer.is_male" + ] + ] + }, + { + "question": "what is the #average# , #minimum# , and #maximum# age of all singers from france?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "artist": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "performer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ] + }, + "linking_list": [ + [ + "average", + "singer.age" + ], + [ + "average", + "artist.age" + ], + [ + "average", + "performer.age" + ], + [ + "minimum", + "singer.age" + ], + [ + "minimum", + "artist.age" + ], + [ + "minimum", + "performer.age" + ], + [ + "maximum", + "singer.age" + ], + [ + "maximum", + "artist.age" + ], + [ + "maximum", + "performer.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.age" + ], + [ + 0, + "artist.age" + ], + [ + 0, + "performer.age" + ], + [ + 1, + "singer.age" + ], + [ + 1, + "artist.age" + ], + [ + 1, + "performer.age" + ], + [ + 2, + "singer.age" + ], + [ + 2, + "artist.age" + ], + [ + 2, + "performer.age" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "artist.singer_id" + ], + [ + "singer.singer_id", + "performer.singer_id" + ], + [ + "artist.singer_id", + "performer.singer_id" + ], + [ + "singer.name", + "artist.name" + ], + [ + "singer.name", + "performer.name" + ], + [ + "artist.name", + "performer.name" + ], + [ + "singer.country", + "artist.country" + ], + [ + "singer.country", + "performer.country" + ], + [ + "artist.country", + "performer.country" + ], + [ + "singer.song_name", + "artist.song_name" + ], + [ + "singer.song_name", + "performer.song_name" + ], + [ + "artist.song_name", + "performer.song_name" + ], + [ + "singer.song_release_year", + "artist.song_release_year" + ], + [ + "singer.song_release_year", + "performer.song_release_year" + ], + [ + "artist.song_release_year", + "performer.song_release_year" + ], + [ + "singer.age", + "artist.age" + ], + [ + "singer.age", + "performer.age" + ], + [ + "artist.age", + "performer.age" + ], + [ + "singer.is_male", + "artist.is_male" + ], + [ + "singer.is_male", + "performer.is_male" + ], + [ + "artist.is_male", + "performer.is_male" + ] + ] + }, + { + "question": "what is the #average# , #minimum# , and #maximum# age for all french singers?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "artist": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "performer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ] + }, + "linking_list": [ + [ + "average", + "singer.age" + ], + [ + "average", + "artist.age" + ], + [ + "average", + "performer.age" + ], + [ + "minimum", + "singer.age" + ], + [ + "minimum", + "artist.age" + ], + [ + "minimum", + "performer.age" + ], + [ + "maximum", + "singer.age" + ], + [ + "maximum", + "artist.age" + ], + [ + "maximum", + "performer.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.age" + ], + [ + 0, + "artist.age" + ], + [ + 0, + "performer.age" + ], + [ + 1, + "singer.age" + ], + [ + 1, + "artist.age" + ], + [ + 1, + "performer.age" + ], + [ + 2, + "singer.age" + ], + [ + 2, + "artist.age" + ], + [ + 2, + "performer.age" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "artist.singer_id" + ], + [ + "singer.singer_id", + "performer.singer_id" + ], + [ + "artist.singer_id", + "performer.singer_id" + ], + [ + "singer.name", + "artist.name" + ], + [ + "singer.name", + "performer.name" + ], + [ + "artist.name", + "performer.name" + ], + [ + "singer.country", + "artist.country" + ], + [ + "singer.country", + "performer.country" + ], + [ + "artist.country", + "performer.country" + ], + [ + "singer.song_name", + "artist.song_name" + ], + [ + "singer.song_name", + "performer.song_name" + ], + [ + "artist.song_name", + "performer.song_name" + ], + [ + "singer.song_release_year", + "artist.song_release_year" + ], + [ + "singer.song_release_year", + "performer.song_release_year" + ], + [ + "artist.song_release_year", + "performer.song_release_year" + ], + [ + "singer.age", + "artist.age" + ], + [ + "singer.age", + "performer.age" + ], + [ + "artist.age", + "performer.age" + ], + [ + "singer.is_male", + "artist.is_male" + ], + [ + "singer.is_male", + "performer.is_male" + ], + [ + "artist.is_male", + "performer.is_male" + ] + ] + }, + { + "question": "what are all distinct countries where singers above #age# 20 are from?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "artist": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "performer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ] + }, + "linking_list": [ + [ + "age", + "singer.age" + ], + [ + "age", + "artist.age" + ], + [ + "age", + "performer.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.age" + ], + [ + 0, + "artist.age" + ], + [ + 0, + "performer.age" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "artist.singer_id" + ], + [ + "singer.singer_id", + "performer.singer_id" + ], + [ + "artist.singer_id", + "performer.singer_id" + ], + [ + "singer.name", + "artist.name" + ], + [ + "singer.name", + "performer.name" + ], + [ + "artist.name", + "performer.name" + ], + [ + "singer.country", + "artist.country" + ], + [ + "singer.country", + "performer.country" + ], + [ + "artist.country", + "performer.country" + ], + [ + "singer.song_name", + "artist.song_name" + ], + [ + "singer.song_name", + "performer.song_name" + ], + [ + "artist.song_name", + "performer.song_name" + ], + [ + "singer.song_release_year", + "artist.song_release_year" + ], + [ + "singer.song_release_year", + "performer.song_release_year" + ], + [ + "artist.song_release_year", + "performer.song_release_year" + ], + [ + "singer.age", + "artist.age" + ], + [ + "singer.age", + "performer.age" + ], + [ + "artist.age", + "performer.age" + ], + [ + "singer.is_male", + "artist.is_male" + ], + [ + "singer.is_male", + "performer.is_male" + ], + [ + "artist.is_male", + "performer.is_male" + ] + ] + }, + { + "question": "what are the different countries with singers above #age# 20?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "artist": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "performer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ] + }, + "linking_list": [ + [ + "age", + "singer.age" + ], + [ + "age", + "artist.age" + ], + [ + "age", + "performer.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.age" + ], + [ + 0, + "artist.age" + ], + [ + 0, + "performer.age" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "artist.singer_id" + ], + [ + "singer.singer_id", + "performer.singer_id" + ], + [ + "artist.singer_id", + "performer.singer_id" + ], + [ + "singer.name", + "artist.name" + ], + [ + "singer.name", + "performer.name" + ], + [ + "artist.name", + "performer.name" + ], + [ + "singer.country", + "artist.country" + ], + [ + "singer.country", + "performer.country" + ], + [ + "artist.country", + "performer.country" + ], + [ + "singer.song_name", + "artist.song_name" + ], + [ + "singer.song_name", + "performer.song_name" + ], + [ + "artist.song_name", + "performer.song_name" + ], + [ + "singer.song_release_year", + "artist.song_release_year" + ], + [ + "singer.song_release_year", + "performer.song_release_year" + ], + [ + "artist.song_release_year", + "performer.song_release_year" + ], + [ + "singer.age", + "artist.age" + ], + [ + "singer.age", + "performer.age" + ], + [ + "artist.age", + "performer.age" + ], + [ + "singer.is_male", + "artist.is_male" + ], + [ + "singer.is_male", + "performer.is_male" + ], + [ + "artist.is_male", + "performer.is_male" + ] + ] + }, + { + "question": "show #name# , #country# , #age# for all singers ordered by age from the oldest to the youngest.", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "artist": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "performer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ] + }, + "linking_list": [ + [ + "name", + "singer.name" + ], + [ + "name", + "artist.name" + ], + [ + "name", + "performer.name" + ], + [ + "country", + "singer.country" + ], + [ + "country", + "artist.country" + ], + [ + "country", + "performer.country" + ], + [ + "age", + "singer.age" + ], + [ + "age", + "artist.age" + ], + [ + "age", + "performer.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 0, + "artist.name" + ], + [ + 0, + "performer.name" + ], + [ + 1, + "singer.country" + ], + [ + 1, + "artist.country" + ], + [ + 1, + "performer.country" + ], + [ + 2, + "singer.age" + ], + [ + 2, + "artist.age" + ], + [ + 2, + "performer.age" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "artist.singer_id" + ], + [ + "singer.singer_id", + "performer.singer_id" + ], + [ + "artist.singer_id", + "performer.singer_id" + ], + [ + "singer.name", + "artist.name" + ], + [ + "singer.name", + "performer.name" + ], + [ + "artist.name", + "performer.name" + ], + [ + "singer.country", + "artist.country" + ], + [ + "singer.country", + "performer.country" + ], + [ + "artist.country", + "performer.country" + ], + [ + "singer.song_name", + "artist.song_name" + ], + [ + "singer.song_name", + "performer.song_name" + ], + [ + "artist.song_name", + "performer.song_name" + ], + [ + "singer.song_release_year", + "artist.song_release_year" + ], + [ + "singer.song_release_year", + "performer.song_release_year" + ], + [ + "artist.song_release_year", + "performer.song_release_year" + ], + [ + "singer.age", + "artist.age" + ], + [ + "singer.age", + "performer.age" + ], + [ + "artist.age", + "performer.age" + ], + [ + "singer.is_male", + "artist.is_male" + ], + [ + "singer.is_male", + "performer.is_male" + ], + [ + "artist.is_male", + "performer.is_male" + ] + ] + }, + { + "question": "what is the #average# , #minimum# , and #maximum# age of all singers from france?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "artist": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "performer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ] + }, + "linking_list": [ + [ + "average", + "singer.age" + ], + [ + "average", + "artist.age" + ], + [ + "average", + "performer.age" + ], + [ + "minimum", + "singer.age" + ], + [ + "minimum", + "artist.age" + ], + [ + "minimum", + "performer.age" + ], + [ + "maximum", + "singer.age" + ], + [ + "maximum", + "artist.age" + ], + [ + "maximum", + "performer.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.age" + ], + [ + 0, + "artist.age" + ], + [ + 0, + "performer.age" + ], + [ + 1, + "singer.age" + ], + [ + 1, + "artist.age" + ], + [ + 1, + "performer.age" + ], + [ + 2, + "singer.age" + ], + [ + 2, + "artist.age" + ], + [ + 2, + "performer.age" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "artist.singer_id" + ], + [ + "singer.singer_id", + "performer.singer_id" + ], + [ + "artist.singer_id", + "performer.singer_id" + ], + [ + "singer.name", + "artist.name" + ], + [ + "singer.name", + "performer.name" + ], + [ + "artist.name", + "performer.name" + ], + [ + "singer.country", + "artist.country" + ], + [ + "singer.country", + "performer.country" + ], + [ + "artist.country", + "performer.country" + ], + [ + "singer.song_name", + "artist.song_name" + ], + [ + "singer.song_name", + "performer.song_name" + ], + [ + "artist.song_name", + "performer.song_name" + ], + [ + "singer.song_release_year", + "artist.song_release_year" + ], + [ + "singer.song_release_year", + "performer.song_release_year" + ], + [ + "artist.song_release_year", + "performer.song_release_year" + ], + [ + "singer.age", + "artist.age" + ], + [ + "singer.age", + "performer.age" + ], + [ + "artist.age", + "performer.age" + ], + [ + "singer.is_male", + "artist.is_male" + ], + [ + "singer.is_male", + "performer.is_male" + ], + [ + "artist.is_male", + "performer.is_male" + ] + ] + }, + { + "question": "what is the #average# , #minimum# , and #maximum# age for all french singers?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "artist": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "performer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ] + }, + "linking_list": [ + [ + "average", + "singer.age" + ], + [ + "average", + "artist.age" + ], + [ + "average", + "performer.age" + ], + [ + "minimum", + "singer.age" + ], + [ + "minimum", + "artist.age" + ], + [ + "minimum", + "performer.age" + ], + [ + "maximum", + "singer.age" + ], + [ + "maximum", + "artist.age" + ], + [ + "maximum", + "performer.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.age" + ], + [ + 0, + "artist.age" + ], + [ + 0, + "performer.age" + ], + [ + 1, + "singer.age" + ], + [ + 1, + "artist.age" + ], + [ + 1, + "performer.age" + ], + [ + 2, + "singer.age" + ], + [ + 2, + "artist.age" + ], + [ + 2, + "performer.age" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "artist.singer_id" + ], + [ + "singer.singer_id", + "performer.singer_id" + ], + [ + "artist.singer_id", + "performer.singer_id" + ], + [ + "singer.name", + "artist.name" + ], + [ + "singer.name", + "performer.name" + ], + [ + "artist.name", + "performer.name" + ], + [ + "singer.country", + "artist.country" + ], + [ + "singer.country", + "performer.country" + ], + [ + "artist.country", + "performer.country" + ], + [ + "singer.song_name", + "artist.song_name" + ], + [ + "singer.song_name", + "performer.song_name" + ], + [ + "artist.song_name", + "performer.song_name" + ], + [ + "singer.song_release_year", + "artist.song_release_year" + ], + [ + "singer.song_release_year", + "performer.song_release_year" + ], + [ + "artist.song_release_year", + "performer.song_release_year" + ], + [ + "singer.age", + "artist.age" + ], + [ + "singer.age", + "performer.age" + ], + [ + "artist.age", + "performer.age" + ], + [ + "singer.is_male", + "artist.is_male" + ], + [ + "singer.is_male", + "performer.is_male" + ], + [ + "artist.is_male", + "performer.is_male" + ] + ] + }, + { + "question": "show #name# , #country# , #age# for all singers ordered by age from the oldest to the youngest.", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "artist": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "performer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ] + }, + "linking_list": [ + [ + "name", + "singer.name" + ], + [ + "name", + "artist.name" + ], + [ + "name", + "performer.name" + ], + [ + "country", + "singer.country" + ], + [ + "country", + "artist.country" + ], + [ + "country", + "performer.country" + ], + [ + "age", + "singer.age" + ], + [ + "age", + "artist.age" + ], + [ + "age", + "performer.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 0, + "artist.name" + ], + [ + 0, + "performer.name" + ], + [ + 1, + "singer.country" + ], + [ + 1, + "artist.country" + ], + [ + 1, + "performer.country" + ], + [ + 2, + "singer.age" + ], + [ + 2, + "artist.age" + ], + [ + 2, + "performer.age" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "artist.singer_id" + ], + [ + "singer.singer_id", + "performer.singer_id" + ], + [ + "artist.singer_id", + "performer.singer_id" + ], + [ + "singer.name", + "artist.name" + ], + [ + "singer.name", + "performer.name" + ], + [ + "artist.name", + "performer.name" + ], + [ + "singer.country", + "artist.country" + ], + [ + "singer.country", + "performer.country" + ], + [ + "artist.country", + "performer.country" + ], + [ + "singer.song_name", + "artist.song_name" + ], + [ + "singer.song_name", + "performer.song_name" + ], + [ + "artist.song_name", + "performer.song_name" + ], + [ + "singer.song_release_year", + "artist.song_release_year" + ], + [ + "singer.song_release_year", + "performer.song_release_year" + ], + [ + "artist.song_release_year", + "performer.song_release_year" + ], + [ + "singer.age", + "artist.age" + ], + [ + "singer.age", + "performer.age" + ], + [ + "artist.age", + "performer.age" + ], + [ + "singer.is_male", + "artist.is_male" + ], + [ + "singer.is_male", + "performer.is_male" + ], + [ + "artist.is_male", + "performer.is_male" + ] + ] + }, + { + "question": "what is #the average, minimum, and maximum age# of all singers from france?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "artist": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "performer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ] + }, + "linking_list": [ + [ + "the average, minimum, and maximum age", + "singer.age" + ], + [ + "the average, minimum, and maximum age", + "artist.age" + ], + [ + "the average, minimum, and maximum age", + "performer.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.age" + ], + [ + 0, + "artist.age" + ], + [ + 0, + "performer.age" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "artist.singer_id" + ], + [ + "singer.singer_id", + "performer.singer_id" + ], + [ + "artist.singer_id", + "performer.singer_id" + ], + [ + "singer.name", + "artist.name" + ], + [ + "singer.name", + "performer.name" + ], + [ + "artist.name", + "performer.name" + ], + [ + "singer.country", + "artist.country" + ], + [ + "singer.country", + "performer.country" + ], + [ + "artist.country", + "performer.country" + ], + [ + "singer.song_name", + "artist.song_name" + ], + [ + "singer.song_name", + "performer.song_name" + ], + [ + "artist.song_name", + "performer.song_name" + ], + [ + "singer.song_release_year", + "artist.song_release_year" + ], + [ + "singer.song_release_year", + "performer.song_release_year" + ], + [ + "artist.song_release_year", + "performer.song_release_year" + ], + [ + "singer.age", + "artist.age" + ], + [ + "singer.age", + "performer.age" + ], + [ + "artist.age", + "performer.age" + ], + [ + "singer.is_male", + "artist.is_male" + ], + [ + "singer.is_male", + "performer.is_male" + ], + [ + "artist.is_male", + "performer.is_male" + ] + ] + }, + { + "question": "what is #the average, minimum, and maximum age# for all french singers?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "artist": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "performer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ] + }, + "linking_list": [ + [ + "the average, minimum, and maximum age", + "singer.age" + ], + [ + "the average, minimum, and maximum age", + "artist.age" + ], + [ + "the average, minimum, and maximum age", + "performer.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.age" + ], + [ + 0, + "artist.age" + ], + [ + 0, + "performer.age" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "artist.singer_id" + ], + [ + "singer.singer_id", + "performer.singer_id" + ], + [ + "artist.singer_id", + "performer.singer_id" + ], + [ + "singer.name", + "artist.name" + ], + [ + "singer.name", + "performer.name" + ], + [ + "artist.name", + "performer.name" + ], + [ + "singer.country", + "artist.country" + ], + [ + "singer.country", + "performer.country" + ], + [ + "artist.country", + "performer.country" + ], + [ + "singer.song_name", + "artist.song_name" + ], + [ + "singer.song_name", + "performer.song_name" + ], + [ + "artist.song_name", + "performer.song_name" + ], + [ + "singer.song_release_year", + "artist.song_release_year" + ], + [ + "singer.song_release_year", + "performer.song_release_year" + ], + [ + "artist.song_release_year", + "performer.song_release_year" + ], + [ + "singer.age", + "artist.age" + ], + [ + "singer.age", + "performer.age" + ], + [ + "artist.age", + "performer.age" + ], + [ + "singer.is_male", + "artist.is_male" + ], + [ + "singer.is_male", + "performer.is_male" + ], + [ + "artist.is_male", + "performer.is_male" + ] + ] + }, + { + "question": "show #name# , #country# , #age# for all singers ordered by age from the oldest to the youngest.", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "artist": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "performer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ] + }, + "linking_list": [ + [ + "name", + "singer.name" + ], + [ + "name", + "artist.name" + ], + [ + "name", + "performer.name" + ], + [ + "country", + "singer.country" + ], + [ + "country", + "artist.country" + ], + [ + "country", + "performer.country" + ], + [ + "age", + "singer.age" + ], + [ + "age", + "artist.age" + ], + [ + "age", + "performer.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 0, + "artist.name" + ], + [ + 0, + "performer.name" + ], + [ + 1, + "singer.country" + ], + [ + 1, + "artist.country" + ], + [ + 1, + "performer.country" + ], + [ + 2, + "singer.age" + ], + [ + 2, + "artist.age" + ], + [ + 2, + "performer.age" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "artist.singer_id" + ], + [ + "singer.singer_id", + "performer.singer_id" + ], + [ + "artist.singer_id", + "performer.singer_id" + ], + [ + "singer.name", + "artist.name" + ], + [ + "singer.name", + "performer.name" + ], + [ + "artist.name", + "performer.name" + ], + [ + "singer.country", + "artist.country" + ], + [ + "singer.country", + "performer.country" + ], + [ + "artist.country", + "performer.country" + ], + [ + "singer.song_name", + "artist.song_name" + ], + [ + "singer.song_name", + "performer.song_name" + ], + [ + "artist.song_name", + "performer.song_name" + ], + [ + "singer.song_release_year", + "artist.song_release_year" + ], + [ + "singer.song_release_year", + "performer.song_release_year" + ], + [ + "artist.song_release_year", + "performer.song_release_year" + ], + [ + "singer.age", + "artist.age" + ], + [ + "singer.age", + "performer.age" + ], + [ + "artist.age", + "performer.age" + ], + [ + "singer.is_male", + "artist.is_male" + ], + [ + "singer.is_male", + "performer.is_male" + ], + [ + "artist.is_male", + "performer.is_male" + ] + ] + }, + { + "question": "what is #the average, minimum, and maximum age# of all singers from france?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "artist": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "performer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ] + }, + "linking_list": [ + [ + "the average, minimum, and maximum age", + "singer.age" + ], + [ + "the average, minimum, and maximum age", + "artist.age" + ], + [ + "the average, minimum, and maximum age", + "performer.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.age" + ], + [ + 0, + "artist.age" + ], + [ + 0, + "performer.age" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "artist.singer_id" + ], + [ + "singer.singer_id", + "performer.singer_id" + ], + [ + "artist.singer_id", + "performer.singer_id" + ], + [ + "singer.name", + "artist.name" + ], + [ + "singer.name", + "performer.name" + ], + [ + "artist.name", + "performer.name" + ], + [ + "singer.country", + "artist.country" + ], + [ + "singer.country", + "performer.country" + ], + [ + "artist.country", + "performer.country" + ], + [ + "singer.song_name", + "artist.song_name" + ], + [ + "singer.song_name", + "performer.song_name" + ], + [ + "artist.song_name", + "performer.song_name" + ], + [ + "singer.song_release_year", + "artist.song_release_year" + ], + [ + "singer.song_release_year", + "performer.song_release_year" + ], + [ + "artist.song_release_year", + "performer.song_release_year" + ], + [ + "singer.age", + "artist.age" + ], + [ + "singer.age", + "performer.age" + ], + [ + "artist.age", + "performer.age" + ], + [ + "singer.is_male", + "artist.is_male" + ], + [ + "singer.is_male", + "performer.is_male" + ], + [ + "artist.is_male", + "performer.is_male" + ] + ] + }, + { + "question": "what is #the average, minimum, and maximum age# for all french singers?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "artist": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "performer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ] + }, + "linking_list": [ + [ + "the average, minimum, and maximum age", + "singer.age" + ], + [ + "the average, minimum, and maximum age", + "artist.age" + ], + [ + "the average, minimum, and maximum age", + "performer.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.age" + ], + [ + 0, + "artist.age" + ], + [ + 0, + "performer.age" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "artist.singer_id" + ], + [ + "singer.singer_id", + "performer.singer_id" + ], + [ + "artist.singer_id", + "performer.singer_id" + ], + [ + "singer.name", + "artist.name" + ], + [ + "singer.name", + "performer.name" + ], + [ + "artist.name", + "performer.name" + ], + [ + "singer.country", + "artist.country" + ], + [ + "singer.country", + "performer.country" + ], + [ + "artist.country", + "performer.country" + ], + [ + "singer.song_name", + "artist.song_name" + ], + [ + "singer.song_name", + "performer.song_name" + ], + [ + "artist.song_name", + "performer.song_name" + ], + [ + "singer.song_release_year", + "artist.song_release_year" + ], + [ + "singer.song_release_year", + "performer.song_release_year" + ], + [ + "artist.song_release_year", + "performer.song_release_year" + ], + [ + "singer.age", + "artist.age" + ], + [ + "singer.age", + "performer.age" + ], + [ + "artist.age", + "performer.age" + ], + [ + "singer.is_male", + "artist.is_male" + ], + [ + "singer.is_male", + "performer.is_male" + ], + [ + "artist.is_male", + "performer.is_male" + ] + ] + }, + { + "question": "show the name and the release year of the song by the #youngest# singer.", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "artist": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "performer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ] + }, + "linking_list": [ + [ + "youngest", + "singer.age" + ], + [ + "youngest", + "artist.age" + ], + [ + "youngest", + "performer.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.age" + ], + [ + 0, + "artist.age" + ], + [ + 0, + "performer.age" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "artist.singer_id" + ], + [ + "singer.singer_id", + "performer.singer_id" + ], + [ + "artist.singer_id", + "performer.singer_id" + ], + [ + "singer.name", + "artist.name" + ], + [ + "singer.name", + "performer.name" + ], + [ + "artist.name", + "performer.name" + ], + [ + "singer.country", + "artist.country" + ], + [ + "singer.country", + "performer.country" + ], + [ + "artist.country", + "performer.country" + ], + [ + "singer.song_name", + "artist.song_name" + ], + [ + "singer.song_name", + "performer.song_name" + ], + [ + "artist.song_name", + "performer.song_name" + ], + [ + "singer.song_release_year", + "artist.song_release_year" + ], + [ + "singer.song_release_year", + "performer.song_release_year" + ], + [ + "artist.song_release_year", + "performer.song_release_year" + ], + [ + "singer.age", + "artist.age" + ], + [ + "singer.age", + "performer.age" + ], + [ + "artist.age", + "performer.age" + ], + [ + "singer.is_male", + "artist.is_male" + ], + [ + "singer.is_male", + "performer.is_male" + ], + [ + "artist.is_male", + "performer.is_male" + ] + ] + }, + { + "question": "what are all #distinct countries# where #singers above age 20# are from?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "artist": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "performer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ] + }, + "linking_list": [ + [ + "distinct countries", + "singer.country" + ], + [ + "distinct countries", + "artist.country" + ], + [ + "distinct countries", + "performer.country" + ], + [ + "singers above age 20", + "singer.age" + ], + [ + "singers above age 20", + "artist.age" + ], + [ + "singers above age 20", + "performer.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.country" + ], + [ + 0, + "artist.country" + ], + [ + 0, + "performer.country" + ], + [ + 1, + "singer.age" + ], + [ + 1, + "artist.age" + ], + [ + 1, + "performer.age" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "artist.singer_id" + ], + [ + "singer.singer_id", + "performer.singer_id" + ], + [ + "artist.singer_id", + "performer.singer_id" + ], + [ + "singer.name", + "artist.name" + ], + [ + "singer.name", + "performer.name" + ], + [ + "artist.name", + "performer.name" + ], + [ + "singer.country", + "artist.country" + ], + [ + "singer.country", + "performer.country" + ], + [ + "artist.country", + "performer.country" + ], + [ + "singer.song_name", + "artist.song_name" + ], + [ + "singer.song_name", + "performer.song_name" + ], + [ + "artist.song_name", + "performer.song_name" + ], + [ + "singer.song_release_year", + "artist.song_release_year" + ], + [ + "singer.song_release_year", + "performer.song_release_year" + ], + [ + "artist.song_release_year", + "performer.song_release_year" + ], + [ + "singer.age", + "artist.age" + ], + [ + "singer.age", + "performer.age" + ], + [ + "artist.age", + "performer.age" + ], + [ + "singer.is_male", + "artist.is_male" + ], + [ + "singer.is_male", + "performer.is_male" + ], + [ + "artist.is_male", + "performer.is_male" + ] + ] + }, + { + "question": "show all countries and the #number of singers in each country# .", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "artist": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "performer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ] + }, + "linking_list": [ + [ + "number of singers in each country", + "singer.country" + ], + [ + "number of singers in each country", + "artist.country" + ], + [ + "number of singers in each country", + "performer.country" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.country" + ], + [ + 0, + "artist.country" + ], + [ + 0, + "performer.country" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "artist.singer_id" + ], + [ + "singer.singer_id", + "performer.singer_id" + ], + [ + "artist.singer_id", + "performer.singer_id" + ], + [ + "singer.name", + "artist.name" + ], + [ + "singer.name", + "performer.name" + ], + [ + "artist.name", + "performer.name" + ], + [ + "singer.country", + "artist.country" + ], + [ + "singer.country", + "performer.country" + ], + [ + "artist.country", + "performer.country" + ], + [ + "singer.song_name", + "artist.song_name" + ], + [ + "singer.song_name", + "performer.song_name" + ], + [ + "artist.song_name", + "performer.song_name" + ], + [ + "singer.song_release_year", + "artist.song_release_year" + ], + [ + "singer.song_release_year", + "performer.song_release_year" + ], + [ + "artist.song_release_year", + "performer.song_release_year" + ], + [ + "singer.age", + "artist.age" + ], + [ + "singer.age", + "performer.age" + ], + [ + "artist.age", + "performer.age" + ], + [ + "singer.is_male", + "artist.is_male" + ], + [ + "singer.is_male", + "performer.is_male" + ], + [ + "artist.is_male", + "performer.is_male" + ] + ] + }, + { + "question": "list all song names by singers #above the average age# .", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "artist": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "performer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ] + }, + "linking_list": [ + [ + "above the average age", + "singer.age" + ], + [ + "above the average age", + "artist.age" + ], + [ + "above the average age", + "performer.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.age" + ], + [ + 0, + "artist.age" + ], + [ + 0, + "performer.age" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "artist.singer_id" + ], + [ + "singer.singer_id", + "performer.singer_id" + ], + [ + "artist.singer_id", + "performer.singer_id" + ], + [ + "singer.name", + "artist.name" + ], + [ + "singer.name", + "performer.name" + ], + [ + "artist.name", + "performer.name" + ], + [ + "singer.country", + "artist.country" + ], + [ + "singer.country", + "performer.country" + ], + [ + "artist.country", + "performer.country" + ], + [ + "singer.song_name", + "artist.song_name" + ], + [ + "singer.song_name", + "performer.song_name" + ], + [ + "artist.song_name", + "performer.song_name" + ], + [ + "singer.song_release_year", + "artist.song_release_year" + ], + [ + "singer.song_release_year", + "performer.song_release_year" + ], + [ + "artist.song_release_year", + "performer.song_release_year" + ], + [ + "singer.age", + "artist.age" + ], + [ + "singer.age", + "performer.age" + ], + [ + "artist.age", + "performer.age" + ], + [ + "singer.is_male", + "artist.is_male" + ], + [ + "singer.is_male", + "performer.is_male" + ], + [ + "artist.is_male", + "performer.is_male" + ] + ] + }, + { + "question": "show #location# and #name# for all stadiums with a capacity between 5000 and 10000.", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "arena": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "venue": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ] + }, + "linking_list": [ + [ + "location", + "stadium.location" + ], + [ + "location", + "arena.location" + ], + [ + "location", + "venue.location" + ], + [ + "name", + "stadium.name" + ], + [ + "name", + "arena.name" + ], + [ + "name", + "venue.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "stadium.location" + ], + [ + 0, + "arena.location" + ], + [ + 0, + "venue.location" + ], + [ + 1, + "stadium.name" + ], + [ + 1, + "arena.name" + ], + [ + 1, + "venue.name" + ] + ], + "linking_list_col": [ + [ + "stadium.stadium_id", + "arena.stadium_id" + ], + [ + "stadium.stadium_id", + "venue.stadium_id" + ], + [ + "arena.stadium_id", + "venue.stadium_id" + ], + [ + "stadium.location", + "arena.location" + ], + [ + "stadium.location", + "venue.location" + ], + [ + "arena.location", + "venue.location" + ], + [ + "stadium.name", + "arena.name" + ], + [ + "stadium.name", + "venue.name" + ], + [ + "arena.name", + "venue.name" + ], + [ + "stadium.capacity", + "arena.capacity" + ], + [ + "stadium.capacity", + "venue.capacity" + ], + [ + "arena.capacity", + "venue.capacity" + ], + [ + "stadium.highest", + "arena.highest" + ], + [ + "stadium.highest", + "venue.highest" + ], + [ + "arena.highest", + "venue.highest" + ], + [ + "stadium.lowest", + "arena.lowest" + ], + [ + "stadium.lowest", + "venue.lowest" + ], + [ + "arena.lowest", + "venue.lowest" + ], + [ + "stadium.average", + "arena.average" + ], + [ + "stadium.average", + "venue.average" + ], + [ + "arena.average", + "venue.average" + ] + ] + }, + { + "question": "what are the locations and names of all stations with #capacity# between 5000 and 10000?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "arena": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "venue": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ] + }, + "linking_list": [ + [ + "capacity", + "stadium.capacity" + ], + [ + "capacity", + "arena.capacity" + ], + [ + "capacity", + "venue.capacity" + ] + ], + "linking_list_idx": [ + [ + 0, + "stadium.capacity" + ], + [ + 0, + "arena.capacity" + ], + [ + 0, + "venue.capacity" + ] + ], + "linking_list_col": [ + [ + "stadium.stadium_id", + "arena.stadium_id" + ], + [ + "stadium.stadium_id", + "venue.stadium_id" + ], + [ + "arena.stadium_id", + "venue.stadium_id" + ], + [ + "stadium.location", + "arena.location" + ], + [ + "stadium.location", + "venue.location" + ], + [ + "arena.location", + "venue.location" + ], + [ + "stadium.name", + "arena.name" + ], + [ + "stadium.name", + "venue.name" + ], + [ + "arena.name", + "venue.name" + ], + [ + "stadium.capacity", + "arena.capacity" + ], + [ + "stadium.capacity", + "venue.capacity" + ], + [ + "arena.capacity", + "venue.capacity" + ], + [ + "stadium.highest", + "arena.highest" + ], + [ + "stadium.highest", + "venue.highest" + ], + [ + "arena.highest", + "venue.highest" + ], + [ + "stadium.lowest", + "arena.lowest" + ], + [ + "stadium.lowest", + "venue.lowest" + ], + [ + "arena.lowest", + "venue.lowest" + ], + [ + "stadium.average", + "arena.average" + ], + [ + "stadium.average", + "venue.average" + ], + [ + "arena.average", + "venue.average" + ] + ] + }, + { + "question": "what is the #name# and #capacity# for the stadium with highest average attendance?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "arena": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "venue": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ] + }, + "linking_list": [ + [ + "name", + "stadium.name" + ], + [ + "name", + "arena.name" + ], + [ + "name", + "venue.name" + ], + [ + "capacity", + "stadium.capacity" + ], + [ + "capacity", + "arena.capacity" + ], + [ + "capacity", + "venue.capacity" + ] + ], + "linking_list_idx": [ + [ + 0, + "stadium.name" + ], + [ + 0, + "arena.name" + ], + [ + 0, + "venue.name" + ], + [ + 1, + "stadium.capacity" + ], + [ + 1, + "arena.capacity" + ], + [ + 1, + "venue.capacity" + ] + ], + "linking_list_col": [ + [ + "stadium.stadium_id", + "arena.stadium_id" + ], + [ + "stadium.stadium_id", + "venue.stadium_id" + ], + [ + "arena.stadium_id", + "venue.stadium_id" + ], + [ + "stadium.location", + "arena.location" + ], + [ + "stadium.location", + "venue.location" + ], + [ + "arena.location", + "venue.location" + ], + [ + "stadium.name", + "arena.name" + ], + [ + "stadium.name", + "venue.name" + ], + [ + "arena.name", + "venue.name" + ], + [ + "stadium.capacity", + "arena.capacity" + ], + [ + "stadium.capacity", + "venue.capacity" + ], + [ + "arena.capacity", + "venue.capacity" + ], + [ + "stadium.highest", + "arena.highest" + ], + [ + "stadium.highest", + "venue.highest" + ], + [ + "arena.highest", + "venue.highest" + ], + [ + "stadium.lowest", + "arena.lowest" + ], + [ + "stadium.lowest", + "venue.lowest" + ], + [ + "arena.lowest", + "venue.lowest" + ], + [ + "stadium.average", + "arena.average" + ], + [ + "stadium.average", + "venue.average" + ], + [ + "arena.average", + "venue.average" + ] + ] + }, + { + "question": "what is the #name# and #capacity# for the stadium with the highest average attendance?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "arena": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "venue": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ] + }, + "linking_list": [ + [ + "name", + "stadium.name" + ], + [ + "name", + "arena.name" + ], + [ + "name", + "venue.name" + ], + [ + "capacity", + "stadium.capacity" + ], + [ + "capacity", + "arena.capacity" + ], + [ + "capacity", + "venue.capacity" + ] + ], + "linking_list_idx": [ + [ + 0, + "stadium.name" + ], + [ + 0, + "arena.name" + ], + [ + 0, + "venue.name" + ], + [ + 1, + "stadium.capacity" + ], + [ + 1, + "arena.capacity" + ], + [ + 1, + "venue.capacity" + ] + ], + "linking_list_col": [ + [ + "stadium.stadium_id", + "arena.stadium_id" + ], + [ + "stadium.stadium_id", + "venue.stadium_id" + ], + [ + "arena.stadium_id", + "venue.stadium_id" + ], + [ + "stadium.location", + "arena.location" + ], + [ + "stadium.location", + "venue.location" + ], + [ + "arena.location", + "venue.location" + ], + [ + "stadium.name", + "arena.name" + ], + [ + "stadium.name", + "venue.name" + ], + [ + "arena.name", + "venue.name" + ], + [ + "stadium.capacity", + "arena.capacity" + ], + [ + "stadium.capacity", + "venue.capacity" + ], + [ + "arena.capacity", + "venue.capacity" + ], + [ + "stadium.highest", + "arena.highest" + ], + [ + "stadium.highest", + "venue.highest" + ], + [ + "arena.highest", + "venue.highest" + ], + [ + "stadium.lowest", + "arena.lowest" + ], + [ + "stadium.lowest", + "venue.lowest" + ], + [ + "arena.lowest", + "venue.lowest" + ], + [ + "stadium.average", + "arena.average" + ], + [ + "stadium.average", + "venue.average" + ], + [ + "arena.average", + "venue.average" + ] + ] + }, + { + "question": "how many concerts are there in #year# 2014 or 2015?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "gig": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "performance": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ] + }, + "linking_list": [ + [ + "year", + "concert.year" + ], + [ + "year", + "gig.year" + ], + [ + "year", + "performance.year" + ] + ], + "linking_list_idx": [ + [ + 0, + "concert.year" + ], + [ + 0, + "gig.year" + ], + [ + 0, + "performance.year" + ] + ], + "linking_list_col": [ + [ + "concert.concert_id", + "gig.concert_id" + ], + [ + "concert.concert_id", + "performance.concert_id" + ], + [ + "gig.concert_id", + "performance.concert_id" + ], + [ + "concert.concert_name", + "gig.concert_name" + ], + [ + "concert.concert_name", + "performance.concert_name" + ], + [ + "gig.concert_name", + "performance.concert_name" + ], + [ + "concert.theme", + "gig.theme" + ], + [ + "concert.theme", + "performance.theme" + ], + [ + "gig.theme", + "performance.theme" + ], + [ + "concert.stadium_id", + "gig.stadium_id" + ], + [ + "concert.stadium_id", + "performance.stadium_id" + ], + [ + "gig.stadium_id", + "performance.stadium_id" + ], + [ + "concert.year", + "gig.year" + ], + [ + "concert.year", + "performance.year" + ], + [ + "gig.year", + "performance.year" + ] + ] + }, + { + "question": "how many #concerts# occurred in #2014# or 2015?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "gig": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "performance": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ] + }, + "linking_list": [ + [ + "concerts", + "concert.concert_id" + ], + [ + "concerts", + "gig.concert_id" + ], + [ + "concerts", + "performance.concert_id" + ], + [ + "2014", + "concert.year" + ], + [ + "2014", + "gig.year" + ], + [ + "2014", + "performance.year" + ] + ], + "linking_list_idx": [ + [ + 0, + "concert.concert_id" + ], + [ + 0, + "gig.concert_id" + ], + [ + 0, + "performance.concert_id" + ], + [ + 1, + "concert.year" + ], + [ + 1, + "gig.year" + ], + [ + 1, + "performance.year" + ] + ], + "linking_list_col": [ + [ + "concert.concert_id", + "gig.concert_id" + ], + [ + "concert.concert_id", + "performance.concert_id" + ], + [ + "gig.concert_id", + "performance.concert_id" + ], + [ + "concert.concert_name", + "gig.concert_name" + ], + [ + "concert.concert_name", + "performance.concert_name" + ], + [ + "gig.concert_name", + "performance.concert_name" + ], + [ + "concert.theme", + "gig.theme" + ], + [ + "concert.theme", + "performance.theme" + ], + [ + "gig.theme", + "performance.theme" + ], + [ + "concert.stadium_id", + "gig.stadium_id" + ], + [ + "concert.stadium_id", + "performance.stadium_id" + ], + [ + "gig.stadium_id", + "performance.stadium_id" + ], + [ + "concert.year", + "gig.year" + ], + [ + "concert.year", + "performance.year" + ], + [ + "gig.year", + "performance.year" + ] + ] + }, + { + "question": "show the #stadium name# and the #number of concerts# in each stadium.", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "gig": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "performance": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ] + }, + "linking_list": [ + [ + "stadium name", + "stadium.name" + ], + [ + "number of concerts", + "concert.concert_id" + ], + [ + "number of concerts", + "gig.concert_id" + ], + [ + "number of concerts", + "performance.concert_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "stadium.name" + ], + [ + 1, + "concert.concert_id" + ], + [ + 1, + "gig.concert_id" + ], + [ + 1, + "performance.concert_id" + ] + ], + "linking_list_col": [ + [ + "concert.concert_id", + "gig.concert_id" + ], + [ + "concert.concert_id", + "performance.concert_id" + ], + [ + "gig.concert_id", + "performance.concert_id" + ], + [ + "concert.concert_name", + "gig.concert_name" + ], + [ + "concert.concert_name", + "performance.concert_name" + ], + [ + "gig.concert_name", + "performance.concert_name" + ], + [ + "concert.theme", + "gig.theme" + ], + [ + "concert.theme", + "performance.theme" + ], + [ + "gig.theme", + "performance.theme" + ], + [ + "concert.stadium_id", + "gig.stadium_id" + ], + [ + "concert.stadium_id", + "performance.stadium_id" + ], + [ + "gig.stadium_id", + "performance.stadium_id" + ], + [ + "concert.year", + "gig.year" + ], + [ + "concert.year", + "performance.year" + ], + [ + "gig.year", + "performance.year" + ] + ] + }, + { + "question": "which #year# has most number of concerts?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "gig": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "performance": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ] + }, + "linking_list": [ + [ + "year", + "concert.year" + ], + [ + "year", + "gig.year" + ], + [ + "year", + "performance.year" + ] + ], + "linking_list_idx": [ + [ + 0, + "concert.year" + ], + [ + 0, + "gig.year" + ], + [ + 0, + "performance.year" + ] + ], + "linking_list_col": [ + [ + "concert.concert_id", + "gig.concert_id" + ], + [ + "concert.concert_id", + "performance.concert_id" + ], + [ + "gig.concert_id", + "performance.concert_id" + ], + [ + "concert.concert_name", + "gig.concert_name" + ], + [ + "concert.concert_name", + "performance.concert_name" + ], + [ + "gig.concert_name", + "performance.concert_name" + ], + [ + "concert.theme", + "gig.theme" + ], + [ + "concert.theme", + "performance.theme" + ], + [ + "gig.theme", + "performance.theme" + ], + [ + "concert.stadium_id", + "gig.stadium_id" + ], + [ + "concert.stadium_id", + "performance.stadium_id" + ], + [ + "gig.stadium_id", + "performance.stadium_id" + ], + [ + "concert.year", + "gig.year" + ], + [ + "concert.year", + "performance.year" + ], + [ + "gig.year", + "performance.year" + ] + ] + }, + { + "question": "what is the #year# that had the most concerts?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "gig": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "performance": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ] + }, + "linking_list": [ + [ + "year", + "concert.year" + ], + [ + "year", + "gig.year" + ], + [ + "year", + "performance.year" + ] + ], + "linking_list_idx": [ + [ + 0, + "concert.year" + ], + [ + 0, + "gig.year" + ], + [ + 0, + "performance.year" + ] + ], + "linking_list_col": [ + [ + "concert.concert_id", + "gig.concert_id" + ], + [ + "concert.concert_id", + "performance.concert_id" + ], + [ + "gig.concert_id", + "performance.concert_id" + ], + [ + "concert.concert_name", + "gig.concert_name" + ], + [ + "concert.concert_name", + "performance.concert_name" + ], + [ + "gig.concert_name", + "performance.concert_name" + ], + [ + "concert.theme", + "gig.theme" + ], + [ + "concert.theme", + "performance.theme" + ], + [ + "gig.theme", + "performance.theme" + ], + [ + "concert.stadium_id", + "gig.stadium_id" + ], + [ + "concert.stadium_id", + "performance.stadium_id" + ], + [ + "gig.stadium_id", + "performance.stadium_id" + ], + [ + "concert.year", + "gig.year" + ], + [ + "concert.year", + "performance.year" + ], + [ + "gig.year", + "performance.year" + ] + ] + }, + { + "question": "show #countries# where a #singer above age 40# and a singer below 30 are from.", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "artist": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "performer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ] + }, + "linking_list": [ + [ + "countries", + "singer.country" + ], + [ + "countries", + "artist.country" + ], + [ + "countries", + "performer.country" + ], + [ + "singer above age 40", + "singer.age" + ], + [ + "singer above age 40", + "artist.age" + ], + [ + "singer above age 40", + "performer.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.country" + ], + [ + 0, + "artist.country" + ], + [ + 0, + "performer.country" + ], + [ + 1, + "singer.age" + ], + [ + 1, + "artist.age" + ], + [ + 1, + "performer.age" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "artist.singer_id" + ], + [ + "singer.singer_id", + "performer.singer_id" + ], + [ + "artist.singer_id", + "performer.singer_id" + ], + [ + "singer.name", + "artist.name" + ], + [ + "singer.name", + "performer.name" + ], + [ + "artist.name", + "performer.name" + ], + [ + "singer.country", + "artist.country" + ], + [ + "singer.country", + "performer.country" + ], + [ + "artist.country", + "performer.country" + ], + [ + "singer.song_name", + "artist.song_name" + ], + [ + "singer.song_name", + "performer.song_name" + ], + [ + "artist.song_name", + "performer.song_name" + ], + [ + "singer.song_release_year", + "artist.song_release_year" + ], + [ + "singer.song_release_year", + "performer.song_release_year" + ], + [ + "artist.song_release_year", + "performer.song_release_year" + ], + [ + "singer.age", + "artist.age" + ], + [ + "singer.age", + "performer.age" + ], + [ + "artist.age", + "performer.age" + ], + [ + "singer.is_male", + "artist.is_male" + ], + [ + "singer.is_male", + "performer.is_male" + ], + [ + "artist.is_male", + "performer.is_male" + ] + ] + }, + { + "question": "show the name and #theme# for all concerts and the #number of singers# in each concert.", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "concert_performer": [ + "concert_id", + "singer_id" + ], + "concert_artist": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "theme", + "concert.theme" + ], + [ + "number of singers", + "singer_in_concert.singer_id" + ], + [ + "number of singers", + "concert_performer.singer_id" + ], + [ + "number of singers", + "concert_artist.singer_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "concert.theme" + ], + [ + 1, + "singer_in_concert.singer_id" + ], + [ + 1, + "concert_performer.singer_id" + ], + [ + 1, + "concert_artist.singer_id" + ] + ], + "linking_list_col": [ + [ + "singer_in_concert.concert_id", + "concert_performer.concert_id" + ], + [ + "singer_in_concert.concert_id", + "concert_artist.concert_id" + ], + [ + "concert_performer.concert_id", + "concert_artist.concert_id" + ], + [ + "singer_in_concert.singer_id", + "concert_performer.singer_id" + ], + [ + "singer_in_concert.singer_id", + "concert_artist.singer_id" + ], + [ + "concert_performer.singer_id", + "concert_artist.singer_id" + ] + ] + }, + { + "question": "list #singer names# and #number of concerts# for each singer.", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "concert_performer": [ + "concert_id", + "singer_id" + ], + "concert_artist": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "singer names", + "singer.name" + ], + [ + "number of concerts", + "singer_in_concert.concert_id" + ], + [ + "number of concerts", + "concert_performer.concert_id" + ], + [ + "number of concerts", + "concert_artist.concert_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 1, + "singer_in_concert.concert_id" + ], + [ + 1, + "concert_performer.concert_id" + ], + [ + 1, + "concert_artist.concert_id" + ] + ], + "linking_list_col": [ + [ + "singer_in_concert.concert_id", + "concert_performer.concert_id" + ], + [ + "singer_in_concert.concert_id", + "concert_artist.concert_id" + ], + [ + "concert_performer.concert_id", + "concert_artist.concert_id" + ], + [ + "singer_in_concert.singer_id", + "concert_performer.singer_id" + ], + [ + "singer_in_concert.singer_id", + "concert_artist.singer_id" + ], + [ + "concert_performer.singer_id", + "concert_artist.singer_id" + ] + ] + }, + { + "question": "what are the names of the singers and #number of concerts# for each person?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "concert_performer": [ + "concert_id", + "singer_id" + ], + "concert_artist": [ + "concert_id", + "singer_id" + ] + }, + "linking_list": [ + [ + "number of concerts", + "singer_in_concert.concert_id" + ], + [ + "number of concerts", + "concert_performer.concert_id" + ], + [ + "number of concerts", + "concert_artist.concert_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer_in_concert.concert_id" + ], + [ + 0, + "concert_performer.concert_id" + ], + [ + 0, + "concert_artist.concert_id" + ] + ], + "linking_list_col": [ + [ + "singer_in_concert.concert_id", + "concert_performer.concert_id" + ], + [ + "singer_in_concert.concert_id", + "concert_artist.concert_id" + ], + [ + "concert_performer.concert_id", + "concert_artist.concert_id" + ], + [ + "singer_in_concert.singer_id", + "concert_performer.singer_id" + ], + [ + "singer_in_concert.singer_id", + "concert_artist.singer_id" + ], + [ + "concert_performer.singer_id", + "concert_artist.singer_id" + ] + ] + }, + { + "question": "what is the #name# and #nation# of the singer who have a song having 'hey' in its name?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "artist": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "performer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ] + }, + "linking_list": [ + [ + "name", + "singer.name" + ], + [ + "name", + "artist.name" + ], + [ + "name", + "performer.name" + ], + [ + "nation", + "singer.country" + ], + [ + "nation", + "artist.country" + ], + [ + "nation", + "performer.country" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 0, + "artist.name" + ], + [ + 0, + "performer.name" + ], + [ + 1, + "singer.country" + ], + [ + 1, + "artist.country" + ], + [ + 1, + "performer.country" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "artist.singer_id" + ], + [ + "singer.singer_id", + "performer.singer_id" + ], + [ + "artist.singer_id", + "performer.singer_id" + ], + [ + "singer.name", + "artist.name" + ], + [ + "singer.name", + "performer.name" + ], + [ + "artist.name", + "performer.name" + ], + [ + "singer.country", + "artist.country" + ], + [ + "singer.country", + "performer.country" + ], + [ + "artist.country", + "performer.country" + ], + [ + "singer.song_name", + "artist.song_name" + ], + [ + "singer.song_name", + "performer.song_name" + ], + [ + "artist.song_name", + "performer.song_name" + ], + [ + "singer.song_release_year", + "artist.song_release_year" + ], + [ + "singer.song_release_year", + "performer.song_release_year" + ], + [ + "artist.song_release_year", + "performer.song_release_year" + ], + [ + "singer.age", + "artist.age" + ], + [ + "singer.age", + "performer.age" + ], + [ + "artist.age", + "performer.age" + ], + [ + "singer.is_male", + "artist.is_male" + ], + [ + "singer.is_male", + "performer.is_male" + ], + [ + "artist.is_male", + "performer.is_male" + ] + ] + }, + { + "question": "what is the #name# and #country# of origin of every singer who has a song with the word 'hey' in its title?", + "db_schema": { + "stadium": [ + "stadium_id", + "location", + "name", + "capacity", + "highest", + "lowest", + "average" + ], + "singer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "concert": [ + "concert_id", + "concert_name", + "theme", + "stadium_id", + "year" + ], + "singer_in_concert": [ + "concert_id", + "singer_id" + ], + "artist": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ], + "performer": [ + "singer_id", + "name", + "country", + "song_name", + "song_release_year", + "age", + "is_male" + ] + }, + "linking_list": [ + [ + "name", + "singer.name" + ], + [ + "name", + "artist.name" + ], + [ + "name", + "performer.name" + ], + [ + "country", + "singer.country" + ], + [ + "country", + "artist.country" + ], + [ + "country", + "performer.country" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 0, + "artist.name" + ], + [ + 0, + "performer.name" + ], + [ + 1, + "singer.country" + ], + [ + 1, + "artist.country" + ], + [ + 1, + "performer.country" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "artist.singer_id" + ], + [ + "singer.singer_id", + "performer.singer_id" + ], + [ + "artist.singer_id", + "performer.singer_id" + ], + [ + "singer.name", + "artist.name" + ], + [ + "singer.name", + "performer.name" + ], + [ + "artist.name", + "performer.name" + ], + [ + "singer.country", + "artist.country" + ], + [ + "singer.country", + "performer.country" + ], + [ + "artist.country", + "performer.country" + ], + [ + "singer.song_name", + "artist.song_name" + ], + [ + "singer.song_name", + "performer.song_name" + ], + [ + "artist.song_name", + "performer.song_name" + ], + [ + "singer.song_release_year", + "artist.song_release_year" + ], + [ + "singer.song_release_year", + "performer.song_release_year" + ], + [ + "artist.song_release_year", + "performer.song_release_year" + ], + [ + "singer.age", + "artist.age" + ], + [ + "singer.age", + "performer.age" + ], + [ + "artist.age", + "performer.age" + ], + [ + "singer.is_male", + "artist.is_male" + ], + [ + "singer.is_male", + "performer.is_male" + ], + [ + "artist.is_male", + "performer.is_male" + ] + ] + }, + { + "question": "find the #number of pets# whose weight is heavier than 10.", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "number of pets", + "pets.weight" + ], + [ + "number of pets", + "Animals.weight" + ], + [ + "number of pets", + "Companions.weight" + ] + ], + "linking_list_idx": [ + [ + 0, + "pets.weight" + ], + [ + 0, + "Animals.weight" + ], + [ + 0, + "Companions.weight" + ] + ], + "linking_list_col": [ + [ + "pets.petid", + "animals.petid" + ], + [ + "pets.petid", + "companions.petid" + ], + [ + "animals.petid", + "companions.petid" + ], + [ + "pets.pettype", + "animals.pettype" + ], + [ + "pets.pettype", + "companions.pettype" + ], + [ + "animals.pettype", + "companions.pettype" + ], + [ + "pets.pet_age", + "animals.pet_age" + ], + [ + "pets.pet_age", + "companions.pet_age" + ], + [ + "animals.pet_age", + "companions.pet_age" + ], + [ + "pets.weight", + "animals.weight" + ], + [ + "pets.weight", + "companions.weight" + ], + [ + "animals.weight", + "companions.weight" + ] + ] + }, + { + "question": "find the #weight of the youngest dog# .", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "weight of the youngest dog", + "pets.weight" + ], + [ + "weight of the youngest dog", + "Animals.weight" + ], + [ + "weight of the youngest dog", + "Companions.weight" + ] + ], + "linking_list_idx": [ + [ + 0, + "pets.weight" + ], + [ + 0, + "Animals.weight" + ], + [ + 0, + "Companions.weight" + ] + ], + "linking_list_col": [ + [ + "pets.petid", + "animals.petid" + ], + [ + "pets.petid", + "companions.petid" + ], + [ + "animals.petid", + "companions.petid" + ], + [ + "pets.pettype", + "animals.pettype" + ], + [ + "pets.pettype", + "companions.pettype" + ], + [ + "animals.pettype", + "companions.pettype" + ], + [ + "pets.pet_age", + "animals.pet_age" + ], + [ + "pets.pet_age", + "companions.pet_age" + ], + [ + "animals.pet_age", + "companions.pet_age" + ], + [ + "pets.weight", + "animals.weight" + ], + [ + "pets.weight", + "companions.weight" + ], + [ + "animals.weight", + "companions.weight" + ] + ] + }, + { + "question": "how much does the #youngest dog# weigh?", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "youngest dog", + "pets.pettype" + ], + [ + "youngest dog", + "Animals.pettype" + ], + [ + "youngest dog", + "Companions.pettype" + ] + ], + "linking_list_idx": [ + [ + 0, + "pets.pettype" + ], + [ + 0, + "Animals.pettype" + ], + [ + 0, + "Companions.pettype" + ] + ], + "linking_list_col": [ + [ + "pets.petid", + "animals.petid" + ], + [ + "pets.petid", + "companions.petid" + ], + [ + "animals.petid", + "companions.petid" + ], + [ + "pets.pettype", + "animals.pettype" + ], + [ + "pets.pettype", + "companions.pettype" + ], + [ + "animals.pettype", + "companions.pettype" + ], + [ + "pets.pet_age", + "animals.pet_age" + ], + [ + "pets.pet_age", + "companions.pet_age" + ], + [ + "animals.pet_age", + "companions.pet_age" + ], + [ + "pets.weight", + "animals.weight" + ], + [ + "pets.weight", + "companions.weight" + ], + [ + "animals.weight", + "companions.weight" + ] + ] + }, + { + "question": "find the #maximum weight# for each type of pet. list the maximum weight and #pet type# .", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "maximum weight", + "pets.weight" + ], + [ + "maximum weight", + "Animals.weight" + ], + [ + "maximum weight", + "Companions.weight" + ], + [ + "pet type", + "pets.pettype" + ], + [ + "pet type", + "Animals.pettype" + ], + [ + "pet type", + "Companions.pettype" + ] + ], + "linking_list_idx": [ + [ + 0, + "pets.weight" + ], + [ + 0, + "Animals.weight" + ], + [ + 0, + "Companions.weight" + ], + [ + 1, + "pets.pettype" + ], + [ + 1, + "Animals.pettype" + ], + [ + 1, + "Companions.pettype" + ] + ], + "linking_list_col": [ + [ + "pets.petid", + "animals.petid" + ], + [ + "pets.petid", + "companions.petid" + ], + [ + "animals.petid", + "companions.petid" + ], + [ + "pets.pettype", + "animals.pettype" + ], + [ + "pets.pettype", + "companions.pettype" + ], + [ + "animals.pettype", + "companions.pettype" + ], + [ + "pets.pet_age", + "animals.pet_age" + ], + [ + "pets.pet_age", + "companions.pet_age" + ], + [ + "animals.pet_age", + "companions.pet_age" + ], + [ + "pets.weight", + "animals.weight" + ], + [ + "pets.weight", + "companions.weight" + ], + [ + "animals.weight", + "companions.weight" + ] + ] + }, + { + "question": "list the #maximum weight# and type for each type of pet.", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "maximum weight", + "pets.weight" + ], + [ + "maximum weight", + "Animals.weight" + ], + [ + "maximum weight", + "Companions.weight" + ] + ], + "linking_list_idx": [ + [ + 0, + "pets.weight" + ], + [ + 0, + "Animals.weight" + ], + [ + 0, + "Companions.weight" + ] + ], + "linking_list_col": [ + [ + "pets.petid", + "animals.petid" + ], + [ + "pets.petid", + "companions.petid" + ], + [ + "animals.petid", + "companions.petid" + ], + [ + "pets.pettype", + "animals.pettype" + ], + [ + "pets.pettype", + "companions.pettype" + ], + [ + "animals.pettype", + "companions.pettype" + ], + [ + "pets.pet_age", + "animals.pet_age" + ], + [ + "pets.pet_age", + "companions.pet_age" + ], + [ + "animals.pet_age", + "companions.pet_age" + ], + [ + "pets.weight", + "animals.weight" + ], + [ + "pets.weight", + "companions.weight" + ], + [ + "animals.weight", + "companions.weight" + ] + ] + }, + { + "question": "how many #pets# are owned by #students# that have an age greater than 20?", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "owns": [ + "stuid", + "petid" + ], + "has_animal": [ + "stuid", + "petid" + ] + }, + "linking_list": [ + [ + "pets", + "has_pet.stuid" + ], + [ + "pets", + "owns.stuid" + ], + [ + "pets", + "has_animal.stuid" + ], + [ + "students", + "student.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "has_pet.stuid" + ], + [ + 0, + "owns.stuid" + ], + [ + 0, + "has_animal.stuid" + ], + [ + 1, + "student.age" + ] + ], + "linking_list_col": [ + [ + "has_pet.stuid", + "owns.stuid" + ], + [ + "has_pet.stuid", + "has_animal.stuid" + ], + [ + "owns.stuid", + "has_animal.stuid" + ], + [ + "has_pet.petid", + "owns.petid" + ], + [ + "has_pet.petid", + "has_animal.petid" + ], + [ + "owns.petid", + "has_animal.petid" + ] + ] + }, + { + "question": "find the #number of dog pets# that are raised by #female students# (with sex f).", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "number of dog pets", + "pets.pettype" + ], + [ + "number of dog pets", + "Animals.pettype" + ], + [ + "number of dog pets", + "Companions.pettype" + ], + [ + "female students", + "student.sex" + ] + ], + "linking_list_idx": [ + [ + 0, + "pets.pettype" + ], + [ + 0, + "Animals.pettype" + ], + [ + 0, + "Companions.pettype" + ], + [ + 1, + "student.sex" + ] + ], + "linking_list_col": [ + [ + "pets.petid", + "animals.petid" + ], + [ + "pets.petid", + "companions.petid" + ], + [ + "animals.petid", + "companions.petid" + ], + [ + "pets.pettype", + "animals.pettype" + ], + [ + "pets.pettype", + "companions.pettype" + ], + [ + "animals.pettype", + "companions.pettype" + ], + [ + "pets.pet_age", + "animals.pet_age" + ], + [ + "pets.pet_age", + "companions.pet_age" + ], + [ + "animals.pet_age", + "companions.pet_age" + ], + [ + "pets.weight", + "animals.weight" + ], + [ + "pets.weight", + "companions.weight" + ], + [ + "animals.weight", + "companions.weight" + ] + ] + }, + { + "question": "how many #dog# pets are raised by #female# students?", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "dog", + "pets.pettype" + ], + [ + "dog", + "Animals.pettype" + ], + [ + "dog", + "Companions.pettype" + ], + [ + "female", + "student.sex" + ] + ], + "linking_list_idx": [ + [ + 0, + "pets.pettype" + ], + [ + 0, + "Animals.pettype" + ], + [ + 0, + "Companions.pettype" + ], + [ + 1, + "student.sex" + ] + ], + "linking_list_col": [ + [ + "pets.petid", + "animals.petid" + ], + [ + "pets.petid", + "companions.petid" + ], + [ + "animals.petid", + "companions.petid" + ], + [ + "pets.pettype", + "animals.pettype" + ], + [ + "pets.pettype", + "companions.pettype" + ], + [ + "animals.pettype", + "companions.pettype" + ], + [ + "pets.pet_age", + "animals.pet_age" + ], + [ + "pets.pet_age", + "companions.pet_age" + ], + [ + "animals.pet_age", + "companions.pet_age" + ], + [ + "pets.weight", + "animals.weight" + ], + [ + "pets.weight", + "companions.weight" + ], + [ + "animals.weight", + "companions.weight" + ] + ] + }, + { + "question": "find the #first name# of students who have #cat# or #dog# pet.", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "first name", + "student.fname" + ], + [ + "cat", + "pets.pettype" + ], + [ + "cat", + "Animals.pettype" + ], + [ + "cat", + "Companions.pettype" + ], + [ + "dog", + "pets.pettype" + ], + [ + "dog", + "Animals.pettype" + ], + [ + "dog", + "Companions.pettype" + ] + ], + "linking_list_idx": [ + [ + 0, + "student.fname" + ], + [ + 1, + "pets.pettype" + ], + [ + 1, + "Animals.pettype" + ], + [ + 1, + "Companions.pettype" + ], + [ + 2, + "pets.pettype" + ], + [ + 2, + "Animals.pettype" + ], + [ + 2, + "Companions.pettype" + ] + ], + "linking_list_col": [ + [ + "pets.petid", + "animals.petid" + ], + [ + "pets.petid", + "companions.petid" + ], + [ + "animals.petid", + "companions.petid" + ], + [ + "pets.pettype", + "animals.pettype" + ], + [ + "pets.pettype", + "companions.pettype" + ], + [ + "animals.pettype", + "companions.pettype" + ], + [ + "pets.pet_age", + "animals.pet_age" + ], + [ + "pets.pet_age", + "companions.pet_age" + ], + [ + "animals.pet_age", + "companions.pet_age" + ], + [ + "pets.weight", + "animals.weight" + ], + [ + "pets.weight", + "companions.weight" + ], + [ + "animals.weight", + "companions.weight" + ] + ] + }, + { + "question": "what are the #first names# of every student who has a #cat# or #dog# as a pet?", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "first names", + "student.fname" + ], + [ + "cat", + "pets.pettype" + ], + [ + "cat", + "Animals.pettype" + ], + [ + "cat", + "Companions.pettype" + ], + [ + "dog", + "pets.pettype" + ], + [ + "dog", + "Animals.pettype" + ], + [ + "dog", + "Companions.pettype" + ] + ], + "linking_list_idx": [ + [ + 0, + "student.fname" + ], + [ + 1, + "pets.pettype" + ], + [ + 1, + "Animals.pettype" + ], + [ + 1, + "Companions.pettype" + ], + [ + 2, + "pets.pettype" + ], + [ + 2, + "Animals.pettype" + ], + [ + 2, + "Companions.pettype" + ] + ], + "linking_list_col": [ + [ + "pets.petid", + "animals.petid" + ], + [ + "pets.petid", + "companions.petid" + ], + [ + "animals.petid", + "companions.petid" + ], + [ + "pets.pettype", + "animals.pettype" + ], + [ + "pets.pettype", + "companions.pettype" + ], + [ + "animals.pettype", + "companions.pettype" + ], + [ + "pets.pet_age", + "animals.pet_age" + ], + [ + "pets.pet_age", + "companions.pet_age" + ], + [ + "animals.pet_age", + "companions.pet_age" + ], + [ + "pets.weight", + "animals.weight" + ], + [ + "pets.weight", + "companions.weight" + ], + [ + "animals.weight", + "companions.weight" + ] + ] + }, + { + "question": "what are the #students' first names# who have both #cats# and #dogs# as pets?", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "cats", + "pets.pettype" + ], + [ + "cats", + "Animals.pettype" + ], + [ + "cats", + "Companions.pettype" + ], + [ + "dogs", + "pets.pettype" + ], + [ + "dogs", + "Animals.pettype" + ], + [ + "dogs", + "Companions.pettype" + ], + [ + "students' first names", + "student.fname" + ] + ], + "linking_list_idx": [ + [ + 0, + "pets.pettype" + ], + [ + 0, + "Animals.pettype" + ], + [ + 0, + "Companions.pettype" + ], + [ + 1, + "pets.pettype" + ], + [ + 1, + "Animals.pettype" + ], + [ + 1, + "Companions.pettype" + ], + [ + 2, + "student.fname" + ] + ], + "linking_list_col": [ + [ + "pets.petid", + "animals.petid" + ], + [ + "pets.petid", + "companions.petid" + ], + [ + "animals.petid", + "companions.petid" + ], + [ + "pets.pettype", + "animals.pettype" + ], + [ + "pets.pettype", + "companions.pettype" + ], + [ + "animals.pettype", + "companions.pettype" + ], + [ + "pets.pet_age", + "animals.pet_age" + ], + [ + "pets.pet_age", + "companions.pet_age" + ], + [ + "animals.pet_age", + "companions.pet_age" + ], + [ + "pets.weight", + "animals.weight" + ], + [ + "pets.weight", + "companions.weight" + ], + [ + "animals.weight", + "companions.weight" + ] + ] + }, + { + "question": "find the id of students who do not have a #cat pet# .", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "cat pet", + "pets.pettype" + ], + [ + "cat pet", + "Animals.pettype" + ], + [ + "cat pet", + "Companions.pettype" + ] + ], + "linking_list_idx": [ + [ + 0, + "pets.pettype" + ], + [ + 0, + "Animals.pettype" + ], + [ + 0, + "Companions.pettype" + ] + ], + "linking_list_col": [ + [ + "pets.petid", + "animals.petid" + ], + [ + "pets.petid", + "companions.petid" + ], + [ + "animals.petid", + "companions.petid" + ], + [ + "pets.pettype", + "animals.pettype" + ], + [ + "pets.pettype", + "companions.pettype" + ], + [ + "animals.pettype", + "companions.pettype" + ], + [ + "pets.pet_age", + "animals.pet_age" + ], + [ + "pets.pet_age", + "companions.pet_age" + ], + [ + "animals.pet_age", + "companions.pet_age" + ], + [ + "pets.weight", + "animals.weight" + ], + [ + "pets.weight", + "companions.weight" + ], + [ + "animals.weight", + "companions.weight" + ] + ] + }, + { + "question": "what are the ids of the students who do not own #cats# as pets?", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "cats", + "pets.pettype" + ], + [ + "cats", + "Animals.pettype" + ], + [ + "cats", + "Companions.pettype" + ] + ], + "linking_list_idx": [ + [ + 0, + "pets.pettype" + ], + [ + 0, + "Animals.pettype" + ], + [ + 0, + "Companions.pettype" + ] + ], + "linking_list_col": [ + [ + "pets.petid", + "animals.petid" + ], + [ + "pets.petid", + "companions.petid" + ], + [ + "animals.petid", + "companions.petid" + ], + [ + "pets.pettype", + "animals.pettype" + ], + [ + "pets.pettype", + "companions.pettype" + ], + [ + "animals.pettype", + "companions.pettype" + ], + [ + "pets.pet_age", + "animals.pet_age" + ], + [ + "pets.pet_age", + "companions.pet_age" + ], + [ + "animals.pet_age", + "companions.pet_age" + ], + [ + "pets.weight", + "animals.weight" + ], + [ + "pets.weight", + "companions.weight" + ], + [ + "animals.weight", + "companions.weight" + ] + ] + }, + { + "question": "what is the #first name# of every student who has a #dog# but does not have a cat?", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "first name", + "student.fname" + ], + [ + "dog", + "pets.pettype" + ], + [ + "dog", + "Animals.pettype" + ], + [ + "dog", + "Companions.pettype" + ] + ], + "linking_list_idx": [ + [ + 0, + "student.fname" + ], + [ + 1, + "pets.pettype" + ], + [ + 1, + "Animals.pettype" + ], + [ + 1, + "Companions.pettype" + ] + ], + "linking_list_col": [ + [ + "pets.petid", + "animals.petid" + ], + [ + "pets.petid", + "companions.petid" + ], + [ + "animals.petid", + "companions.petid" + ], + [ + "pets.pettype", + "animals.pettype" + ], + [ + "pets.pettype", + "companions.pettype" + ], + [ + "animals.pettype", + "companions.pettype" + ], + [ + "pets.pet_age", + "animals.pet_age" + ], + [ + "pets.pet_age", + "companions.pet_age" + ], + [ + "animals.pet_age", + "companions.pet_age" + ], + [ + "pets.weight", + "animals.weight" + ], + [ + "pets.weight", + "companions.weight" + ], + [ + "animals.weight", + "companions.weight" + ] + ] + }, + { + "question": "find the type and #weight# of the youngest pet.", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "weight", + "pets.weight" + ], + [ + "weight", + "Animals.weight" + ], + [ + "weight", + "Companions.weight" + ] + ], + "linking_list_idx": [ + [ + 0, + "pets.weight" + ], + [ + 0, + "Animals.weight" + ], + [ + 0, + "Companions.weight" + ] + ], + "linking_list_col": [ + [ + "pets.petid", + "animals.petid" + ], + [ + "pets.petid", + "companions.petid" + ], + [ + "animals.petid", + "companions.petid" + ], + [ + "pets.pettype", + "animals.pettype" + ], + [ + "pets.pettype", + "companions.pettype" + ], + [ + "animals.pettype", + "companions.pettype" + ], + [ + "pets.pet_age", + "animals.pet_age" + ], + [ + "pets.pet_age", + "companions.pet_age" + ], + [ + "animals.pet_age", + "companions.pet_age" + ], + [ + "pets.weight", + "animals.weight" + ], + [ + "pets.weight", + "companions.weight" + ], + [ + "animals.weight", + "companions.weight" + ] + ] + }, + { + "question": "find the id and #weight# of all pets whose #age# is older than 1.", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "weight", + "pets.weight" + ], + [ + "weight", + "Animals.weight" + ], + [ + "weight", + "Companions.weight" + ], + [ + "age", + "pets.pet_age" + ], + [ + "age", + "Animals.pet_age" + ], + [ + "age", + "Companions.pet_age" + ] + ], + "linking_list_idx": [ + [ + 0, + "pets.weight" + ], + [ + 0, + "Animals.weight" + ], + [ + 0, + "Companions.weight" + ], + [ + 1, + "pets.pet_age" + ], + [ + 1, + "Animals.pet_age" + ], + [ + 1, + "Companions.pet_age" + ] + ], + "linking_list_col": [ + [ + "pets.petid", + "animals.petid" + ], + [ + "pets.petid", + "companions.petid" + ], + [ + "animals.petid", + "companions.petid" + ], + [ + "pets.pettype", + "animals.pettype" + ], + [ + "pets.pettype", + "companions.pettype" + ], + [ + "animals.pettype", + "companions.pettype" + ], + [ + "pets.pet_age", + "animals.pet_age" + ], + [ + "pets.pet_age", + "companions.pet_age" + ], + [ + "animals.pet_age", + "companions.pet_age" + ], + [ + "pets.weight", + "animals.weight" + ], + [ + "pets.weight", + "companions.weight" + ], + [ + "animals.weight", + "companions.weight" + ] + ] + }, + { + "question": "what is the id and #weight# of every pet who is older than 1?", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "weight", + "pets.weight" + ], + [ + "weight", + "Animals.weight" + ], + [ + "weight", + "Companions.weight" + ] + ], + "linking_list_idx": [ + [ + 0, + "pets.weight" + ], + [ + 0, + "Animals.weight" + ], + [ + 0, + "Companions.weight" + ] + ], + "linking_list_col": [ + [ + "pets.petid", + "animals.petid" + ], + [ + "pets.petid", + "companions.petid" + ], + [ + "animals.petid", + "companions.petid" + ], + [ + "pets.pettype", + "animals.pettype" + ], + [ + "pets.pettype", + "companions.pettype" + ], + [ + "animals.pettype", + "companions.pettype" + ], + [ + "pets.pet_age", + "animals.pet_age" + ], + [ + "pets.pet_age", + "companions.pet_age" + ], + [ + "animals.pet_age", + "companions.pet_age" + ], + [ + "pets.weight", + "animals.weight" + ], + [ + "pets.weight", + "companions.weight" + ], + [ + "animals.weight", + "companions.weight" + ] + ] + }, + { + "question": "find the average and #maximum age for each type of pet# .", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "maximum age for each type of pet", + "pets.pet_age" + ], + [ + "maximum age for each type of pet", + "Animals.pet_age" + ], + [ + "maximum age for each type of pet", + "Companions.pet_age" + ] + ], + "linking_list_idx": [ + [ + 0, + "pets.pet_age" + ], + [ + 0, + "Animals.pet_age" + ], + [ + 0, + "Companions.pet_age" + ] + ], + "linking_list_col": [ + [ + "pets.petid", + "animals.petid" + ], + [ + "pets.petid", + "companions.petid" + ], + [ + "animals.petid", + "companions.petid" + ], + [ + "pets.pettype", + "animals.pettype" + ], + [ + "pets.pettype", + "companions.pettype" + ], + [ + "animals.pettype", + "companions.pettype" + ], + [ + "pets.pet_age", + "animals.pet_age" + ], + [ + "pets.pet_age", + "companions.pet_age" + ], + [ + "animals.pet_age", + "companions.pet_age" + ], + [ + "pets.weight", + "animals.weight" + ], + [ + "pets.weight", + "companions.weight" + ], + [ + "animals.weight", + "companions.weight" + ] + ] + }, + { + "question": "find the #average weight for each pet type# .", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "average weight for each pet type", + "pets.weight" + ], + [ + "average weight for each pet type", + "Animals.weight" + ], + [ + "average weight for each pet type", + "Companions.weight" + ] + ], + "linking_list_idx": [ + [ + 0, + "pets.weight" + ], + [ + 0, + "Animals.weight" + ], + [ + 0, + "Companions.weight" + ] + ], + "linking_list_col": [ + [ + "pets.petid", + "animals.petid" + ], + [ + "pets.petid", + "companions.petid" + ], + [ + "animals.petid", + "companions.petid" + ], + [ + "pets.pettype", + "animals.pettype" + ], + [ + "pets.pettype", + "companions.pettype" + ], + [ + "animals.pettype", + "companions.pettype" + ], + [ + "pets.pet_age", + "animals.pet_age" + ], + [ + "pets.pet_age", + "companions.pet_age" + ], + [ + "animals.pet_age", + "companions.pet_age" + ], + [ + "pets.weight", + "animals.weight" + ], + [ + "pets.weight", + "companions.weight" + ], + [ + "animals.weight", + "companions.weight" + ] + ] + }, + { + "question": "find the #number of pets# for each student who has any pet and #student id# .", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "owns": [ + "stuid", + "petid" + ], + "has_animal": [ + "stuid", + "petid" + ] + }, + "linking_list": [ + [ + "number of pets", + "has_pet.stuid" + ], + [ + "number of pets", + "owns.stuid" + ], + [ + "number of pets", + "has_animal.stuid" + ], + [ + "student id", + "student.stuid" + ] + ], + "linking_list_idx": [ + [ + 0, + "has_pet.stuid" + ], + [ + 0, + "owns.stuid" + ], + [ + 0, + "has_animal.stuid" + ], + [ + 1, + "student.stuid" + ] + ], + "linking_list_col": [ + [ + "has_pet.stuid", + "owns.stuid" + ], + [ + "has_pet.stuid", + "has_animal.stuid" + ], + [ + "owns.stuid", + "has_animal.stuid" + ], + [ + "has_pet.petid", + "owns.petid" + ], + [ + "has_pet.petid", + "has_animal.petid" + ], + [ + "owns.petid", + "has_animal.petid" + ] + ] + }, + { + "question": "find the #last name# of the student who has a #cat that is age# 3.", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "last name", + "student.lname" + ], + [ + "cat that is age", + "pets.pettype" + ], + [ + "cat that is age", + "Animals.pettype" + ], + [ + "cat that is age", + "Companions.pettype" + ] + ], + "linking_list_idx": [ + [ + 0, + "student.lname" + ], + [ + 1, + "pets.pettype" + ], + [ + 1, + "Animals.pettype" + ], + [ + 1, + "Companions.pettype" + ] + ], + "linking_list_col": [ + [ + "pets.petid", + "animals.petid" + ], + [ + "pets.petid", + "companions.petid" + ], + [ + "animals.petid", + "companions.petid" + ], + [ + "pets.pettype", + "animals.pettype" + ], + [ + "pets.pettype", + "companions.pettype" + ], + [ + "animals.pettype", + "companions.pettype" + ], + [ + "pets.pet_age", + "animals.pet_age" + ], + [ + "pets.pet_age", + "companions.pet_age" + ], + [ + "animals.pet_age", + "companions.pet_age" + ], + [ + "pets.weight", + "animals.weight" + ], + [ + "pets.weight", + "companions.weight" + ], + [ + "animals.weight", + "companions.weight" + ] + ] + }, + { + "question": "what is the #last name# of the student who has a #cat# that is 3 years old?", + "db_schema": { + "student": [ + "stuid", + "lname", + "fname", + "age", + "sex", + "major", + "advisor", + "city_code" + ], + "has_pet": [ + "stuid", + "petid" + ], + "pets": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Animals": [ + "petid", + "pettype", + "pet_age", + "weight" + ], + "Companions": [ + "petid", + "pettype", + "pet_age", + "weight" + ] + }, + "linking_list": [ + [ + "last name", + "student.lname" + ], + [ + "cat", + "pets.pettype" + ], + [ + "cat", + "Animals.pettype" + ], + [ + "cat", + "Companions.pettype" + ] + ], + "linking_list_idx": [ + [ + 0, + "student.lname" + ], + [ + 1, + "pets.pettype" + ], + [ + 1, + "Animals.pettype" + ], + [ + 1, + "Companions.pettype" + ] + ], + "linking_list_col": [ + [ + "pets.petid", + "animals.petid" + ], + [ + "pets.petid", + "companions.petid" + ], + [ + "animals.petid", + "companions.petid" + ], + [ + "pets.pettype", + "animals.pettype" + ], + [ + "pets.pettype", + "companions.pettype" + ], + [ + "animals.pettype", + "companions.pettype" + ], + [ + "pets.pet_age", + "animals.pet_age" + ], + [ + "pets.pet_age", + "companions.pet_age" + ], + [ + "animals.pet_age", + "companions.pet_age" + ], + [ + "pets.weight", + "animals.weight" + ], + [ + "pets.weight", + "companions.weight" + ], + [ + "animals.weight", + "companions.weight" + ] + ] + }, + { + "question": "how many countries does each continent have? list the #continent id# , #continent name# and the #number of countries# .", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "nation": [ + "countryid", + "countryname", + "continent" + ], + "state": [ + "countryid", + "countryname", + "continent" + ] + }, + "linking_list": [ + [ + "continent id", + "continents.contid" + ], + [ + "continent name", + "continents.continent" + ], + [ + "number of countries", + "countries.countryid" + ], + [ + "number of countries", + "nation.countryid" + ], + [ + "number of countries", + "state.countryid" + ] + ], + "linking_list_idx": [ + [ + 0, + "continents.contid" + ], + [ + 1, + "continents.continent" + ], + [ + 2, + "countries.countryid" + ], + [ + 2, + "nation.countryid" + ], + [ + 2, + "state.countryid" + ] + ], + "linking_list_col": [ + [ + "countries.countryid", + "nation.countryid" + ], + [ + "countries.countryid", + "state.countryid" + ], + [ + "nation.countryid", + "state.countryid" + ], + [ + "countries.countryname", + "nation.countryname" + ], + [ + "countries.countryname", + "state.countryname" + ], + [ + "nation.countryname", + "state.countryname" + ], + [ + "countries.continent", + "nation.continent" + ], + [ + "countries.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ] + ] + }, + { + "question": "how many models does each car maker produce? list #maker full name# , #id# and the #number# .", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "car_models": [ + "modelid", + "maker", + "model" + ], + "vehicle_models": [ + "modelid", + "maker", + "model" + ] + }, + "linking_list": [ + [ + "maker full name", + "car_makers.fullname" + ], + [ + "id", + "car_makers.id" + ], + [ + "number", + "model_list.modelid" + ], + [ + "number", + "car_models.modelid" + ], + [ + "number", + "vehicle_models.modelid" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_makers.fullname" + ], + [ + 1, + "car_makers.id" + ], + [ + 2, + "model_list.modelid" + ], + [ + 2, + "car_models.modelid" + ], + [ + 2, + "vehicle_models.modelid" + ] + ], + "linking_list_col": [ + [ + "model_list.modelid", + "car_models.modelid" + ], + [ + "model_list.modelid", + "vehicle_models.modelid" + ], + [ + "car_models.modelid", + "vehicle_models.modelid" + ], + [ + "model_list.maker", + "car_models.maker" + ], + [ + "model_list.maker", + "vehicle_models.maker" + ], + [ + "car_models.maker", + "vehicle_models.maker" + ], + [ + "model_list.model", + "car_models.model" + ], + [ + "model_list.model", + "vehicle_models.model" + ], + [ + "car_models.model", + "vehicle_models.model" + ] + ] + }, + { + "question": "find the #model# of the car whose #weight# is below the average weight.", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "model", + "car_names.model" + ], + [ + "weight", + "cars_data.weight" + ], + [ + "weight", + "vehicle_data.weight" + ], + [ + "weight", + "auto_data.weight" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_names.model" + ], + [ + 1, + "cars_data.weight" + ], + [ + 1, + "vehicle_data.weight" + ], + [ + 1, + "auto_data.weight" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "what is the #model# for the car with a #weight# smaller than the average?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "model", + "car_names.model" + ], + [ + "weight", + "cars_data.weight" + ], + [ + "weight", + "vehicle_data.weight" + ], + [ + "weight", + "auto_data.weight" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_names.model" + ], + [ + 1, + "cars_data.weight" + ], + [ + 1, + "vehicle_data.weight" + ], + [ + 1, + "auto_data.weight" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "find the name of the makers that produced some cars in the #year# of 1970?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "year", + "cars_data.year" + ], + [ + "year", + "vehicle_data.year" + ], + [ + "year", + "auto_data.year" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.year" + ], + [ + 0, + "vehicle_data.year" + ], + [ + 0, + "auto_data.year" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "what is the name of the different #car makers# who #produced# a car in 1970?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "car makers", + "car_makers.maker" + ], + [ + "produced", + "cars_data.year" + ], + [ + "produced", + "vehicle_data.year" + ], + [ + "produced", + "auto_data.year" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_makers.maker" + ], + [ + 1, + "cars_data.year" + ], + [ + 1, + "vehicle_data.year" + ], + [ + 1, + "auto_data.year" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "find the #make# and #production time# of the cars that were produced in the earliest year?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "make", + "car_names.make" + ], + [ + "production time", + "cars_data.year" + ], + [ + "production time", + "vehicle_data.year" + ], + [ + "production time", + "auto_data.year" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_names.make" + ], + [ + 1, + "cars_data.year" + ], + [ + 1, + "vehicle_data.year" + ], + [ + 1, + "auto_data.year" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "what is the #maker# of the carr produced in the earliest #year# and what year was it?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "maker", + "car_names.make" + ], + [ + "year", + "cars_data.year" + ], + [ + "year", + "vehicle_data.year" + ], + [ + "year", + "auto_data.year" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_names.make" + ], + [ + 1, + "cars_data.year" + ], + [ + 1, + "vehicle_data.year" + ], + [ + 1, + "auto_data.year" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "how many car makers are there in each continents? list the #continent name# and the #count# .", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "manufacturers": [ + "id", + "maker", + "fullname", + "country" + ], + "auto_brands": [ + "id", + "maker", + "fullname", + "country" + ] + }, + "linking_list": [ + [ + "continent name", + "continents.continent" + ], + [ + "count", + "car_makers.id" + ], + [ + "count", + "manufacturers.id" + ], + [ + "count", + "auto_brands.id" + ] + ], + "linking_list_idx": [ + [ + 0, + "continents.continent" + ], + [ + 1, + "car_makers.id" + ], + [ + 1, + "manufacturers.id" + ], + [ + 1, + "auto_brands.id" + ] + ], + "linking_list_col": [ + [ + "car_makers.id", + "manufacturers.id" + ], + [ + "car_makers.id", + "auto_brands.id" + ], + [ + "manufacturers.id", + "auto_brands.id" + ], + [ + "car_makers.maker", + "manufacturers.maker" + ], + [ + "car_makers.maker", + "auto_brands.maker" + ], + [ + "manufacturers.maker", + "auto_brands.maker" + ], + [ + "car_makers.fullname", + "manufacturers.fullname" + ], + [ + "car_makers.fullname", + "auto_brands.fullname" + ], + [ + "manufacturers.fullname", + "auto_brands.fullname" + ], + [ + "car_makers.country", + "manufacturers.country" + ], + [ + "car_makers.country", + "auto_brands.country" + ], + [ + "manufacturers.country", + "auto_brands.country" + ] + ] + }, + { + "question": "what is the #number of car models# that are produced by each maker and what is the id and full name of each maker?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "car_models": [ + "modelid", + "maker", + "model" + ], + "vehicle_models": [ + "modelid", + "maker", + "model" + ] + }, + "linking_list": [ + [ + "number of car models", + "model_list.modelid" + ], + [ + "number of car models", + "car_models.modelid" + ], + [ + "number of car models", + "vehicle_models.modelid" + ] + ], + "linking_list_idx": [ + [ + 0, + "model_list.modelid" + ], + [ + 0, + "car_models.modelid" + ], + [ + 0, + "vehicle_models.modelid" + ] + ], + "linking_list_col": [ + [ + "model_list.modelid", + "car_models.modelid" + ], + [ + "model_list.modelid", + "vehicle_models.modelid" + ], + [ + "car_models.modelid", + "vehicle_models.modelid" + ], + [ + "model_list.maker", + "car_models.maker" + ], + [ + "model_list.maker", + "vehicle_models.maker" + ], + [ + "car_models.maker", + "vehicle_models.maker" + ], + [ + "model_list.model", + "car_models.model" + ], + [ + "model_list.model", + "vehicle_models.model" + ], + [ + "car_models.model", + "vehicle_models.model" + ] + ] + }, + { + "question": "what is the #accelerate of the car make# amc hornet sportabout (sw)?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "accelerate of the car make", + "cars_data.accelerate" + ], + [ + "accelerate of the car make", + "vehicle_data.accelerate" + ], + [ + "accelerate of the car make", + "auto_data.accelerate" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.accelerate" + ], + [ + 0, + "vehicle_data.accelerate" + ], + [ + 0, + "auto_data.accelerate" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "how many #car makers# are there in france?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "manufacturers": [ + "id", + "maker", + "fullname", + "country" + ], + "auto_brands": [ + "id", + "maker", + "fullname", + "country" + ] + }, + "linking_list": [ + [ + "car makers", + "car_makers.country" + ], + [ + "car makers", + "manufacturers.country" + ], + [ + "car makers", + "auto_brands.country" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_makers.country" + ], + [ + 0, + "manufacturers.country" + ], + [ + 0, + "auto_brands.country" + ] + ], + "linking_list_col": [ + [ + "car_makers.id", + "manufacturers.id" + ], + [ + "car_makers.id", + "auto_brands.id" + ], + [ + "manufacturers.id", + "auto_brands.id" + ], + [ + "car_makers.maker", + "manufacturers.maker" + ], + [ + "car_makers.maker", + "auto_brands.maker" + ], + [ + "manufacturers.maker", + "auto_brands.maker" + ], + [ + "car_makers.fullname", + "manufacturers.fullname" + ], + [ + "car_makers.fullname", + "auto_brands.fullname" + ], + [ + "manufacturers.fullname", + "auto_brands.fullname" + ], + [ + "car_makers.country", + "manufacturers.country" + ], + [ + "car_makers.country", + "auto_brands.country" + ], + [ + "manufacturers.country", + "auto_brands.country" + ] + ] + }, + { + "question": "how many #car models# are produced in the usa?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "car_models": [ + "modelid", + "maker", + "model" + ], + "vehicle_models": [ + "modelid", + "maker", + "model" + ] + }, + "linking_list": [ + [ + "car models", + "model_list.model" + ], + [ + "car models", + "car_models.model" + ], + [ + "car models", + "vehicle_models.model" + ] + ], + "linking_list_idx": [ + [ + 0, + "model_list.model" + ], + [ + 0, + "car_models.model" + ], + [ + 0, + "vehicle_models.model" + ] + ], + "linking_list_col": [ + [ + "model_list.modelid", + "car_models.modelid" + ], + [ + "model_list.modelid", + "vehicle_models.modelid" + ], + [ + "car_models.modelid", + "vehicle_models.modelid" + ], + [ + "model_list.maker", + "car_models.maker" + ], + [ + "model_list.maker", + "vehicle_models.maker" + ], + [ + "car_models.maker", + "vehicle_models.maker" + ], + [ + "model_list.model", + "car_models.model" + ], + [ + "model_list.model", + "vehicle_models.model" + ], + [ + "car_models.model", + "vehicle_models.model" + ] + ] + }, + { + "question": "what is the #average miles per gallon# of all the cards with 4 cylinders?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "average miles per gallon", + "cars_data.mpg" + ], + [ + "average miles per gallon", + "vehicle_data.mpg" + ], + [ + "average miles per gallon", + "auto_data.mpg" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.mpg" + ], + [ + 0, + "vehicle_data.mpg" + ], + [ + 0, + "auto_data.mpg" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "what is the #number of cars# with a horsepower greater than 150?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "number of cars", + "cars_data.horsepower" + ], + [ + "number of cars", + "vehicle_data.horsepower" + ], + [ + "number of cars", + "auto_data.horsepower" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.horsepower" + ], + [ + 0, + "vehicle_data.horsepower" + ], + [ + 0, + "auto_data.horsepower" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "what is the #average weight# of cars each year?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "average weight", + "cars_data.weight" + ], + [ + "average weight", + "vehicle_data.weight" + ], + [ + "average weight", + "auto_data.weight" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.weight" + ], + [ + 0, + "vehicle_data.weight" + ], + [ + 0, + "auto_data.weight" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "what is the #average weight# and year for each year?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "average weight", + "cars_data.weight" + ], + [ + "average weight", + "vehicle_data.weight" + ], + [ + "average weight", + "auto_data.weight" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.weight" + ], + [ + 0, + "vehicle_data.weight" + ], + [ + 0, + "auto_data.weight" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "what is the #maximum horsepower# and the #make# of the car models with 3 cylinders?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "maximum horsepower", + "cars_data.horsepower" + ], + [ + "maximum horsepower", + "vehicle_data.horsepower" + ], + [ + "maximum horsepower", + "auto_data.horsepower" + ], + [ + "make", + "car_names.make" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.horsepower" + ], + [ + 0, + "vehicle_data.horsepower" + ], + [ + 0, + "auto_data.horsepower" + ], + [ + 1, + "car_names.make" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "what is the largest amount of #horsepower# for the models with 3 cylinders and what #make# is it?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "horsepower", + "cars_data.horsepower" + ], + [ + "horsepower", + "vehicle_data.horsepower" + ], + [ + "horsepower", + "auto_data.horsepower" + ], + [ + "make", + "car_names.make" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.horsepower" + ], + [ + 0, + "vehicle_data.horsepower" + ], + [ + 0, + "auto_data.horsepower" + ], + [ + 1, + "car_names.make" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "which #model# saves the most gasoline? that is to say, have the maximum #miles per gallon# .", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "model", + "car_names.model" + ], + [ + "miles per gallon", + "cars_data.mpg" + ], + [ + "miles per gallon", + "vehicle_data.mpg" + ], + [ + "miles per gallon", + "auto_data.mpg" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_names.model" + ], + [ + 1, + "cars_data.mpg" + ], + [ + 1, + "vehicle_data.mpg" + ], + [ + 1, + "auto_data.mpg" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "what is the #average horsepower# of the cars before 1980?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "average horsepower", + "cars_data.horsepower" + ], + [ + "average horsepower", + "vehicle_data.horsepower" + ], + [ + "average horsepower", + "auto_data.horsepower" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.horsepower" + ], + [ + 0, + "vehicle_data.horsepower" + ], + [ + 0, + "auto_data.horsepower" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "what is the #average edispl# of the cars of #model# volvo?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "average edispl", + "cars_data.edispl" + ], + [ + "average edispl", + "vehicle_data.edispl" + ], + [ + "average edispl", + "auto_data.edispl" + ], + [ + "model", + "car_names.model" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.edispl" + ], + [ + 0, + "vehicle_data.edispl" + ], + [ + 0, + "auto_data.edispl" + ], + [ + 1, + "car_names.model" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "what is the #maximum accelerate# for different number of cylinders?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "maximum accelerate", + "cars_data.accelerate" + ], + [ + "maximum accelerate", + "vehicle_data.accelerate" + ], + [ + "maximum accelerate", + "auto_data.accelerate" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.accelerate" + ], + [ + 0, + "vehicle_data.accelerate" + ], + [ + 0, + "auto_data.accelerate" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "which #model# has the most version(make) of cars?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "car_models": [ + "makeid", + "model", + "make" + ], + "vehicle_names": [ + "makeid", + "model", + "make" + ] + }, + "linking_list": [ + [ + "model", + "car_names.model" + ], + [ + "model", + "car_models.model" + ], + [ + "model", + "vehicle_names.model" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_names.model" + ], + [ + 0, + "car_models.model" + ], + [ + 0, + "vehicle_names.model" + ] + ], + "linking_list_col": [ + [ + "car_names.makeid", + "car_models.makeid" + ], + [ + "car_names.makeid", + "vehicle_names.makeid" + ], + [ + "car_models.makeid", + "vehicle_names.makeid" + ], + [ + "car_names.model", + "car_models.model" + ], + [ + "car_names.model", + "vehicle_names.model" + ], + [ + "car_models.model", + "vehicle_names.model" + ], + [ + "car_names.make", + "car_models.make" + ], + [ + "car_names.make", + "vehicle_names.make" + ], + [ + "car_models.make", + "vehicle_names.make" + ] + ] + }, + { + "question": "what #model# has the most different versions?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "car_models": [ + "makeid", + "model", + "make" + ], + "vehicle_names": [ + "makeid", + "model", + "make" + ] + }, + "linking_list": [ + [ + "model", + "car_names.model" + ], + [ + "model", + "car_models.model" + ], + [ + "model", + "vehicle_names.model" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_names.model" + ], + [ + 0, + "car_models.model" + ], + [ + 0, + "vehicle_names.model" + ] + ], + "linking_list_col": [ + [ + "car_names.makeid", + "car_models.makeid" + ], + [ + "car_names.makeid", + "vehicle_names.makeid" + ], + [ + "car_models.makeid", + "vehicle_names.makeid" + ], + [ + "car_names.model", + "car_models.model" + ], + [ + "car_names.model", + "vehicle_names.model" + ], + [ + "car_models.model", + "vehicle_names.model" + ], + [ + "car_names.make", + "car_models.make" + ], + [ + "car_names.make", + "vehicle_names.make" + ], + [ + "car_models.make", + "vehicle_names.make" + ] + ] + }, + { + "question": "what is the #number of cars# with more than 4 cylinders?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "number of cars", + "cars_data.cylinders" + ], + [ + "number of cars", + "vehicle_data.cylinders" + ], + [ + "number of cars", + "auto_data.cylinders" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.cylinders" + ], + [ + 0, + "vehicle_data.cylinders" + ], + [ + 0, + "auto_data.cylinders" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "how many cars were #produced# in 1980?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "produced", + "cars_data.year" + ], + [ + "produced", + "vehicle_data.year" + ], + [ + "produced", + "auto_data.year" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.year" + ], + [ + 0, + "vehicle_data.year" + ], + [ + 0, + "auto_data.year" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "how many #car models# were produced by the #maker# with full name american motor company?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "car_models": [ + "modelid", + "maker", + "model" + ], + "vehicle_models": [ + "modelid", + "maker", + "model" + ] + }, + "linking_list": [ + [ + "car models", + "model_list.maker" + ], + [ + "car models", + "car_models.maker" + ], + [ + "car models", + "vehicle_models.maker" + ], + [ + "maker", + "car_makers.fullname" + ] + ], + "linking_list_idx": [ + [ + 0, + "model_list.maker" + ], + [ + 0, + "car_models.maker" + ], + [ + 0, + "vehicle_models.maker" + ], + [ + 1, + "car_makers.fullname" + ] + ], + "linking_list_col": [ + [ + "model_list.modelid", + "car_models.modelid" + ], + [ + "model_list.modelid", + "vehicle_models.modelid" + ], + [ + "car_models.modelid", + "vehicle_models.modelid" + ], + [ + "model_list.maker", + "car_models.maker" + ], + [ + "model_list.maker", + "vehicle_models.maker" + ], + [ + "car_models.maker", + "vehicle_models.maker" + ], + [ + "model_list.model", + "car_models.model" + ], + [ + "model_list.model", + "vehicle_models.model" + ], + [ + "car_models.model", + "vehicle_models.model" + ] + ] + }, + { + "question": "what is the #number of car models# created by the #car maker# american motor company?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "car_models": [ + "modelid", + "maker", + "model" + ], + "vehicle_models": [ + "modelid", + "maker", + "model" + ] + }, + "linking_list": [ + [ + "number of car models", + "model_list.model" + ], + [ + "number of car models", + "car_models.model" + ], + [ + "number of car models", + "vehicle_models.model" + ], + [ + "car maker", + "car_makers.fullname" + ] + ], + "linking_list_idx": [ + [ + 0, + "model_list.model" + ], + [ + 0, + "car_models.model" + ], + [ + 0, + "vehicle_models.model" + ], + [ + 1, + "car_makers.fullname" + ] + ], + "linking_list_col": [ + [ + "model_list.modelid", + "car_models.modelid" + ], + [ + "model_list.modelid", + "vehicle_models.modelid" + ], + [ + "car_models.modelid", + "vehicle_models.modelid" + ], + [ + "model_list.maker", + "car_models.maker" + ], + [ + "model_list.maker", + "vehicle_models.maker" + ], + [ + "car_models.maker", + "vehicle_models.maker" + ], + [ + "model_list.model", + "car_models.model" + ], + [ + "model_list.model", + "vehicle_models.model" + ], + [ + "car_models.model", + "vehicle_models.model" + ] + ] + }, + { + "question": "what is the #horsepower# of the car with the largest accelerate?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "horsepower", + "cars_data.horsepower" + ], + [ + "horsepower", + "vehicle_data.horsepower" + ], + [ + "horsepower", + "auto_data.horsepower" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.horsepower" + ], + [ + 0, + "vehicle_data.horsepower" + ], + [ + 0, + "auto_data.horsepower" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "what is the #horsepower# of the car with the greatest accelerate?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "horsepower", + "cars_data.horsepower" + ], + [ + "horsepower", + "vehicle_data.horsepower" + ], + [ + "horsepower", + "auto_data.horsepower" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.horsepower" + ], + [ + 0, + "vehicle_data.horsepower" + ], + [ + 0, + "auto_data.horsepower" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "for #model# volvo, how many #cylinders# does the car with the least accelerate have?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "model", + "car_names.model" + ], + [ + "cylinders", + "cars_data.cylinders" + ], + [ + "cylinders", + "vehicle_data.cylinders" + ], + [ + "cylinders", + "auto_data.cylinders" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_names.model" + ], + [ + 1, + "cars_data.cylinders" + ], + [ + 1, + "vehicle_data.cylinders" + ], + [ + 1, + "auto_data.cylinders" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "for a #volvo model# , how many #cylinders# does the version with least accelerate have?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "volvo model", + "car_names.model" + ], + [ + "cylinders", + "cars_data.cylinders" + ], + [ + "cylinders", + "vehicle_data.cylinders" + ], + [ + "cylinders", + "auto_data.cylinders" + ] + ], + "linking_list_idx": [ + [ + 0, + "car_names.model" + ], + [ + 1, + "cars_data.cylinders" + ], + [ + 1, + "vehicle_data.cylinders" + ], + [ + 1, + "auto_data.cylinders" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "how many cars have a larger #accelerate# than the car with the largest horsepower?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "accelerate", + "cars_data.accelerate" + ], + [ + "accelerate", + "vehicle_data.accelerate" + ], + [ + "accelerate", + "auto_data.accelerate" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.accelerate" + ], + [ + 0, + "vehicle_data.accelerate" + ], + [ + 0, + "auto_data.accelerate" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "what is the #number of cars with a greater accelerate# than the one with the most horsepower?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "number of cars with a greater accelerate", + "cars_data.id" + ], + [ + "number of cars with a greater accelerate", + "vehicle_data.id" + ], + [ + "number of cars with a greater accelerate", + "auto_data.id" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.id" + ], + [ + 0, + "vehicle_data.id" + ], + [ + 0, + "auto_data.id" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "how many #cars# has over 6 cylinders?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "cars", + "cars_data.cylinders" + ], + [ + "cars", + "vehicle_data.cylinders" + ], + [ + "cars", + "auto_data.cylinders" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.cylinders" + ], + [ + 0, + "vehicle_data.cylinders" + ], + [ + 0, + "auto_data.cylinders" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "for the cars with 4 #cylinders# , which #model# has the largest horsepower?", + "db_schema": { + "continents": [ + "contid", + "continent" + ], + "countries": [ + "countryid", + "countryname", + "continent" + ], + "car_makers": [ + "id", + "maker", + "fullname", + "country" + ], + "model_list": [ + "modelid", + "maker", + "model" + ], + "car_names": [ + "makeid", + "model", + "make" + ], + "cars_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "vehicle_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ], + "auto_data": [ + "id", + "mpg", + "cylinders", + "edispl", + "horsepower", + "weight", + "accelerate", + "year" + ] + }, + "linking_list": [ + [ + "cylinders", + "cars_data.cylinders" + ], + [ + "cylinders", + "vehicle_data.cylinders" + ], + [ + "cylinders", + "auto_data.cylinders" + ], + [ + "model", + "car_names.model" + ] + ], + "linking_list_idx": [ + [ + 0, + "cars_data.cylinders" + ], + [ + 0, + "vehicle_data.cylinders" + ], + [ + 0, + "auto_data.cylinders" + ], + [ + 1, + "car_names.model" + ] + ], + "linking_list_col": [ + [ + "cars_data.id", + "vehicle_data.id" + ], + [ + "cars_data.id", + "auto_data.id" + ], + [ + "vehicle_data.id", + "auto_data.id" + ], + [ + "cars_data.mpg", + "vehicle_data.mpg" + ], + [ + "cars_data.mpg", + "auto_data.mpg" + ], + [ + "vehicle_data.mpg", + "auto_data.mpg" + ], + [ + "cars_data.cylinders", + "vehicle_data.cylinders" + ], + [ + "cars_data.cylinders", + "auto_data.cylinders" + ], + [ + "vehicle_data.cylinders", + "auto_data.cylinders" + ], + [ + "cars_data.edispl", + "vehicle_data.edispl" + ], + [ + "cars_data.edispl", + "auto_data.edispl" + ], + [ + "vehicle_data.edispl", + "auto_data.edispl" + ], + [ + "cars_data.horsepower", + "vehicle_data.horsepower" + ], + [ + "cars_data.horsepower", + "auto_data.horsepower" + ], + [ + "vehicle_data.horsepower", + "auto_data.horsepower" + ], + [ + "cars_data.weight", + "vehicle_data.weight" + ], + [ + "cars_data.weight", + "auto_data.weight" + ], + [ + "vehicle_data.weight", + "auto_data.weight" + ], + [ + "cars_data.accelerate", + "vehicle_data.accelerate" + ], + [ + "cars_data.accelerate", + "auto_data.accelerate" + ], + [ + "vehicle_data.accelerate", + "auto_data.accelerate" + ], + [ + "cars_data.year", + "vehicle_data.year" + ], + [ + "cars_data.year", + "auto_data.year" + ], + [ + "vehicle_data.year", + "auto_data.year" + ] + ] + }, + { + "question": "which #country# does #airline# \"jetblue airways\" belong to?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "linking_list": [ + [ + "country", + "airlines.country" + ], + [ + "country", + "carriers.country" + ], + [ + "country", + "aviation_companies.country" + ], + [ + "Airline", + "airlines.airline" + ], + [ + "Airline", + "carriers.airline" + ], + [ + "Airline", + "aviation_companies.airline" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.country" + ], + [ + 0, + "carriers.country" + ], + [ + 0, + "aviation_companies.country" + ], + [ + 1, + "airlines.airline" + ], + [ + 1, + "carriers.airline" + ], + [ + 1, + "aviation_companies.airline" + ] + ], + "linking_list_col": [ + [ + "airlines.uid", + "carriers.uid" + ], + [ + "airlines.uid", + "aviation_companies.uid" + ], + [ + "carriers.uid", + "aviation_companies.uid" + ], + [ + "airlines.airline", + "carriers.airline" + ], + [ + "airlines.airline", + "aviation_companies.airline" + ], + [ + "carriers.airline", + "aviation_companies.airline" + ], + [ + "airlines.abbreviation", + "carriers.abbreviation" + ], + [ + "airlines.abbreviation", + "aviation_companies.abbreviation" + ], + [ + "carriers.abbreviation", + "aviation_companies.abbreviation" + ], + [ + "airlines.country", + "carriers.country" + ], + [ + "airlines.country", + "aviation_companies.country" + ], + [ + "carriers.country", + "aviation_companies.country" + ] + ] + }, + { + "question": "what #country# is jetblue airways affiliated with?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "linking_list": [ + [ + "country", + "airlines.country" + ], + [ + "country", + "carriers.country" + ], + [ + "country", + "aviation_companies.country" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.country" + ], + [ + 0, + "carriers.country" + ], + [ + 0, + "aviation_companies.country" + ] + ], + "linking_list_col": [ + [ + "airlines.uid", + "carriers.uid" + ], + [ + "airlines.uid", + "aviation_companies.uid" + ], + [ + "carriers.uid", + "aviation_companies.uid" + ], + [ + "airlines.airline", + "carriers.airline" + ], + [ + "airlines.airline", + "aviation_companies.airline" + ], + [ + "carriers.airline", + "aviation_companies.airline" + ], + [ + "airlines.abbreviation", + "carriers.abbreviation" + ], + [ + "airlines.abbreviation", + "aviation_companies.abbreviation" + ], + [ + "carriers.abbreviation", + "aviation_companies.abbreviation" + ], + [ + "airlines.country", + "carriers.country" + ], + [ + "airlines.country", + "aviation_companies.country" + ], + [ + "carriers.country", + "aviation_companies.country" + ] + ] + }, + { + "question": "what is the #abbreviation of airline# \"jetblue airways\"?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "linking_list": [ + [ + "abbreviation of Airline", + "airlines.abbreviation" + ], + [ + "abbreviation of Airline", + "carriers.abbreviation" + ], + [ + "abbreviation of Airline", + "aviation_companies.abbreviation" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.abbreviation" + ], + [ + 0, + "carriers.abbreviation" + ], + [ + 0, + "aviation_companies.abbreviation" + ] + ], + "linking_list_col": [ + [ + "airlines.uid", + "carriers.uid" + ], + [ + "airlines.uid", + "aviation_companies.uid" + ], + [ + "carriers.uid", + "aviation_companies.uid" + ], + [ + "airlines.airline", + "carriers.airline" + ], + [ + "airlines.airline", + "aviation_companies.airline" + ], + [ + "carriers.airline", + "aviation_companies.airline" + ], + [ + "airlines.abbreviation", + "carriers.abbreviation" + ], + [ + "airlines.abbreviation", + "aviation_companies.abbreviation" + ], + [ + "carriers.abbreviation", + "aviation_companies.abbreviation" + ], + [ + "airlines.country", + "carriers.country" + ], + [ + "airlines.country", + "aviation_companies.country" + ], + [ + "carriers.country", + "aviation_companies.country" + ] + ] + }, + { + "question": "which #abbreviation# corresponds to jetblue airways?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "linking_list": [ + [ + "abbreviation", + "airlines.abbreviation" + ], + [ + "abbreviation", + "carriers.abbreviation" + ], + [ + "abbreviation", + "aviation_companies.abbreviation" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.abbreviation" + ], + [ + 0, + "carriers.abbreviation" + ], + [ + 0, + "aviation_companies.abbreviation" + ] + ], + "linking_list_col": [ + [ + "airlines.uid", + "carriers.uid" + ], + [ + "airlines.uid", + "aviation_companies.uid" + ], + [ + "carriers.uid", + "aviation_companies.uid" + ], + [ + "airlines.airline", + "carriers.airline" + ], + [ + "airlines.airline", + "aviation_companies.airline" + ], + [ + "carriers.airline", + "aviation_companies.airline" + ], + [ + "airlines.abbreviation", + "carriers.abbreviation" + ], + [ + "airlines.abbreviation", + "aviation_companies.abbreviation" + ], + [ + "carriers.abbreviation", + "aviation_companies.abbreviation" + ], + [ + "airlines.country", + "carriers.country" + ], + [ + "airlines.country", + "aviation_companies.country" + ], + [ + "carriers.country", + "aviation_companies.country" + ] + ] + }, + { + "question": "list all #airline names# and their abbreviations in \"usa\".", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "linking_list": [ + [ + "airline names", + "airlines.airline" + ], + [ + "airline names", + "carriers.airline" + ], + [ + "airline names", + "aviation_companies.airline" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 0, + "carriers.airline" + ], + [ + 0, + "aviation_companies.airline" + ] + ], + "linking_list_col": [ + [ + "airlines.uid", + "carriers.uid" + ], + [ + "airlines.uid", + "aviation_companies.uid" + ], + [ + "carriers.uid", + "aviation_companies.uid" + ], + [ + "airlines.airline", + "carriers.airline" + ], + [ + "airlines.airline", + "aviation_companies.airline" + ], + [ + "carriers.airline", + "aviation_companies.airline" + ], + [ + "airlines.abbreviation", + "carriers.abbreviation" + ], + [ + "airlines.abbreviation", + "aviation_companies.abbreviation" + ], + [ + "carriers.abbreviation", + "aviation_companies.abbreviation" + ], + [ + "airlines.country", + "carriers.country" + ], + [ + "airlines.country", + "aviation_companies.country" + ], + [ + "carriers.country", + "aviation_companies.country" + ] + ] + }, + { + "question": "what are the #airline names# and #abbreviations# for airlines in the usa?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "linking_list": [ + [ + "airline names", + "airlines.airline" + ], + [ + "airline names", + "carriers.airline" + ], + [ + "airline names", + "aviation_companies.airline" + ], + [ + "abbreviations", + "airlines.abbreviation" + ], + [ + "abbreviations", + "carriers.abbreviation" + ], + [ + "abbreviations", + "aviation_companies.abbreviation" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 0, + "carriers.airline" + ], + [ + 0, + "aviation_companies.airline" + ], + [ + 1, + "airlines.abbreviation" + ], + [ + 1, + "carriers.abbreviation" + ], + [ + 1, + "aviation_companies.abbreviation" + ] + ], + "linking_list_col": [ + [ + "airlines.uid", + "carriers.uid" + ], + [ + "airlines.uid", + "aviation_companies.uid" + ], + [ + "carriers.uid", + "aviation_companies.uid" + ], + [ + "airlines.airline", + "carriers.airline" + ], + [ + "airlines.airline", + "aviation_companies.airline" + ], + [ + "carriers.airline", + "aviation_companies.airline" + ], + [ + "airlines.abbreviation", + "carriers.abbreviation" + ], + [ + "airlines.abbreviation", + "aviation_companies.abbreviation" + ], + [ + "carriers.abbreviation", + "aviation_companies.abbreviation" + ], + [ + "airlines.country", + "carriers.country" + ], + [ + "airlines.country", + "aviation_companies.country" + ], + [ + "carriers.country", + "aviation_companies.country" + ] + ] + }, + { + "question": "list the #airport code# and name in the #city# of anthony.", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "departure_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "arrival_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ] + }, + "linking_list": [ + [ + "airport code", + "airports.airportcode" + ], + [ + "airport code", + "departure_points.airportcode" + ], + [ + "airport code", + "arrival_points.airportcode" + ], + [ + "city", + "airports.city" + ], + [ + "city", + "departure_points.city" + ], + [ + "city", + "arrival_points.city" + ] + ], + "linking_list_idx": [ + [ + 0, + "airports.airportcode" + ], + [ + 0, + "departure_points.airportcode" + ], + [ + 0, + "arrival_points.airportcode" + ], + [ + 1, + "airports.city" + ], + [ + 1, + "departure_points.city" + ], + [ + 1, + "arrival_points.city" + ] + ], + "linking_list_col": [ + [ + "airports.city", + "departure_points.city" + ], + [ + "airports.city", + "arrival_points.city" + ], + [ + "departure_points.city", + "arrival_points.city" + ], + [ + "airports.airportcode", + "departure_points.airportcode" + ], + [ + "airports.airportcode", + "arrival_points.airportcode" + ], + [ + "departure_points.airportcode", + "arrival_points.airportcode" + ], + [ + "airports.airportname", + "departure_points.airportname" + ], + [ + "airports.airportname", + "arrival_points.airportname" + ], + [ + "departure_points.airportname", + "arrival_points.airportname" + ], + [ + "airports.country", + "departure_points.country" + ], + [ + "airports.country", + "arrival_points.country" + ], + [ + "departure_points.country", + "arrival_points.country" + ], + [ + "airports.countryabbrev", + "departure_points.countryabbrev" + ], + [ + "airports.countryabbrev", + "arrival_points.countryabbrev" + ], + [ + "departure_points.countryabbrev", + "arrival_points.countryabbrev" + ] + ] + }, + { + "question": "give the #airport code# and #airport name# corresonding to the #city# anthony.", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "departure_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "arrival_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ] + }, + "linking_list": [ + [ + "airport code", + "airports.airportcode" + ], + [ + "airport code", + "departure_points.airportcode" + ], + [ + "airport code", + "arrival_points.airportcode" + ], + [ + "airport name", + "airports.airportname" + ], + [ + "airport name", + "departure_points.airportname" + ], + [ + "airport name", + "arrival_points.airportname" + ], + [ + "city", + "airports.city" + ], + [ + "city", + "departure_points.city" + ], + [ + "city", + "arrival_points.city" + ] + ], + "linking_list_idx": [ + [ + 0, + "airports.airportcode" + ], + [ + 0, + "departure_points.airportcode" + ], + [ + 0, + "arrival_points.airportcode" + ], + [ + 1, + "airports.airportname" + ], + [ + 1, + "departure_points.airportname" + ], + [ + 1, + "arrival_points.airportname" + ], + [ + 2, + "airports.city" + ], + [ + 2, + "departure_points.city" + ], + [ + 2, + "arrival_points.city" + ] + ], + "linking_list_col": [ + [ + "airports.city", + "departure_points.city" + ], + [ + "airports.city", + "arrival_points.city" + ], + [ + "departure_points.city", + "arrival_points.city" + ], + [ + "airports.airportcode", + "departure_points.airportcode" + ], + [ + "airports.airportcode", + "arrival_points.airportcode" + ], + [ + "departure_points.airportcode", + "arrival_points.airportcode" + ], + [ + "airports.airportname", + "departure_points.airportname" + ], + [ + "airports.airportname", + "arrival_points.airportname" + ], + [ + "departure_points.airportname", + "arrival_points.airportname" + ], + [ + "airports.country", + "departure_points.country" + ], + [ + "airports.country", + "arrival_points.country" + ], + [ + "departure_points.country", + "arrival_points.country" + ], + [ + "airports.countryabbrev", + "departure_points.countryabbrev" + ], + [ + "airports.countryabbrev", + "arrival_points.countryabbrev" + ], + [ + "departure_points.countryabbrev", + "arrival_points.countryabbrev" + ] + ] + }, + { + "question": "which #airline# has #abbreviation# 'ual'?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "linking_list": [ + [ + "airline", + "airlines.airline" + ], + [ + "airline", + "carriers.airline" + ], + [ + "airline", + "aviation_companies.airline" + ], + [ + "abbreviation", + "airlines.abbreviation" + ], + [ + "abbreviation", + "carriers.abbreviation" + ], + [ + "abbreviation", + "aviation_companies.abbreviation" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 0, + "carriers.airline" + ], + [ + 0, + "aviation_companies.airline" + ], + [ + 1, + "airlines.abbreviation" + ], + [ + 1, + "carriers.abbreviation" + ], + [ + 1, + "aviation_companies.abbreviation" + ] + ], + "linking_list_col": [ + [ + "airlines.uid", + "carriers.uid" + ], + [ + "airlines.uid", + "aviation_companies.uid" + ], + [ + "carriers.uid", + "aviation_companies.uid" + ], + [ + "airlines.airline", + "carriers.airline" + ], + [ + "airlines.airline", + "aviation_companies.airline" + ], + [ + "carriers.airline", + "aviation_companies.airline" + ], + [ + "airlines.abbreviation", + "carriers.abbreviation" + ], + [ + "airlines.abbreviation", + "aviation_companies.abbreviation" + ], + [ + "carriers.abbreviation", + "aviation_companies.abbreviation" + ], + [ + "airlines.country", + "carriers.country" + ], + [ + "airlines.country", + "aviation_companies.country" + ], + [ + "carriers.country", + "aviation_companies.country" + ] + ] + }, + { + "question": "give the #airline with abbreviation# 'ual'.", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "linking_list": [ + [ + "airline with abbreviation", + "airlines.airline" + ], + [ + "airline with abbreviation", + "carriers.airline" + ], + [ + "airline with abbreviation", + "aviation_companies.airline" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 0, + "carriers.airline" + ], + [ + 0, + "aviation_companies.airline" + ] + ], + "linking_list_col": [ + [ + "airlines.uid", + "carriers.uid" + ], + [ + "airlines.uid", + "aviation_companies.uid" + ], + [ + "carriers.uid", + "aviation_companies.uid" + ], + [ + "airlines.airline", + "carriers.airline" + ], + [ + "airlines.airline", + "aviation_companies.airline" + ], + [ + "carriers.airline", + "aviation_companies.airline" + ], + [ + "airlines.abbreviation", + "carriers.abbreviation" + ], + [ + "airlines.abbreviation", + "aviation_companies.abbreviation" + ], + [ + "carriers.abbreviation", + "aviation_companies.abbreviation" + ], + [ + "airlines.country", + "carriers.country" + ], + [ + "airlines.country", + "aviation_companies.country" + ], + [ + "carriers.country", + "aviation_companies.country" + ] + ] + }, + { + "question": "return the #number of airlines in the usa# .", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "carriers": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "aviation_companies": [ + "uid", + "airline", + "abbreviation", + "country" + ] + }, + "linking_list": [ + [ + "number of airlines in the USA", + "airlines.uid" + ], + [ + "number of airlines in the USA", + "carriers.uid" + ], + [ + "number of airlines in the USA", + "aviation_companies.uid" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.uid" + ], + [ + 0, + "carriers.uid" + ], + [ + 0, + "aviation_companies.uid" + ] + ], + "linking_list_col": [ + [ + "airlines.uid", + "carriers.uid" + ], + [ + "airlines.uid", + "aviation_companies.uid" + ], + [ + "carriers.uid", + "aviation_companies.uid" + ], + [ + "airlines.airline", + "carriers.airline" + ], + [ + "airlines.airline", + "aviation_companies.airline" + ], + [ + "carriers.airline", + "aviation_companies.airline" + ], + [ + "airlines.abbreviation", + "carriers.abbreviation" + ], + [ + "airlines.abbreviation", + "aviation_companies.abbreviation" + ], + [ + "carriers.abbreviation", + "aviation_companies.abbreviation" + ], + [ + "airlines.country", + "carriers.country" + ], + [ + "airlines.country", + "aviation_companies.country" + ], + [ + "carriers.country", + "aviation_companies.country" + ] + ] + }, + { + "question": "which #city# and #country# is the alton airport at?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "departure_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "arrival_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ] + }, + "linking_list": [ + [ + "city", + "airports.city" + ], + [ + "city", + "departure_points.city" + ], + [ + "city", + "arrival_points.city" + ], + [ + "country", + "airports.country" + ], + [ + "country", + "departure_points.country" + ], + [ + "country", + "arrival_points.country" + ] + ], + "linking_list_idx": [ + [ + 0, + "airports.city" + ], + [ + 0, + "departure_points.city" + ], + [ + 0, + "arrival_points.city" + ], + [ + 1, + "airports.country" + ], + [ + 1, + "departure_points.country" + ], + [ + 1, + "arrival_points.country" + ] + ], + "linking_list_col": [ + [ + "airports.city", + "departure_points.city" + ], + [ + "airports.city", + "arrival_points.city" + ], + [ + "departure_points.city", + "arrival_points.city" + ], + [ + "airports.airportcode", + "departure_points.airportcode" + ], + [ + "airports.airportcode", + "arrival_points.airportcode" + ], + [ + "departure_points.airportcode", + "arrival_points.airportcode" + ], + [ + "airports.airportname", + "departure_points.airportname" + ], + [ + "airports.airportname", + "arrival_points.airportname" + ], + [ + "departure_points.airportname", + "arrival_points.airportname" + ], + [ + "airports.country", + "departure_points.country" + ], + [ + "airports.country", + "arrival_points.country" + ], + [ + "departure_points.country", + "arrival_points.country" + ], + [ + "airports.countryabbrev", + "departure_points.countryabbrev" + ], + [ + "airports.countryabbrev", + "arrival_points.countryabbrev" + ], + [ + "departure_points.countryabbrev", + "arrival_points.countryabbrev" + ] + ] + }, + { + "question": "give the #city# and #country# for the alton airport.", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "departure_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "arrival_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ] + }, + "linking_list": [ + [ + "city", + "airports.city" + ], + [ + "city", + "departure_points.city" + ], + [ + "city", + "arrival_points.city" + ], + [ + "country", + "airports.country" + ], + [ + "country", + "departure_points.country" + ], + [ + "country", + "arrival_points.country" + ] + ], + "linking_list_idx": [ + [ + 0, + "airports.city" + ], + [ + 0, + "departure_points.city" + ], + [ + 0, + "arrival_points.city" + ], + [ + 1, + "airports.country" + ], + [ + 1, + "departure_points.country" + ], + [ + 1, + "arrival_points.country" + ] + ], + "linking_list_col": [ + [ + "airports.city", + "departure_points.city" + ], + [ + "airports.city", + "arrival_points.city" + ], + [ + "departure_points.city", + "arrival_points.city" + ], + [ + "airports.airportcode", + "departure_points.airportcode" + ], + [ + "airports.airportcode", + "arrival_points.airportcode" + ], + [ + "departure_points.airportcode", + "arrival_points.airportcode" + ], + [ + "airports.airportname", + "departure_points.airportname" + ], + [ + "airports.airportname", + "arrival_points.airportname" + ], + [ + "departure_points.airportname", + "arrival_points.airportname" + ], + [ + "airports.country", + "departure_points.country" + ], + [ + "airports.country", + "arrival_points.country" + ], + [ + "departure_points.country", + "arrival_points.country" + ], + [ + "airports.countryabbrev", + "departure_points.countryabbrev" + ], + [ + "airports.countryabbrev", + "arrival_points.countryabbrev" + ], + [ + "departure_points.countryabbrev", + "arrival_points.countryabbrev" + ] + ] + }, + { + "question": "what is the #airport name# for airport 'ako'?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "departure_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "arrival_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ] + }, + "linking_list": [ + [ + "airport name", + "airports.airportname" + ], + [ + "airport name", + "departure_points.airportname" + ], + [ + "airport name", + "arrival_points.airportname" + ] + ], + "linking_list_idx": [ + [ + 0, + "airports.airportname" + ], + [ + 0, + "departure_points.airportname" + ], + [ + 0, + "arrival_points.airportname" + ] + ], + "linking_list_col": [ + [ + "airports.city", + "departure_points.city" + ], + [ + "airports.city", + "arrival_points.city" + ], + [ + "departure_points.city", + "arrival_points.city" + ], + [ + "airports.airportcode", + "departure_points.airportcode" + ], + [ + "airports.airportcode", + "arrival_points.airportcode" + ], + [ + "departure_points.airportcode", + "arrival_points.airportcode" + ], + [ + "airports.airportname", + "departure_points.airportname" + ], + [ + "airports.airportname", + "arrival_points.airportname" + ], + [ + "departure_points.airportname", + "arrival_points.airportname" + ], + [ + "airports.country", + "departure_points.country" + ], + [ + "airports.country", + "arrival_points.country" + ], + [ + "departure_points.country", + "arrival_points.country" + ], + [ + "airports.countryabbrev", + "departure_points.countryabbrev" + ], + [ + "airports.countryabbrev", + "arrival_points.countryabbrev" + ], + [ + "departure_points.countryabbrev", + "arrival_points.countryabbrev" + ] + ] + }, + { + "question": "what are #airport names at city# 'aberdeen'?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "departure_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "arrival_points": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ] + }, + "linking_list": [ + [ + "airport names at City", + "airports.airportname" + ], + [ + "airport names at City", + "departure_points.airportname" + ], + [ + "airport names at City", + "arrival_points.airportname" + ] + ], + "linking_list_idx": [ + [ + 0, + "airports.airportname" + ], + [ + 0, + "departure_points.airportname" + ], + [ + 0, + "arrival_points.airportname" + ] + ], + "linking_list_col": [ + [ + "airports.city", + "departure_points.city" + ], + [ + "airports.city", + "arrival_points.city" + ], + [ + "departure_points.city", + "arrival_points.city" + ], + [ + "airports.airportcode", + "departure_points.airportcode" + ], + [ + "airports.airportcode", + "arrival_points.airportcode" + ], + [ + "departure_points.airportcode", + "arrival_points.airportcode" + ], + [ + "airports.airportname", + "departure_points.airportname" + ], + [ + "airports.airportname", + "arrival_points.airportname" + ], + [ + "departure_points.airportname", + "arrival_points.airportname" + ], + [ + "airports.country", + "departure_points.country" + ], + [ + "airports.country", + "arrival_points.country" + ], + [ + "departure_points.country", + "arrival_points.country" + ], + [ + "airports.countryabbrev", + "departure_points.countryabbrev" + ], + [ + "airports.countryabbrev", + "arrival_points.countryabbrev" + ], + [ + "departure_points.countryabbrev", + "arrival_points.countryabbrev" + ] + ] + }, + { + "question": "how many #flights# depart from 'apg'?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "flights", + "flights.sourceairport" + ], + [ + "flights", + "journeys.sourceairport" + ], + [ + "flights", + "routes.sourceairport" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.sourceairport" + ], + [ + 0, + "journeys.sourceairport" + ], + [ + 0, + "routes.sourceairport" + ] + ], + "linking_list_col": [ + [ + "flights.airline", + "journeys.airline" + ], + [ + "flights.airline", + "routes.airline" + ], + [ + "journeys.airline", + "routes.airline" + ], + [ + "flights.flightno", + "journeys.flightno" + ], + [ + "flights.flightno", + "routes.flightno" + ], + [ + "journeys.flightno", + "routes.flightno" + ], + [ + "flights.sourceairport", + "journeys.sourceairport" + ], + [ + "flights.sourceairport", + "routes.sourceairport" + ], + [ + "journeys.sourceairport", + "routes.sourceairport" + ], + [ + "flights.destairport", + "journeys.destairport" + ], + [ + "flights.destairport", + "routes.destairport" + ], + [ + "journeys.destairport", + "routes.destairport" + ] + ] + }, + { + "question": "how many #flights# have destination ato?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "flights", + "flights.destairport" + ], + [ + "flights", + "journeys.destairport" + ], + [ + "flights", + "routes.destairport" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.destairport" + ], + [ + 0, + "journeys.destairport" + ], + [ + 0, + "routes.destairport" + ] + ], + "linking_list_col": [ + [ + "flights.airline", + "journeys.airline" + ], + [ + "flights.airline", + "routes.airline" + ], + [ + "journeys.airline", + "routes.airline" + ], + [ + "flights.flightno", + "journeys.flightno" + ], + [ + "flights.flightno", + "routes.flightno" + ], + [ + "journeys.flightno", + "routes.flightno" + ], + [ + "flights.sourceairport", + "journeys.sourceairport" + ], + [ + "flights.sourceairport", + "routes.sourceairport" + ], + [ + "journeys.sourceairport", + "routes.sourceairport" + ], + [ + "flights.destairport", + "journeys.destairport" + ], + [ + "flights.destairport", + "routes.destairport" + ], + [ + "journeys.destairport", + "routes.destairport" + ] + ] + }, + { + "question": "count the #number of flights# into ato.", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "number of flights", + "flights.flightno" + ], + [ + "number of flights", + "journeys.flightno" + ], + [ + "number of flights", + "routes.flightno" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.flightno" + ], + [ + 0, + "journeys.flightno" + ], + [ + 0, + "routes.flightno" + ] + ], + "linking_list_col": [ + [ + "flights.airline", + "journeys.airline" + ], + [ + "flights.airline", + "routes.airline" + ], + [ + "journeys.airline", + "routes.airline" + ], + [ + "flights.flightno", + "journeys.flightno" + ], + [ + "flights.flightno", + "routes.flightno" + ], + [ + "journeys.flightno", + "routes.flightno" + ], + [ + "flights.sourceairport", + "journeys.sourceairport" + ], + [ + "flights.sourceairport", + "routes.sourceairport" + ], + [ + "journeys.sourceairport", + "routes.sourceairport" + ], + [ + "flights.destairport", + "journeys.destairport" + ], + [ + "flights.destairport", + "routes.destairport" + ], + [ + "journeys.destairport", + "routes.destairport" + ] + ] + }, + { + "question": "how many #flights# depart from #city# aberdeen?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "flights", + "flights.flightno" + ], + [ + "flights", + "journeys.flightno" + ], + [ + "flights", + "routes.flightno" + ], + [ + "City", + "airports.city" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.flightno" + ], + [ + 0, + "journeys.flightno" + ], + [ + 0, + "routes.flightno" + ], + [ + 1, + "airports.city" + ] + ], + "linking_list_col": [ + [ + "flights.airline", + "journeys.airline" + ], + [ + "flights.airline", + "routes.airline" + ], + [ + "journeys.airline", + "routes.airline" + ], + [ + "flights.flightno", + "journeys.flightno" + ], + [ + "flights.flightno", + "routes.flightno" + ], + [ + "journeys.flightno", + "routes.flightno" + ], + [ + "flights.sourceairport", + "journeys.sourceairport" + ], + [ + "flights.sourceairport", + "routes.sourceairport" + ], + [ + "journeys.sourceairport", + "routes.sourceairport" + ], + [ + "flights.destairport", + "journeys.destairport" + ], + [ + "flights.destairport", + "routes.destairport" + ], + [ + "journeys.destairport", + "routes.destairport" + ] + ] + }, + { + "question": "return the #number of flights# arriving in #aberdeen# .", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "number of flights", + "flights.flightno" + ], + [ + "number of flights", + "journeys.flightno" + ], + [ + "number of flights", + "routes.flightno" + ], + [ + "Aberdeen", + "airports.city" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.flightno" + ], + [ + 0, + "journeys.flightno" + ], + [ + 0, + "routes.flightno" + ], + [ + 1, + "airports.city" + ] + ], + "linking_list_col": [ + [ + "flights.airline", + "journeys.airline" + ], + [ + "flights.airline", + "routes.airline" + ], + [ + "journeys.airline", + "routes.airline" + ], + [ + "flights.flightno", + "journeys.flightno" + ], + [ + "flights.flightno", + "routes.flightno" + ], + [ + "journeys.flightno", + "routes.flightno" + ], + [ + "flights.sourceairport", + "journeys.sourceairport" + ], + [ + "flights.sourceairport", + "routes.sourceairport" + ], + [ + "journeys.sourceairport", + "routes.sourceairport" + ], + [ + "flights.destairport", + "journeys.destairport" + ], + [ + "flights.destairport", + "routes.destairport" + ], + [ + "journeys.destairport", + "routes.destairport" + ] + ] + }, + { + "question": "how many #flights# fly from aberdeen to ashley?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "flights", + "flights.flightno" + ], + [ + "flights", + "journeys.flightno" + ], + [ + "flights", + "routes.flightno" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.flightno" + ], + [ + 0, + "journeys.flightno" + ], + [ + 0, + "routes.flightno" + ] + ], + "linking_list_col": [ + [ + "flights.airline", + "journeys.airline" + ], + [ + "flights.airline", + "routes.airline" + ], + [ + "journeys.airline", + "routes.airline" + ], + [ + "flights.flightno", + "journeys.flightno" + ], + [ + "flights.flightno", + "routes.flightno" + ], + [ + "journeys.flightno", + "routes.flightno" + ], + [ + "flights.sourceairport", + "journeys.sourceairport" + ], + [ + "flights.sourceairport", + "routes.sourceairport" + ], + [ + "journeys.sourceairport", + "routes.sourceairport" + ], + [ + "flights.destairport", + "journeys.destairport" + ], + [ + "flights.destairport", + "routes.destairport" + ], + [ + "journeys.destairport", + "routes.destairport" + ] + ] + }, + { + "question": "how many #flights# does #airline# 'jetblue airways' have?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "flights", + "flights.airline" + ], + [ + "flights", + "journeys.airline" + ], + [ + "flights", + "routes.airline" + ], + [ + "airline", + "airlines.airline" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.airline" + ], + [ + 0, + "journeys.airline" + ], + [ + 0, + "routes.airline" + ], + [ + 1, + "airlines.airline" + ] + ], + "linking_list_col": [ + [ + "flights.airline", + "journeys.airline" + ], + [ + "flights.airline", + "routes.airline" + ], + [ + "journeys.airline", + "routes.airline" + ], + [ + "flights.flightno", + "journeys.flightno" + ], + [ + "flights.flightno", + "routes.flightno" + ], + [ + "journeys.flightno", + "routes.flightno" + ], + [ + "flights.sourceairport", + "journeys.sourceairport" + ], + [ + "flights.sourceairport", + "routes.sourceairport" + ], + [ + "journeys.sourceairport", + "routes.sourceairport" + ], + [ + "flights.destairport", + "journeys.destairport" + ], + [ + "flights.destairport", + "routes.destairport" + ], + [ + "journeys.destairport", + "routes.destairport" + ] + ] + }, + { + "question": "give the #number of jetblue airways flights# .", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "number of Jetblue Airways flights", + "flights.airline" + ], + [ + "number of Jetblue Airways flights", + "journeys.airline" + ], + [ + "number of Jetblue Airways flights", + "routes.airline" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.airline" + ], + [ + 0, + "journeys.airline" + ], + [ + 0, + "routes.airline" + ] + ], + "linking_list_col": [ + [ + "flights.airline", + "journeys.airline" + ], + [ + "flights.airline", + "routes.airline" + ], + [ + "journeys.airline", + "routes.airline" + ], + [ + "flights.flightno", + "journeys.flightno" + ], + [ + "flights.flightno", + "routes.flightno" + ], + [ + "journeys.flightno", + "routes.flightno" + ], + [ + "flights.sourceairport", + "journeys.sourceairport" + ], + [ + "flights.sourceairport", + "routes.sourceairport" + ], + [ + "journeys.sourceairport", + "routes.sourceairport" + ], + [ + "flights.destairport", + "journeys.destairport" + ], + [ + "flights.destairport", + "routes.destairport" + ], + [ + "journeys.destairport", + "routes.destairport" + ] + ] + }, + { + "question": "how many 'united airlines' #flights# go to #airport# 'asy'?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "flights", + "flights.flightno" + ], + [ + "flights", + "journeys.flightno" + ], + [ + "flights", + "routes.flightno" + ], + [ + "Airport", + "airports.airportcode" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.flightno" + ], + [ + 0, + "journeys.flightno" + ], + [ + 0, + "routes.flightno" + ], + [ + 1, + "airports.airportcode" + ] + ], + "linking_list_col": [ + [ + "flights.airline", + "journeys.airline" + ], + [ + "flights.airline", + "routes.airline" + ], + [ + "journeys.airline", + "routes.airline" + ], + [ + "flights.flightno", + "journeys.flightno" + ], + [ + "flights.flightno", + "routes.flightno" + ], + [ + "journeys.flightno", + "routes.flightno" + ], + [ + "flights.sourceairport", + "journeys.sourceairport" + ], + [ + "flights.sourceairport", + "routes.sourceairport" + ], + [ + "journeys.sourceairport", + "routes.sourceairport" + ], + [ + "flights.destairport", + "journeys.destairport" + ], + [ + "flights.destairport", + "routes.destairport" + ], + [ + "journeys.destairport", + "routes.destairport" + ] + ] + }, + { + "question": "how many 'united airlines' flights #depart from airport# 'ahd'?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "depart from Airport", + "flights.sourceairport" + ], + [ + "depart from Airport", + "journeys.sourceairport" + ], + [ + "depart from Airport", + "routes.sourceairport" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.sourceairport" + ], + [ + 0, + "journeys.sourceairport" + ], + [ + 0, + "routes.sourceairport" + ] + ], + "linking_list_col": [ + [ + "flights.airline", + "journeys.airline" + ], + [ + "flights.airline", + "routes.airline" + ], + [ + "journeys.airline", + "routes.airline" + ], + [ + "flights.flightno", + "journeys.flightno" + ], + [ + "flights.flightno", + "routes.flightno" + ], + [ + "journeys.flightno", + "routes.flightno" + ], + [ + "flights.sourceairport", + "journeys.sourceairport" + ], + [ + "flights.sourceairport", + "routes.sourceairport" + ], + [ + "journeys.sourceairport", + "routes.sourceairport" + ], + [ + "flights.destairport", + "journeys.destairport" + ], + [ + "flights.destairport", + "routes.destairport" + ], + [ + "journeys.destairport", + "routes.destairport" + ] + ] + }, + { + "question": "count the #number of united airlines flights# that arrive in #aberdeen# .", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "number of United Airlines flights", + "flights.airline" + ], + [ + "number of United Airlines flights", + "journeys.airline" + ], + [ + "number of United Airlines flights", + "routes.airline" + ], + [ + "Aberdeen", + "airports.city" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.airline" + ], + [ + 0, + "journeys.airline" + ], + [ + 0, + "routes.airline" + ], + [ + 1, + "airports.city" + ] + ], + "linking_list_col": [ + [ + "flights.airline", + "journeys.airline" + ], + [ + "flights.airline", + "routes.airline" + ], + [ + "journeys.airline", + "routes.airline" + ], + [ + "flights.flightno", + "journeys.flightno" + ], + [ + "flights.flightno", + "routes.flightno" + ], + [ + "journeys.flightno", + "routes.flightno" + ], + [ + "flights.sourceairport", + "journeys.sourceairport" + ], + [ + "flights.sourceairport", + "routes.sourceairport" + ], + [ + "journeys.sourceairport", + "routes.sourceairport" + ], + [ + "flights.destairport", + "journeys.destairport" + ], + [ + "flights.destairport", + "routes.destairport" + ], + [ + "journeys.destairport", + "routes.destairport" + ] + ] + }, + { + "question": "what are #airlines# that have some #flight departing from airport# 'ahd'?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airlines", + "airlines.airline" + ], + [ + "flight departing from airport", + "flights.sourceairport" + ], + [ + "flight departing from airport", + "journeys.sourceairport" + ], + [ + "flight departing from airport", + "routes.sourceairport" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 1, + "flights.sourceairport" + ], + [ + 1, + "journeys.sourceairport" + ], + [ + 1, + "routes.sourceairport" + ] + ], + "linking_list_col": [ + [ + "flights.airline", + "journeys.airline" + ], + [ + "flights.airline", + "routes.airline" + ], + [ + "journeys.airline", + "routes.airline" + ], + [ + "flights.flightno", + "journeys.flightno" + ], + [ + "flights.flightno", + "routes.flightno" + ], + [ + "journeys.flightno", + "routes.flightno" + ], + [ + "flights.sourceairport", + "journeys.sourceairport" + ], + [ + "flights.sourceairport", + "routes.sourceairport" + ], + [ + "journeys.sourceairport", + "routes.sourceairport" + ], + [ + "flights.destairport", + "journeys.destairport" + ], + [ + "flights.destairport", + "routes.destairport" + ], + [ + "journeys.destairport", + "routes.destairport" + ] + ] + }, + { + "question": "which airlines have a flight with #source airport# ahd?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "source airport", + "flights.sourceairport" + ], + [ + "source airport", + "journeys.sourceairport" + ], + [ + "source airport", + "routes.sourceairport" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.sourceairport" + ], + [ + 0, + "journeys.sourceairport" + ], + [ + 0, + "routes.sourceairport" + ] + ], + "linking_list_col": [ + [ + "flights.airline", + "journeys.airline" + ], + [ + "flights.airline", + "routes.airline" + ], + [ + "journeys.airline", + "routes.airline" + ], + [ + "flights.flightno", + "journeys.flightno" + ], + [ + "flights.flightno", + "routes.flightno" + ], + [ + "journeys.flightno", + "routes.flightno" + ], + [ + "flights.sourceairport", + "journeys.sourceairport" + ], + [ + "flights.sourceairport", + "routes.sourceairport" + ], + [ + "journeys.sourceairport", + "routes.sourceairport" + ], + [ + "flights.destairport", + "journeys.destairport" + ], + [ + "flights.destairport", + "routes.destairport" + ], + [ + "journeys.destairport", + "routes.destairport" + ] + ] + }, + { + "question": "what are #airlines# that have #flights arriving at airport# 'ahd'?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airlines", + "airlines.airline" + ], + [ + "flights arriving at airport", + "flights.destairport" + ], + [ + "flights arriving at airport", + "journeys.destairport" + ], + [ + "flights arriving at airport", + "routes.destairport" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 1, + "flights.destairport" + ], + [ + 1, + "journeys.destairport" + ], + [ + 1, + "routes.destairport" + ] + ], + "linking_list_col": [ + [ + "flights.airline", + "journeys.airline" + ], + [ + "flights.airline", + "routes.airline" + ], + [ + "journeys.airline", + "routes.airline" + ], + [ + "flights.flightno", + "journeys.flightno" + ], + [ + "flights.flightno", + "routes.flightno" + ], + [ + "journeys.flightno", + "routes.flightno" + ], + [ + "flights.sourceairport", + "journeys.sourceairport" + ], + [ + "flights.sourceairport", + "routes.sourceairport" + ], + [ + "journeys.sourceairport", + "routes.sourceairport" + ], + [ + "flights.destairport", + "journeys.destairport" + ], + [ + "flights.destairport", + "routes.destairport" + ], + [ + "journeys.destairport", + "routes.destairport" + ] + ] + }, + { + "question": "which airlines have a flight with #destination airport# ahd?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "destination airport", + "flights.destairport" + ], + [ + "destination airport", + "journeys.destairport" + ], + [ + "destination airport", + "routes.destairport" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.destairport" + ], + [ + 0, + "journeys.destairport" + ], + [ + 0, + "routes.destairport" + ] + ], + "linking_list_col": [ + [ + "flights.airline", + "journeys.airline" + ], + [ + "flights.airline", + "routes.airline" + ], + [ + "journeys.airline", + "routes.airline" + ], + [ + "flights.flightno", + "journeys.flightno" + ], + [ + "flights.flightno", + "routes.flightno" + ], + [ + "journeys.flightno", + "routes.flightno" + ], + [ + "flights.sourceairport", + "journeys.sourceairport" + ], + [ + "flights.sourceairport", + "routes.sourceairport" + ], + [ + "journeys.sourceairport", + "routes.sourceairport" + ], + [ + "flights.destairport", + "journeys.destairport" + ], + [ + "flights.destairport", + "routes.destairport" + ], + [ + "journeys.destairport", + "routes.destairport" + ] + ] + }, + { + "question": "which #airlines# have #departing flights# from both apg and cvo airports?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airlines", + "airlines.airline" + ], + [ + "departing flights", + "flights.sourceairport" + ], + [ + "departing flights", + "journeys.sourceairport" + ], + [ + "departing flights", + "routes.sourceairport" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 1, + "flights.sourceairport" + ], + [ + 1, + "journeys.sourceairport" + ], + [ + 1, + "routes.sourceairport" + ] + ], + "linking_list_col": [ + [ + "flights.airline", + "journeys.airline" + ], + [ + "flights.airline", + "routes.airline" + ], + [ + "journeys.airline", + "routes.airline" + ], + [ + "flights.flightno", + "journeys.flightno" + ], + [ + "flights.flightno", + "routes.flightno" + ], + [ + "journeys.flightno", + "routes.flightno" + ], + [ + "flights.sourceairport", + "journeys.sourceairport" + ], + [ + "flights.sourceairport", + "routes.sourceairport" + ], + [ + "journeys.sourceairport", + "routes.sourceairport" + ], + [ + "flights.destairport", + "journeys.destairport" + ], + [ + "flights.destairport", + "routes.destairport" + ], + [ + "journeys.destairport", + "routes.destairport" + ] + ] + }, + { + "question": "which #airlines# have #departures from cvo# but #not from apg# airports?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airlines", + "airlines.airline" + ], + [ + "departures from CVO", + "flights.sourceairport" + ], + [ + "departures from CVO", + "journeys.sourceairport" + ], + [ + "departures from CVO", + "routes.sourceairport" + ], + [ + "not from APG", + "flights.sourceairport" + ], + [ + "not from APG", + "journeys.sourceairport" + ], + [ + "not from APG", + "routes.sourceairport" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 1, + "flights.sourceairport" + ], + [ + 1, + "journeys.sourceairport" + ], + [ + 1, + "routes.sourceairport" + ], + [ + 2, + "flights.sourceairport" + ], + [ + 2, + "journeys.sourceairport" + ], + [ + 2, + "routes.sourceairport" + ] + ], + "linking_list_col": [ + [ + "flights.airline", + "journeys.airline" + ], + [ + "flights.airline", + "routes.airline" + ], + [ + "journeys.airline", + "routes.airline" + ], + [ + "flights.flightno", + "journeys.flightno" + ], + [ + "flights.flightno", + "routes.flightno" + ], + [ + "journeys.flightno", + "routes.flightno" + ], + [ + "flights.sourceairport", + "journeys.sourceairport" + ], + [ + "flights.sourceairport", + "routes.sourceairport" + ], + [ + "journeys.sourceairport", + "routes.sourceairport" + ], + [ + "flights.destairport", + "journeys.destairport" + ], + [ + "flights.destairport", + "routes.destairport" + ], + [ + "journeys.destairport", + "routes.destairport" + ] + ] + }, + { + "question": "find all #airlines# that have #fewer than 200 flights# .", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "airlines", + "airlines.airline" + ], + [ + "fewer than 200 flights", + "flights.flightno" + ], + [ + "fewer than 200 flights", + "journeys.flightno" + ], + [ + "fewer than 200 flights", + "routes.flightno" + ] + ], + "linking_list_idx": [ + [ + 0, + "airlines.airline" + ], + [ + 1, + "flights.flightno" + ], + [ + 1, + "journeys.flightno" + ], + [ + 1, + "routes.flightno" + ] + ], + "linking_list_col": [ + [ + "flights.airline", + "journeys.airline" + ], + [ + "flights.airline", + "routes.airline" + ], + [ + "journeys.airline", + "routes.airline" + ], + [ + "flights.flightno", + "journeys.flightno" + ], + [ + "flights.flightno", + "routes.flightno" + ], + [ + "journeys.flightno", + "routes.flightno" + ], + [ + "flights.sourceairport", + "journeys.sourceairport" + ], + [ + "flights.sourceairport", + "routes.sourceairport" + ], + [ + "journeys.sourceairport", + "routes.sourceairport" + ], + [ + "flights.destairport", + "journeys.destairport" + ], + [ + "flights.destairport", + "routes.destairport" + ], + [ + "journeys.destairport", + "routes.destairport" + ] + ] + }, + { + "question": "what are #flight numbers# of flights #departing from airport# \"apg\"?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "flight numbers", + "flights.flightno" + ], + [ + "flight numbers", + "journeys.flightno" + ], + [ + "flight numbers", + "routes.flightno" + ], + [ + "departing from Airport", + "flights.sourceairport" + ], + [ + "departing from Airport", + "journeys.sourceairport" + ], + [ + "departing from Airport", + "routes.sourceairport" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.flightno" + ], + [ + 0, + "journeys.flightno" + ], + [ + 0, + "routes.flightno" + ], + [ + 1, + "flights.sourceairport" + ], + [ + 1, + "journeys.sourceairport" + ], + [ + 1, + "routes.sourceairport" + ] + ], + "linking_list_col": [ + [ + "flights.airline", + "journeys.airline" + ], + [ + "flights.airline", + "routes.airline" + ], + [ + "journeys.airline", + "routes.airline" + ], + [ + "flights.flightno", + "journeys.flightno" + ], + [ + "flights.flightno", + "routes.flightno" + ], + [ + "journeys.flightno", + "routes.flightno" + ], + [ + "flights.sourceairport", + "journeys.sourceairport" + ], + [ + "flights.sourceairport", + "routes.sourceairport" + ], + [ + "journeys.sourceairport", + "routes.sourceairport" + ], + [ + "flights.destairport", + "journeys.destairport" + ], + [ + "flights.destairport", + "routes.destairport" + ], + [ + "journeys.destairport", + "routes.destairport" + ] + ] + }, + { + "question": "give the #flight numbers# of flights #leaving from# apg.", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "flight numbers", + "flights.flightno" + ], + [ + "flight numbers", + "journeys.flightno" + ], + [ + "flight numbers", + "routes.flightno" + ], + [ + "leaving from", + "flights.sourceairport" + ], + [ + "leaving from", + "journeys.sourceairport" + ], + [ + "leaving from", + "routes.sourceairport" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.flightno" + ], + [ + 0, + "journeys.flightno" + ], + [ + 0, + "routes.flightno" + ], + [ + 1, + "flights.sourceairport" + ], + [ + 1, + "journeys.sourceairport" + ], + [ + 1, + "routes.sourceairport" + ] + ], + "linking_list_col": [ + [ + "flights.airline", + "journeys.airline" + ], + [ + "flights.airline", + "routes.airline" + ], + [ + "journeys.airline", + "routes.airline" + ], + [ + "flights.flightno", + "journeys.flightno" + ], + [ + "flights.flightno", + "routes.flightno" + ], + [ + "journeys.flightno", + "routes.flightno" + ], + [ + "flights.sourceairport", + "journeys.sourceairport" + ], + [ + "flights.sourceairport", + "routes.sourceairport" + ], + [ + "journeys.sourceairport", + "routes.sourceairport" + ], + [ + "flights.destairport", + "journeys.destairport" + ], + [ + "flights.destairport", + "routes.destairport" + ], + [ + "journeys.destairport", + "routes.destairport" + ] + ] + }, + { + "question": "what are #flight numbers# of flights #arriving at airport# \"apg\"?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "flight numbers", + "flights.flightno" + ], + [ + "flight numbers", + "journeys.flightno" + ], + [ + "flight numbers", + "routes.flightno" + ], + [ + "arriving at Airport", + "flights.destairport" + ], + [ + "arriving at Airport", + "journeys.destairport" + ], + [ + "arriving at Airport", + "routes.destairport" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.flightno" + ], + [ + 0, + "journeys.flightno" + ], + [ + 0, + "routes.flightno" + ], + [ + 1, + "flights.destairport" + ], + [ + 1, + "journeys.destairport" + ], + [ + 1, + "routes.destairport" + ] + ], + "linking_list_col": [ + [ + "flights.airline", + "journeys.airline" + ], + [ + "flights.airline", + "routes.airline" + ], + [ + "journeys.airline", + "routes.airline" + ], + [ + "flights.flightno", + "journeys.flightno" + ], + [ + "flights.flightno", + "routes.flightno" + ], + [ + "journeys.flightno", + "routes.flightno" + ], + [ + "flights.sourceairport", + "journeys.sourceairport" + ], + [ + "flights.sourceairport", + "routes.sourceairport" + ], + [ + "journeys.sourceairport", + "routes.sourceairport" + ], + [ + "flights.destairport", + "journeys.destairport" + ], + [ + "flights.destairport", + "routes.destairport" + ], + [ + "journeys.destairport", + "routes.destairport" + ] + ] + }, + { + "question": "give the #flight numbers# of flights #landing at# apg.", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "flight numbers", + "flights.flightno" + ], + [ + "flight numbers", + "journeys.flightno" + ], + [ + "flight numbers", + "routes.flightno" + ], + [ + "landing at", + "flights.destairport" + ], + [ + "landing at", + "journeys.destairport" + ], + [ + "landing at", + "routes.destairport" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.flightno" + ], + [ + 0, + "journeys.flightno" + ], + [ + 0, + "routes.flightno" + ], + [ + 1, + "flights.destairport" + ], + [ + 1, + "journeys.destairport" + ], + [ + 1, + "routes.destairport" + ] + ], + "linking_list_col": [ + [ + "flights.airline", + "journeys.airline" + ], + [ + "flights.airline", + "routes.airline" + ], + [ + "journeys.airline", + "routes.airline" + ], + [ + "flights.flightno", + "journeys.flightno" + ], + [ + "flights.flightno", + "routes.flightno" + ], + [ + "journeys.flightno", + "routes.flightno" + ], + [ + "flights.sourceairport", + "journeys.sourceairport" + ], + [ + "flights.sourceairport", + "routes.sourceairport" + ], + [ + "journeys.sourceairport", + "routes.sourceairport" + ], + [ + "flights.destairport", + "journeys.destairport" + ], + [ + "flights.destairport", + "routes.destairport" + ], + [ + "journeys.destairport", + "routes.destairport" + ] + ] + }, + { + "question": "what are #flight numbers# of flights #departing from city# \"aberdeen \"?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "flight numbers", + "flights.flightno" + ], + [ + "flight numbers", + "journeys.flightno" + ], + [ + "flight numbers", + "routes.flightno" + ], + [ + "departing from city", + "airports.city" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.flightno" + ], + [ + 0, + "journeys.flightno" + ], + [ + 0, + "routes.flightno" + ], + [ + 1, + "airports.city" + ] + ], + "linking_list_col": [ + [ + "flights.airline", + "journeys.airline" + ], + [ + "flights.airline", + "routes.airline" + ], + [ + "journeys.airline", + "routes.airline" + ], + [ + "flights.flightno", + "journeys.flightno" + ], + [ + "flights.flightno", + "routes.flightno" + ], + [ + "journeys.flightno", + "routes.flightno" + ], + [ + "flights.sourceairport", + "journeys.sourceairport" + ], + [ + "flights.sourceairport", + "routes.sourceairport" + ], + [ + "journeys.sourceairport", + "routes.sourceairport" + ], + [ + "flights.destairport", + "journeys.destairport" + ], + [ + "flights.destairport", + "routes.destairport" + ], + [ + "journeys.destairport", + "routes.destairport" + ] + ] + }, + { + "question": "give the #flight numbers# of flights #leaving from# aberdeen.", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "flight numbers", + "flights.flightno" + ], + [ + "flight numbers", + "journeys.flightno" + ], + [ + "flight numbers", + "routes.flightno" + ], + [ + "leaving from", + "airports.city" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.flightno" + ], + [ + 0, + "journeys.flightno" + ], + [ + 0, + "routes.flightno" + ], + [ + 1, + "airports.city" + ] + ], + "linking_list_col": [ + [ + "flights.airline", + "journeys.airline" + ], + [ + "flights.airline", + "routes.airline" + ], + [ + "journeys.airline", + "routes.airline" + ], + [ + "flights.flightno", + "journeys.flightno" + ], + [ + "flights.flightno", + "routes.flightno" + ], + [ + "journeys.flightno", + "routes.flightno" + ], + [ + "flights.sourceairport", + "journeys.sourceairport" + ], + [ + "flights.sourceairport", + "routes.sourceairport" + ], + [ + "journeys.sourceairport", + "routes.sourceairport" + ], + [ + "flights.destairport", + "journeys.destairport" + ], + [ + "flights.destairport", + "routes.destairport" + ], + [ + "journeys.destairport", + "routes.destairport" + ] + ] + }, + { + "question": "what are #flight numbers# of flights #arriving at city# \"aberdeen\"?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "flight numbers", + "flights.flightno" + ], + [ + "flight numbers", + "journeys.flightno" + ], + [ + "flight numbers", + "routes.flightno" + ], + [ + "arriving at City", + "airports.city" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.flightno" + ], + [ + 0, + "journeys.flightno" + ], + [ + 0, + "routes.flightno" + ], + [ + 1, + "airports.city" + ] + ], + "linking_list_col": [ + [ + "flights.airline", + "journeys.airline" + ], + [ + "flights.airline", + "routes.airline" + ], + [ + "journeys.airline", + "routes.airline" + ], + [ + "flights.flightno", + "journeys.flightno" + ], + [ + "flights.flightno", + "routes.flightno" + ], + [ + "journeys.flightno", + "routes.flightno" + ], + [ + "flights.sourceairport", + "journeys.sourceairport" + ], + [ + "flights.sourceairport", + "routes.sourceairport" + ], + [ + "journeys.sourceairport", + "routes.sourceairport" + ], + [ + "flights.destairport", + "journeys.destairport" + ], + [ + "flights.destairport", + "routes.destairport" + ], + [ + "journeys.destairport", + "routes.destairport" + ] + ] + }, + { + "question": "give the #flight numbers# of flights arriving in #aberdeen# .", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "flight numbers", + "flights.flightno" + ], + [ + "flight numbers", + "journeys.flightno" + ], + [ + "flight numbers", + "routes.flightno" + ], + [ + "Aberdeen", + "airports.city" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.flightno" + ], + [ + 0, + "journeys.flightno" + ], + [ + 0, + "routes.flightno" + ], + [ + 1, + "airports.city" + ] + ], + "linking_list_col": [ + [ + "flights.airline", + "journeys.airline" + ], + [ + "flights.airline", + "routes.airline" + ], + [ + "journeys.airline", + "routes.airline" + ], + [ + "flights.flightno", + "journeys.flightno" + ], + [ + "flights.flightno", + "routes.flightno" + ], + [ + "journeys.flightno", + "routes.flightno" + ], + [ + "flights.sourceairport", + "journeys.sourceairport" + ], + [ + "flights.sourceairport", + "routes.sourceairport" + ], + [ + "journeys.sourceairport", + "routes.sourceairport" + ], + [ + "flights.destairport", + "journeys.destairport" + ], + [ + "flights.destairport", + "routes.destairport" + ], + [ + "journeys.destairport", + "routes.destairport" + ] + ] + }, + { + "question": "find the #number of flights# landing in the #city# of aberdeen or abilene.", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "number of flights", + "flights.flightno" + ], + [ + "number of flights", + "journeys.flightno" + ], + [ + "number of flights", + "routes.flightno" + ], + [ + "city", + "airports.city" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.flightno" + ], + [ + 0, + "journeys.flightno" + ], + [ + 0, + "routes.flightno" + ], + [ + 1, + "airports.city" + ] + ], + "linking_list_col": [ + [ + "flights.airline", + "journeys.airline" + ], + [ + "flights.airline", + "routes.airline" + ], + [ + "journeys.airline", + "routes.airline" + ], + [ + "flights.flightno", + "journeys.flightno" + ], + [ + "flights.flightno", + "routes.flightno" + ], + [ + "journeys.flightno", + "routes.flightno" + ], + [ + "flights.sourceairport", + "journeys.sourceairport" + ], + [ + "flights.sourceairport", + "routes.sourceairport" + ], + [ + "journeys.sourceairport", + "routes.sourceairport" + ], + [ + "flights.destairport", + "journeys.destairport" + ], + [ + "flights.destairport", + "routes.destairport" + ], + [ + "journeys.destairport", + "routes.destairport" + ] + ] + }, + { + "question": "how many #flights# land in #aberdeen# or abilene?", + "db_schema": { + "airlines": [ + "uid", + "airline", + "abbreviation", + "country" + ], + "airports": [ + "city", + "airportcode", + "airportname", + "country", + "countryabbrev" + ], + "flights": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "journeys": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ], + "routes": [ + "airline", + "flightno", + "sourceairport", + "destairport" + ] + }, + "linking_list": [ + [ + "flights", + "flights.flightno" + ], + [ + "flights", + "journeys.flightno" + ], + [ + "flights", + "routes.flightno" + ], + [ + "Aberdeen", + "airports.city" + ] + ], + "linking_list_idx": [ + [ + 0, + "flights.flightno" + ], + [ + 0, + "journeys.flightno" + ], + [ + 0, + "routes.flightno" + ], + [ + 1, + "airports.city" + ] + ], + "linking_list_col": [ + [ + "flights.airline", + "journeys.airline" + ], + [ + "flights.airline", + "routes.airline" + ], + [ + "journeys.airline", + "routes.airline" + ], + [ + "flights.flightno", + "journeys.flightno" + ], + [ + "flights.flightno", + "routes.flightno" + ], + [ + "journeys.flightno", + "routes.flightno" + ], + [ + "flights.sourceairport", + "journeys.sourceairport" + ], + [ + "flights.sourceairport", + "routes.sourceairport" + ], + [ + "journeys.sourceairport", + "routes.sourceairport" + ], + [ + "flights.destairport", + "journeys.destairport" + ], + [ + "flights.destairport", + "routes.destairport" + ], + [ + "journeys.destairport", + "routes.destairport" + ] + ] + }, + { + "question": "sort #employee names# by their #age# in ascending order.", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ], + "staff": [ + "employee_id", + "name", + "age", + "city" + ], + "worker": [ + "employee_id", + "name", + "age", + "city" + ] + }, + "linking_list": [ + [ + "employee names", + "employee.name" + ], + [ + "employee names", + "staff.name" + ], + [ + "employee names", + "worker.name" + ], + [ + "age", + "employee.age" + ], + [ + "age", + "staff.age" + ], + [ + "age", + "worker.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "employee.name" + ], + [ + 0, + "staff.name" + ], + [ + 0, + "worker.name" + ], + [ + 1, + "employee.age" + ], + [ + 1, + "staff.age" + ], + [ + 1, + "worker.age" + ] + ], + "linking_list_col": [ + [ + "employee.employee_id", + "staff.employee_id" + ], + [ + "employee.employee_id", + "worker.employee_id" + ], + [ + "staff.employee_id", + "worker.employee_id" + ], + [ + "employee.name", + "staff.name" + ], + [ + "employee.name", + "worker.name" + ], + [ + "staff.name", + "worker.name" + ], + [ + "employee.age", + "staff.age" + ], + [ + "employee.age", + "worker.age" + ], + [ + "staff.age", + "worker.age" + ], + [ + "employee.city", + "staff.city" + ], + [ + "employee.city", + "worker.city" + ], + [ + "staff.city", + "worker.city" + ] + ] + }, + { + "question": "list the names of employees and sort in ascending order of #age# .", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ], + "staff": [ + "employee_id", + "name", + "age", + "city" + ], + "worker": [ + "employee_id", + "name", + "age", + "city" + ] + }, + "linking_list": [ + [ + "age", + "employee.age" + ], + [ + "age", + "staff.age" + ], + [ + "age", + "worker.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "employee.age" + ], + [ + 0, + "staff.age" + ], + [ + 0, + "worker.age" + ] + ], + "linking_list_col": [ + [ + "employee.employee_id", + "staff.employee_id" + ], + [ + "employee.employee_id", + "worker.employee_id" + ], + [ + "staff.employee_id", + "worker.employee_id" + ], + [ + "employee.name", + "staff.name" + ], + [ + "employee.name", + "worker.name" + ], + [ + "staff.name", + "worker.name" + ], + [ + "employee.age", + "staff.age" + ], + [ + "employee.age", + "worker.age" + ], + [ + "staff.age", + "worker.age" + ], + [ + "employee.city", + "staff.city" + ], + [ + "employee.city", + "worker.city" + ], + [ + "staff.city", + "worker.city" + ] + ] + }, + { + "question": "what is the #number of employees# from each city?", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ], + "staff": [ + "employee_id", + "name", + "age", + "city" + ], + "worker": [ + "employee_id", + "name", + "age", + "city" + ] + }, + "linking_list": [ + [ + "number of employees", + "employee.employee_id" + ], + [ + "number of employees", + "staff.employee_id" + ], + [ + "number of employees", + "worker.employee_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "employee.employee_id" + ], + [ + 0, + "staff.employee_id" + ], + [ + 0, + "worker.employee_id" + ] + ], + "linking_list_col": [ + [ + "employee.employee_id", + "staff.employee_id" + ], + [ + "employee.employee_id", + "worker.employee_id" + ], + [ + "staff.employee_id", + "worker.employee_id" + ], + [ + "employee.name", + "staff.name" + ], + [ + "employee.name", + "worker.name" + ], + [ + "staff.name", + "worker.name" + ], + [ + "employee.age", + "staff.age" + ], + [ + "employee.age", + "worker.age" + ], + [ + "staff.age", + "worker.age" + ], + [ + "employee.city", + "staff.city" + ], + [ + "employee.city", + "worker.city" + ], + [ + "staff.city", + "worker.city" + ] + ] + }, + { + "question": "count the number of employees for each #city# .", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ], + "staff": [ + "employee_id", + "name", + "age", + "city" + ], + "worker": [ + "employee_id", + "name", + "age", + "city" + ] + }, + "linking_list": [ + [ + "city", + "employee.city" + ], + [ + "city", + "staff.city" + ], + [ + "city", + "worker.city" + ] + ], + "linking_list_idx": [ + [ + 0, + "employee.city" + ], + [ + 0, + "staff.city" + ], + [ + 0, + "worker.city" + ] + ], + "linking_list_col": [ + [ + "employee.employee_id", + "staff.employee_id" + ], + [ + "employee.employee_id", + "worker.employee_id" + ], + [ + "staff.employee_id", + "worker.employee_id" + ], + [ + "employee.name", + "staff.name" + ], + [ + "employee.name", + "worker.name" + ], + [ + "staff.name", + "worker.name" + ], + [ + "employee.age", + "staff.age" + ], + [ + "employee.age", + "worker.age" + ], + [ + "staff.age", + "worker.age" + ], + [ + "employee.city", + "staff.city" + ], + [ + "employee.city", + "worker.city" + ], + [ + "staff.city", + "worker.city" + ] + ] + }, + { + "question": "which cities do more than one employee #under age 30# come from?", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ], + "staff": [ + "employee_id", + "name", + "age", + "city" + ], + "worker": [ + "employee_id", + "name", + "age", + "city" + ] + }, + "linking_list": [ + [ + "under age 30", + "employee.age" + ], + [ + "under age 30", + "staff.age" + ], + [ + "under age 30", + "worker.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "employee.age" + ], + [ + 0, + "staff.age" + ], + [ + 0, + "worker.age" + ] + ], + "linking_list_col": [ + [ + "employee.employee_id", + "staff.employee_id" + ], + [ + "employee.employee_id", + "worker.employee_id" + ], + [ + "staff.employee_id", + "worker.employee_id" + ], + [ + "employee.name", + "staff.name" + ], + [ + "employee.name", + "worker.name" + ], + [ + "staff.name", + "worker.name" + ], + [ + "employee.age", + "staff.age" + ], + [ + "employee.age", + "worker.age" + ], + [ + "staff.age", + "worker.age" + ], + [ + "employee.city", + "staff.city" + ], + [ + "employee.city", + "worker.city" + ], + [ + "staff.city", + "worker.city" + ] + ] + }, + { + "question": "find the cities that have more than one employee under #age# 30.", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ], + "staff": [ + "employee_id", + "name", + "age", + "city" + ], + "worker": [ + "employee_id", + "name", + "age", + "city" + ] + }, + "linking_list": [ + [ + "age", + "employee.age" + ], + [ + "age", + "staff.age" + ], + [ + "age", + "worker.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "employee.age" + ], + [ + 0, + "staff.age" + ], + [ + 0, + "worker.age" + ] + ], + "linking_list_col": [ + [ + "employee.employee_id", + "staff.employee_id" + ], + [ + "employee.employee_id", + "worker.employee_id" + ], + [ + "staff.employee_id", + "worker.employee_id" + ], + [ + "employee.name", + "staff.name" + ], + [ + "employee.name", + "worker.name" + ], + [ + "staff.name", + "worker.name" + ], + [ + "employee.age", + "staff.age" + ], + [ + "employee.age", + "worker.age" + ], + [ + "staff.age", + "worker.age" + ], + [ + "employee.city", + "staff.city" + ], + [ + "employee.city", + "worker.city" + ], + [ + "staff.city", + "worker.city" + ] + ] + }, + { + "question": "find the #number of shops in each location# .", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ], + "store": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "boutique": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ] + }, + "linking_list": [ + [ + "number of shops in each location", + "shop.shop_id" + ], + [ + "number of shops in each location", + "store.shop_id" + ], + [ + "number of shops in each location", + "boutique.shop_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "shop.shop_id" + ], + [ + 0, + "store.shop_id" + ], + [ + 0, + "boutique.shop_id" + ] + ], + "linking_list_col": [ + [ + "shop.shop_id", + "store.shop_id" + ], + [ + "shop.shop_id", + "boutique.shop_id" + ], + [ + "store.shop_id", + "boutique.shop_id" + ], + [ + "shop.name", + "store.name" + ], + [ + "shop.name", + "boutique.name" + ], + [ + "store.name", + "boutique.name" + ], + [ + "shop.location", + "store.location" + ], + [ + "shop.location", + "boutique.location" + ], + [ + "store.location", + "boutique.location" + ], + [ + "shop.district", + "store.district" + ], + [ + "shop.district", + "boutique.district" + ], + [ + "store.district", + "boutique.district" + ], + [ + "shop.number_products", + "store.number_products" + ], + [ + "shop.number_products", + "boutique.number_products" + ], + [ + "store.number_products", + "boutique.number_products" + ], + [ + "shop.manager_name", + "store.manager_name" + ], + [ + "shop.manager_name", + "boutique.manager_name" + ], + [ + "store.manager_name", + "boutique.manager_name" + ] + ] + }, + { + "question": "find the #manager name# and #district# of the shop whose number of products is the largest.", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ], + "store": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "boutique": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ] + }, + "linking_list": [ + [ + "manager name", + "shop.manager_name" + ], + [ + "manager name", + "store.manager_name" + ], + [ + "manager name", + "boutique.manager_name" + ], + [ + "district", + "shop.district" + ], + [ + "district", + "store.district" + ], + [ + "district", + "boutique.district" + ] + ], + "linking_list_idx": [ + [ + 0, + "shop.manager_name" + ], + [ + 0, + "store.manager_name" + ], + [ + 0, + "boutique.manager_name" + ], + [ + 1, + "shop.district" + ], + [ + 1, + "store.district" + ], + [ + 1, + "boutique.district" + ] + ], + "linking_list_col": [ + [ + "shop.shop_id", + "store.shop_id" + ], + [ + "shop.shop_id", + "boutique.shop_id" + ], + [ + "store.shop_id", + "boutique.shop_id" + ], + [ + "shop.name", + "store.name" + ], + [ + "shop.name", + "boutique.name" + ], + [ + "store.name", + "boutique.name" + ], + [ + "shop.location", + "store.location" + ], + [ + "shop.location", + "boutique.location" + ], + [ + "store.location", + "boutique.location" + ], + [ + "shop.district", + "store.district" + ], + [ + "shop.district", + "boutique.district" + ], + [ + "store.district", + "boutique.district" + ], + [ + "shop.number_products", + "store.number_products" + ], + [ + "shop.number_products", + "boutique.number_products" + ], + [ + "store.number_products", + "boutique.number_products" + ], + [ + "shop.manager_name", + "store.manager_name" + ], + [ + "shop.manager_name", + "boutique.manager_name" + ], + [ + "store.manager_name", + "boutique.manager_name" + ] + ] + }, + { + "question": "what are the #manager name# and #district# of the shop that sells the largest number of products?", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ], + "store": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "boutique": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ] + }, + "linking_list": [ + [ + "manager name", + "shop.manager_name" + ], + [ + "manager name", + "store.manager_name" + ], + [ + "manager name", + "boutique.manager_name" + ], + [ + "district", + "shop.district" + ], + [ + "district", + "store.district" + ], + [ + "district", + "boutique.district" + ] + ], + "linking_list_idx": [ + [ + 0, + "shop.manager_name" + ], + [ + 0, + "store.manager_name" + ], + [ + 0, + "boutique.manager_name" + ], + [ + 1, + "shop.district" + ], + [ + 1, + "store.district" + ], + [ + 1, + "boutique.district" + ] + ], + "linking_list_col": [ + [ + "shop.shop_id", + "store.shop_id" + ], + [ + "shop.shop_id", + "boutique.shop_id" + ], + [ + "store.shop_id", + "boutique.shop_id" + ], + [ + "shop.name", + "store.name" + ], + [ + "shop.name", + "boutique.name" + ], + [ + "store.name", + "boutique.name" + ], + [ + "shop.location", + "store.location" + ], + [ + "shop.location", + "boutique.location" + ], + [ + "store.location", + "boutique.location" + ], + [ + "shop.district", + "store.district" + ], + [ + "shop.district", + "boutique.district" + ], + [ + "store.district", + "boutique.district" + ], + [ + "shop.number_products", + "store.number_products" + ], + [ + "shop.number_products", + "boutique.number_products" + ], + [ + "store.number_products", + "boutique.number_products" + ], + [ + "shop.manager_name", + "store.manager_name" + ], + [ + "shop.manager_name", + "boutique.manager_name" + ], + [ + "store.manager_name", + "boutique.manager_name" + ] + ] + }, + { + "question": "return the #name# , #location# and #district# of all shops in descending order of number of products.", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ], + "store": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "boutique": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ] + }, + "linking_list": [ + [ + "name", + "shop.name" + ], + [ + "name", + "store.name" + ], + [ + "name", + "boutique.name" + ], + [ + "location", + "shop.location" + ], + [ + "location", + "store.location" + ], + [ + "location", + "boutique.location" + ], + [ + "district", + "shop.district" + ], + [ + "district", + "store.district" + ], + [ + "district", + "boutique.district" + ] + ], + "linking_list_idx": [ + [ + 0, + "shop.name" + ], + [ + 0, + "store.name" + ], + [ + 0, + "boutique.name" + ], + [ + 1, + "shop.location" + ], + [ + 1, + "store.location" + ], + [ + 1, + "boutique.location" + ], + [ + 2, + "shop.district" + ], + [ + 2, + "store.district" + ], + [ + 2, + "boutique.district" + ] + ], + "linking_list_col": [ + [ + "shop.shop_id", + "store.shop_id" + ], + [ + "shop.shop_id", + "boutique.shop_id" + ], + [ + "store.shop_id", + "boutique.shop_id" + ], + [ + "shop.name", + "store.name" + ], + [ + "shop.name", + "boutique.name" + ], + [ + "store.name", + "boutique.name" + ], + [ + "shop.location", + "store.location" + ], + [ + "shop.location", + "boutique.location" + ], + [ + "store.location", + "boutique.location" + ], + [ + "shop.district", + "store.district" + ], + [ + "shop.district", + "boutique.district" + ], + [ + "store.district", + "boutique.district" + ], + [ + "shop.number_products", + "store.number_products" + ], + [ + "shop.number_products", + "boutique.number_products" + ], + [ + "store.number_products", + "boutique.number_products" + ], + [ + "shop.manager_name", + "store.manager_name" + ], + [ + "shop.manager_name", + "boutique.manager_name" + ], + [ + "store.manager_name", + "boutique.manager_name" + ] + ] + }, + { + "question": "sort all the shops by number products in descending order, and return the #name# , #location# and #district# of each shop.", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ], + "store": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "boutique": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ] + }, + "linking_list": [ + [ + "name", + "shop.name" + ], + [ + "name", + "store.name" + ], + [ + "name", + "boutique.name" + ], + [ + "location", + "shop.location" + ], + [ + "location", + "store.location" + ], + [ + "location", + "boutique.location" + ], + [ + "district", + "shop.district" + ], + [ + "district", + "store.district" + ], + [ + "district", + "boutique.district" + ] + ], + "linking_list_idx": [ + [ + 0, + "shop.name" + ], + [ + 0, + "store.name" + ], + [ + 0, + "boutique.name" + ], + [ + 1, + "shop.location" + ], + [ + 1, + "store.location" + ], + [ + 1, + "boutique.location" + ], + [ + 2, + "shop.district" + ], + [ + 2, + "store.district" + ], + [ + 2, + "boutique.district" + ] + ], + "linking_list_col": [ + [ + "shop.shop_id", + "store.shop_id" + ], + [ + "shop.shop_id", + "boutique.shop_id" + ], + [ + "store.shop_id", + "boutique.shop_id" + ], + [ + "shop.name", + "store.name" + ], + [ + "shop.name", + "boutique.name" + ], + [ + "store.name", + "boutique.name" + ], + [ + "shop.location", + "store.location" + ], + [ + "shop.location", + "boutique.location" + ], + [ + "store.location", + "boutique.location" + ], + [ + "shop.district", + "store.district" + ], + [ + "shop.district", + "boutique.district" + ], + [ + "store.district", + "boutique.district" + ], + [ + "shop.number_products", + "store.number_products" + ], + [ + "shop.number_products", + "boutique.number_products" + ], + [ + "store.number_products", + "boutique.number_products" + ], + [ + "shop.manager_name", + "store.manager_name" + ], + [ + "shop.manager_name", + "boutique.manager_name" + ], + [ + "store.manager_name", + "boutique.manager_name" + ] + ] + }, + { + "question": "find the names of stores whose #number products# is more than the #average number of products# .", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ], + "store": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "boutique": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ] + }, + "linking_list": [ + [ + "number products", + "shop.number_products" + ], + [ + "number products", + "store.number_products" + ], + [ + "number products", + "boutique.number_products" + ], + [ + "average number of products", + "shop.number_products" + ], + [ + "average number of products", + "store.number_products" + ], + [ + "average number of products", + "boutique.number_products" + ] + ], + "linking_list_idx": [ + [ + 0, + "shop.number_products" + ], + [ + 0, + "store.number_products" + ], + [ + 0, + "boutique.number_products" + ], + [ + 1, + "shop.number_products" + ], + [ + 1, + "store.number_products" + ], + [ + 1, + "boutique.number_products" + ] + ], + "linking_list_col": [ + [ + "shop.shop_id", + "store.shop_id" + ], + [ + "shop.shop_id", + "boutique.shop_id" + ], + [ + "store.shop_id", + "boutique.shop_id" + ], + [ + "shop.name", + "store.name" + ], + [ + "shop.name", + "boutique.name" + ], + [ + "store.name", + "boutique.name" + ], + [ + "shop.location", + "store.location" + ], + [ + "shop.location", + "boutique.location" + ], + [ + "store.location", + "boutique.location" + ], + [ + "shop.district", + "store.district" + ], + [ + "shop.district", + "boutique.district" + ], + [ + "store.district", + "boutique.district" + ], + [ + "shop.number_products", + "store.number_products" + ], + [ + "shop.number_products", + "boutique.number_products" + ], + [ + "store.number_products", + "boutique.number_products" + ], + [ + "shop.manager_name", + "store.manager_name" + ], + [ + "shop.manager_name", + "boutique.manager_name" + ], + [ + "store.manager_name", + "boutique.manager_name" + ] + ] + }, + { + "question": "which shops' #number products# is above the average? give me the #shop names# .", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ], + "store": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "boutique": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ] + }, + "linking_list": [ + [ + "number products", + "shop.number_products" + ], + [ + "number products", + "store.number_products" + ], + [ + "number products", + "boutique.number_products" + ], + [ + "shop names", + "shop.name" + ], + [ + "shop names", + "store.name" + ], + [ + "shop names", + "boutique.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "shop.number_products" + ], + [ + 0, + "store.number_products" + ], + [ + 0, + "boutique.number_products" + ], + [ + 1, + "shop.name" + ], + [ + 1, + "store.name" + ], + [ + 1, + "boutique.name" + ] + ], + "linking_list_col": [ + [ + "shop.shop_id", + "store.shop_id" + ], + [ + "shop.shop_id", + "boutique.shop_id" + ], + [ + "store.shop_id", + "boutique.shop_id" + ], + [ + "shop.name", + "store.name" + ], + [ + "shop.name", + "boutique.name" + ], + [ + "store.name", + "boutique.name" + ], + [ + "shop.location", + "store.location" + ], + [ + "shop.location", + "boutique.location" + ], + [ + "store.location", + "boutique.location" + ], + [ + "shop.district", + "store.district" + ], + [ + "shop.district", + "boutique.district" + ], + [ + "store.district", + "boutique.district" + ], + [ + "shop.number_products", + "store.number_products" + ], + [ + "shop.number_products", + "boutique.number_products" + ], + [ + "store.number_products", + "boutique.number_products" + ], + [ + "shop.manager_name", + "store.manager_name" + ], + [ + "shop.manager_name", + "boutique.manager_name" + ], + [ + "store.manager_name", + "boutique.manager_name" + ] + ] + }, + { + "question": "find the name of the employee who got the #highest one time bonus# .", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ], + "appraisal": [ + "employee_id", + "year_awarded", + "bonus" + ], + "assessment": [ + "employee_id", + "year_awarded", + "bonus" + ] + }, + "linking_list": [ + [ + "highest one time bonus", + "evaluation.bonus" + ], + [ + "highest one time bonus", + "appraisal.bonus" + ], + [ + "highest one time bonus", + "assessment.bonus" + ] + ], + "linking_list_idx": [ + [ + 0, + "evaluation.bonus" + ], + [ + 0, + "appraisal.bonus" + ], + [ + 0, + "assessment.bonus" + ] + ], + "linking_list_col": [ + [ + "evaluation.employee_id", + "appraisal.employee_id" + ], + [ + "evaluation.employee_id", + "assessment.employee_id" + ], + [ + "appraisal.employee_id", + "assessment.employee_id" + ], + [ + "evaluation.year_awarded", + "appraisal.year_awarded" + ], + [ + "evaluation.year_awarded", + "assessment.year_awarded" + ], + [ + "appraisal.year_awarded", + "assessment.year_awarded" + ], + [ + "evaluation.bonus", + "appraisal.bonus" + ], + [ + "evaluation.bonus", + "assessment.bonus" + ], + [ + "appraisal.bonus", + "assessment.bonus" + ] + ] + }, + { + "question": "find the #number of employees hired# in each shop; show the #shop name# as well.", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ], + "recruitment": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "onboarding": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ] + }, + "linking_list": [ + [ + "number of employees hired", + "hiring.employee_id" + ], + [ + "number of employees hired", + "recruitment.employee_id" + ], + [ + "number of employees hired", + "onboarding.employee_id" + ], + [ + "shop name", + "shop.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "hiring.employee_id" + ], + [ + 0, + "recruitment.employee_id" + ], + [ + 0, + "onboarding.employee_id" + ], + [ + 1, + "shop.name" + ] + ], + "linking_list_col": [ + [ + "hiring.shop_id", + "recruitment.shop_id" + ], + [ + "hiring.shop_id", + "onboarding.shop_id" + ], + [ + "recruitment.shop_id", + "onboarding.shop_id" + ], + [ + "hiring.employee_id", + "recruitment.employee_id" + ], + [ + "hiring.employee_id", + "onboarding.employee_id" + ], + [ + "recruitment.employee_id", + "onboarding.employee_id" + ], + [ + "hiring.start_from", + "recruitment.start_from" + ], + [ + "hiring.start_from", + "onboarding.start_from" + ], + [ + "recruitment.start_from", + "onboarding.start_from" + ], + [ + "hiring.is_full_time", + "recruitment.is_full_time" + ], + [ + "hiring.is_full_time", + "onboarding.is_full_time" + ], + [ + "recruitment.is_full_time", + "onboarding.is_full_time" + ] + ] + }, + { + "question": "for each shop, return the #number of employees# working there and the name of the shop.", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ], + "recruitment": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "onboarding": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ] + }, + "linking_list": [ + [ + "number of employees", + "hiring.employee_id" + ], + [ + "number of employees", + "recruitment.employee_id" + ], + [ + "number of employees", + "onboarding.employee_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "hiring.employee_id" + ], + [ + 0, + "recruitment.employee_id" + ], + [ + 0, + "onboarding.employee_id" + ] + ], + "linking_list_col": [ + [ + "hiring.shop_id", + "recruitment.shop_id" + ], + [ + "hiring.shop_id", + "onboarding.shop_id" + ], + [ + "recruitment.shop_id", + "onboarding.shop_id" + ], + [ + "hiring.employee_id", + "recruitment.employee_id" + ], + [ + "hiring.employee_id", + "onboarding.employee_id" + ], + [ + "recruitment.employee_id", + "onboarding.employee_id" + ], + [ + "hiring.start_from", + "recruitment.start_from" + ], + [ + "hiring.start_from", + "onboarding.start_from" + ], + [ + "recruitment.start_from", + "onboarding.start_from" + ], + [ + "hiring.is_full_time", + "recruitment.is_full_time" + ], + [ + "hiring.is_full_time", + "onboarding.is_full_time" + ], + [ + "recruitment.is_full_time", + "onboarding.is_full_time" + ] + ] + }, + { + "question": "which #district# has both #stores with less than 3000 products# and stores with more than 10000 products?", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ], + "store": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "boutique": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ] + }, + "linking_list": [ + [ + "district", + "shop.district" + ], + [ + "district", + "store.district" + ], + [ + "district", + "boutique.district" + ], + [ + "stores with less than 3000 products", + "shop.number_products" + ], + [ + "stores with less than 3000 products", + "store.number_products" + ], + [ + "stores with less than 3000 products", + "boutique.number_products" + ] + ], + "linking_list_idx": [ + [ + 0, + "shop.district" + ], + [ + 0, + "store.district" + ], + [ + 0, + "boutique.district" + ], + [ + 1, + "shop.number_products" + ], + [ + 1, + "store.number_products" + ], + [ + 1, + "boutique.number_products" + ] + ], + "linking_list_col": [ + [ + "shop.shop_id", + "store.shop_id" + ], + [ + "shop.shop_id", + "boutique.shop_id" + ], + [ + "store.shop_id", + "boutique.shop_id" + ], + [ + "shop.name", + "store.name" + ], + [ + "shop.name", + "boutique.name" + ], + [ + "store.name", + "boutique.name" + ], + [ + "shop.location", + "store.location" + ], + [ + "shop.location", + "boutique.location" + ], + [ + "store.location", + "boutique.location" + ], + [ + "shop.district", + "store.district" + ], + [ + "shop.district", + "boutique.district" + ], + [ + "store.district", + "boutique.district" + ], + [ + "shop.number_products", + "store.number_products" + ], + [ + "shop.number_products", + "boutique.number_products" + ], + [ + "store.number_products", + "boutique.number_products" + ], + [ + "shop.manager_name", + "store.manager_name" + ], + [ + "shop.manager_name", + "boutique.manager_name" + ], + [ + "store.manager_name", + "boutique.manager_name" + ] + ] + }, + { + "question": "find the districts in which there are both shops selling #less than 3000 products# and shops selling #more than 10000 products# .", + "db_schema": { + "employee": [ + "employee_id", + "name", + "age", + "city" + ], + "shop": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "hiring": [ + "shop_id", + "employee_id", + "start_from", + "is_full_time" + ], + "evaluation": [ + "employee_id", + "year_awarded", + "bonus" + ], + "store": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ], + "boutique": [ + "shop_id", + "name", + "location", + "district", + "number_products", + "manager_name" + ] + }, + "linking_list": [ + [ + "less than 3000 products", + "shop.number_products" + ], + [ + "less than 3000 products", + "store.number_products" + ], + [ + "less than 3000 products", + "boutique.number_products" + ], + [ + "more than 10000 products", + "shop.number_products" + ], + [ + "more than 10000 products", + "store.number_products" + ], + [ + "more than 10000 products", + "boutique.number_products" + ] + ], + "linking_list_idx": [ + [ + 0, + "shop.number_products" + ], + [ + 0, + "store.number_products" + ], + [ + 0, + "boutique.number_products" + ], + [ + 1, + "shop.number_products" + ], + [ + 1, + "store.number_products" + ], + [ + 1, + "boutique.number_products" + ] + ], + "linking_list_col": [ + [ + "shop.shop_id", + "store.shop_id" + ], + [ + "shop.shop_id", + "boutique.shop_id" + ], + [ + "store.shop_id", + "boutique.shop_id" + ], + [ + "shop.name", + "store.name" + ], + [ + "shop.name", + "boutique.name" + ], + [ + "store.name", + "boutique.name" + ], + [ + "shop.location", + "store.location" + ], + [ + "shop.location", + "boutique.location" + ], + [ + "store.location", + "boutique.location" + ], + [ + "shop.district", + "store.district" + ], + [ + "shop.district", + "boutique.district" + ], + [ + "store.district", + "boutique.district" + ], + [ + "shop.number_products", + "store.number_products" + ], + [ + "shop.number_products", + "boutique.number_products" + ], + [ + "store.number_products", + "boutique.number_products" + ], + [ + "shop.manager_name", + "store.manager_name" + ], + [ + "shop.manager_name", + "boutique.manager_name" + ], + [ + "store.manager_name", + "boutique.manager_name" + ] + ] + }, + { + "question": "what is the #document name# and #template id# for document with description with the letter 'w' in it?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Files": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "Records": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ] + }, + "linking_list": [ + [ + "document name", + "documents.document_name" + ], + [ + "document name", + "Files.document_name" + ], + [ + "document name", + "Records.document_name" + ], + [ + "template id", + "documents.template_id" + ], + [ + "template id", + "Files.template_id" + ], + [ + "template id", + "Records.template_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "documents.document_name" + ], + [ + 0, + "Files.document_name" + ], + [ + 0, + "Records.document_name" + ], + [ + 1, + "documents.template_id" + ], + [ + 1, + "Files.template_id" + ], + [ + 1, + "Records.template_id" + ] + ], + "linking_list_col": [ + [ + "documents.document_id", + "files.document_id" + ], + [ + "documents.document_id", + "records.document_id" + ], + [ + "files.document_id", + "records.document_id" + ], + [ + "documents.template_id", + "files.template_id" + ], + [ + "documents.template_id", + "records.template_id" + ], + [ + "files.template_id", + "records.template_id" + ], + [ + "documents.document_name", + "files.document_name" + ], + [ + "documents.document_name", + "records.document_name" + ], + [ + "files.document_name", + "records.document_name" + ], + [ + "documents.document_description", + "files.document_description" + ], + [ + "documents.document_description", + "records.document_description" + ], + [ + "files.document_description", + "records.document_description" + ], + [ + "documents.other_details", + "files.other_details" + ], + [ + "documents.other_details", + "records.other_details" + ], + [ + "files.other_details", + "records.other_details" + ] + ] + }, + { + "question": "what is the #document id# , #template id# and #description# for document named \"robbin cv\"?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Files": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "Records": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ] + }, + "linking_list": [ + [ + "document id", + "documents.document_id" + ], + [ + "document id", + "Files.document_id" + ], + [ + "document id", + "Records.document_id" + ], + [ + "template id", + "documents.template_id" + ], + [ + "template id", + "Files.template_id" + ], + [ + "template id", + "Records.template_id" + ], + [ + "description", + "documents.document_description" + ], + [ + "description", + "Files.document_description" + ], + [ + "description", + "Records.document_description" + ] + ], + "linking_list_idx": [ + [ + 0, + "documents.document_id" + ], + [ + 0, + "Files.document_id" + ], + [ + 0, + "Records.document_id" + ], + [ + 1, + "documents.template_id" + ], + [ + 1, + "Files.template_id" + ], + [ + 1, + "Records.template_id" + ], + [ + 2, + "documents.document_description" + ], + [ + 2, + "Files.document_description" + ], + [ + 2, + "Records.document_description" + ] + ], + "linking_list_col": [ + [ + "documents.document_id", + "files.document_id" + ], + [ + "documents.document_id", + "records.document_id" + ], + [ + "files.document_id", + "records.document_id" + ], + [ + "documents.template_id", + "files.template_id" + ], + [ + "documents.template_id", + "records.template_id" + ], + [ + "files.template_id", + "records.template_id" + ], + [ + "documents.document_name", + "files.document_name" + ], + [ + "documents.document_name", + "records.document_name" + ], + [ + "files.document_name", + "records.document_name" + ], + [ + "documents.document_description", + "files.document_description" + ], + [ + "documents.document_description", + "records.document_description" + ], + [ + "files.document_description", + "records.document_description" + ], + [ + "documents.other_details", + "files.other_details" + ], + [ + "documents.other_details", + "records.other_details" + ], + [ + "files.other_details", + "records.other_details" + ] + ] + }, + { + "question": "return the #document id# , #template id# , and #description# for the document with the name robbin cv.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Files": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "Records": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ] + }, + "linking_list": [ + [ + "document id", + "documents.document_id" + ], + [ + "document id", + "Files.document_id" + ], + [ + "document id", + "Records.document_id" + ], + [ + "template id", + "documents.template_id" + ], + [ + "template id", + "Files.template_id" + ], + [ + "template id", + "Records.template_id" + ], + [ + "description", + "documents.document_description" + ], + [ + "description", + "Files.document_description" + ], + [ + "description", + "Records.document_description" + ] + ], + "linking_list_idx": [ + [ + 0, + "documents.document_id" + ], + [ + 0, + "Files.document_id" + ], + [ + 0, + "Records.document_id" + ], + [ + 1, + "documents.template_id" + ], + [ + 1, + "Files.template_id" + ], + [ + 1, + "Records.template_id" + ], + [ + 2, + "documents.document_description" + ], + [ + 2, + "Files.document_description" + ], + [ + 2, + "Records.document_description" + ] + ], + "linking_list_col": [ + [ + "documents.document_id", + "files.document_id" + ], + [ + "documents.document_id", + "records.document_id" + ], + [ + "files.document_id", + "records.document_id" + ], + [ + "documents.template_id", + "files.template_id" + ], + [ + "documents.template_id", + "records.template_id" + ], + [ + "files.template_id", + "records.template_id" + ], + [ + "documents.document_name", + "files.document_name" + ], + [ + "documents.document_name", + "records.document_name" + ], + [ + "files.document_name", + "records.document_name" + ], + [ + "documents.document_description", + "files.document_description" + ], + [ + "documents.document_description", + "records.document_description" + ], + [ + "files.document_description", + "records.document_description" + ], + [ + "documents.other_details", + "files.other_details" + ], + [ + "documents.other_details", + "records.other_details" + ], + [ + "files.other_details", + "records.other_details" + ] + ] + }, + { + "question": "show all template ids and #number of documents# using each template.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Files": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "Records": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ] + }, + "linking_list": [ + [ + "number of documents", + "documents.document_id" + ], + [ + "number of documents", + "Files.document_id" + ], + [ + "number of documents", + "Records.document_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "documents.document_id" + ], + [ + 0, + "Files.document_id" + ], + [ + 0, + "Records.document_id" + ] + ], + "linking_list_col": [ + [ + "documents.document_id", + "files.document_id" + ], + [ + "documents.document_id", + "records.document_id" + ], + [ + "files.document_id", + "records.document_id" + ], + [ + "documents.template_id", + "files.template_id" + ], + [ + "documents.template_id", + "records.template_id" + ], + [ + "files.template_id", + "records.template_id" + ], + [ + "documents.document_name", + "files.document_name" + ], + [ + "documents.document_name", + "records.document_name" + ], + [ + "files.document_name", + "records.document_name" + ], + [ + "documents.document_description", + "files.document_description" + ], + [ + "documents.document_description", + "records.document_description" + ], + [ + "files.document_description", + "records.document_description" + ], + [ + "documents.other_details", + "files.other_details" + ], + [ + "documents.other_details", + "records.other_details" + ], + [ + "files.other_details", + "records.other_details" + ] + ] + }, + { + "question": "what are the ids of templates with #template type code# pp or ppt?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Forms": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "Drafts": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ] + }, + "linking_list": [ + [ + "template type code", + "templates.template_type_code" + ], + [ + "template type code", + "Forms.template_type_code" + ], + [ + "template type code", + "Drafts.template_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.template_type_code" + ], + [ + 0, + "Forms.template_type_code" + ], + [ + 0, + "Drafts.template_type_code" + ] + ], + "linking_list_col": [ + [ + "templates.template_id", + "forms.template_id" + ], + [ + "templates.template_id", + "drafts.template_id" + ], + [ + "forms.template_id", + "drafts.template_id" + ], + [ + "templates.version_number", + "forms.version_number" + ], + [ + "templates.version_number", + "drafts.version_number" + ], + [ + "forms.version_number", + "drafts.version_number" + ], + [ + "templates.template_type_code", + "forms.template_type_code" + ], + [ + "templates.template_type_code", + "drafts.template_type_code" + ], + [ + "forms.template_type_code", + "drafts.template_type_code" + ], + [ + "templates.date_effective_from", + "forms.date_effective_from" + ], + [ + "templates.date_effective_from", + "drafts.date_effective_from" + ], + [ + "forms.date_effective_from", + "drafts.date_effective_from" + ], + [ + "templates.date_effective_to", + "forms.date_effective_to" + ], + [ + "templates.date_effective_to", + "drafts.date_effective_to" + ], + [ + "forms.date_effective_to", + "drafts.date_effective_to" + ], + [ + "templates.template_details", + "forms.template_details" + ], + [ + "templates.template_details", + "drafts.template_details" + ], + [ + "forms.template_details", + "drafts.template_details" + ] + ] + }, + { + "question": "how many templates have #template type code# cv?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Forms": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "Drafts": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ] + }, + "linking_list": [ + [ + "template type code", + "templates.template_type_code" + ], + [ + "template type code", + "Forms.template_type_code" + ], + [ + "template type code", + "Drafts.template_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.template_type_code" + ], + [ + 0, + "Forms.template_type_code" + ], + [ + 0, + "Drafts.template_type_code" + ] + ], + "linking_list_col": [ + [ + "templates.template_id", + "forms.template_id" + ], + [ + "templates.template_id", + "drafts.template_id" + ], + [ + "forms.template_id", + "drafts.template_id" + ], + [ + "templates.version_number", + "forms.version_number" + ], + [ + "templates.version_number", + "drafts.version_number" + ], + [ + "forms.version_number", + "drafts.version_number" + ], + [ + "templates.template_type_code", + "forms.template_type_code" + ], + [ + "templates.template_type_code", + "drafts.template_type_code" + ], + [ + "forms.template_type_code", + "drafts.template_type_code" + ], + [ + "templates.date_effective_from", + "forms.date_effective_from" + ], + [ + "templates.date_effective_from", + "drafts.date_effective_from" + ], + [ + "forms.date_effective_from", + "drafts.date_effective_from" + ], + [ + "templates.date_effective_to", + "forms.date_effective_to" + ], + [ + "templates.date_effective_to", + "drafts.date_effective_to" + ], + [ + "forms.date_effective_to", + "drafts.date_effective_to" + ], + [ + "templates.template_details", + "forms.template_details" + ], + [ + "templates.template_details", + "drafts.template_details" + ], + [ + "forms.template_details", + "drafts.template_details" + ] + ] + }, + { + "question": "count the number of templates of the type #cv# .", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Forms": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "Drafts": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ] + }, + "linking_list": [ + [ + "CV", + "templates.template_type_code" + ], + [ + "CV", + "Forms.template_type_code" + ], + [ + "CV", + "Drafts.template_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.template_type_code" + ], + [ + 0, + "Forms.template_type_code" + ], + [ + 0, + "Drafts.template_type_code" + ] + ], + "linking_list_col": [ + [ + "templates.template_id", + "forms.template_id" + ], + [ + "templates.template_id", + "drafts.template_id" + ], + [ + "forms.template_id", + "drafts.template_id" + ], + [ + "templates.version_number", + "forms.version_number" + ], + [ + "templates.version_number", + "drafts.version_number" + ], + [ + "forms.version_number", + "drafts.version_number" + ], + [ + "templates.template_type_code", + "forms.template_type_code" + ], + [ + "templates.template_type_code", + "drafts.template_type_code" + ], + [ + "forms.template_type_code", + "drafts.template_type_code" + ], + [ + "templates.date_effective_from", + "forms.date_effective_from" + ], + [ + "templates.date_effective_from", + "drafts.date_effective_from" + ], + [ + "forms.date_effective_from", + "drafts.date_effective_from" + ], + [ + "templates.date_effective_to", + "forms.date_effective_to" + ], + [ + "templates.date_effective_to", + "drafts.date_effective_to" + ], + [ + "forms.date_effective_to", + "drafts.date_effective_to" + ], + [ + "templates.template_details", + "forms.template_details" + ], + [ + "templates.template_details", + "drafts.template_details" + ], + [ + "forms.template_details", + "drafts.template_details" + ] + ] + }, + { + "question": "what is the #version number# and #template type code# for the template with version number later than 5?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Forms": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "Drafts": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ] + }, + "linking_list": [ + [ + "version number", + "templates.version_number" + ], + [ + "version number", + "Forms.version_number" + ], + [ + "version number", + "Drafts.version_number" + ], + [ + "template type code", + "templates.template_type_code" + ], + [ + "template type code", + "Forms.template_type_code" + ], + [ + "template type code", + "Drafts.template_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.version_number" + ], + [ + 0, + "Forms.version_number" + ], + [ + 0, + "Drafts.version_number" + ], + [ + 1, + "templates.template_type_code" + ], + [ + 1, + "Forms.template_type_code" + ], + [ + 1, + "Drafts.template_type_code" + ] + ], + "linking_list_col": [ + [ + "templates.template_id", + "forms.template_id" + ], + [ + "templates.template_id", + "drafts.template_id" + ], + [ + "forms.template_id", + "drafts.template_id" + ], + [ + "templates.version_number", + "forms.version_number" + ], + [ + "templates.version_number", + "drafts.version_number" + ], + [ + "forms.version_number", + "drafts.version_number" + ], + [ + "templates.template_type_code", + "forms.template_type_code" + ], + [ + "templates.template_type_code", + "drafts.template_type_code" + ], + [ + "forms.template_type_code", + "drafts.template_type_code" + ], + [ + "templates.date_effective_from", + "forms.date_effective_from" + ], + [ + "templates.date_effective_from", + "drafts.date_effective_from" + ], + [ + "forms.date_effective_from", + "drafts.date_effective_from" + ], + [ + "templates.date_effective_to", + "forms.date_effective_to" + ], + [ + "templates.date_effective_to", + "drafts.date_effective_to" + ], + [ + "forms.date_effective_to", + "drafts.date_effective_to" + ], + [ + "templates.template_details", + "forms.template_details" + ], + [ + "templates.template_details", + "drafts.template_details" + ], + [ + "forms.template_details", + "drafts.template_details" + ] + ] + }, + { + "question": "return the version numbers and template type codes of templates with a #version number# greater than 5.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Forms": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "Drafts": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ] + }, + "linking_list": [ + [ + "version number", + "templates.version_number" + ], + [ + "version number", + "Forms.version_number" + ], + [ + "version number", + "Drafts.version_number" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.version_number" + ], + [ + 0, + "Forms.version_number" + ], + [ + 0, + "Drafts.version_number" + ] + ], + "linking_list_col": [ + [ + "templates.template_id", + "forms.template_id" + ], + [ + "templates.template_id", + "drafts.template_id" + ], + [ + "forms.template_id", + "drafts.template_id" + ], + [ + "templates.version_number", + "forms.version_number" + ], + [ + "templates.version_number", + "drafts.version_number" + ], + [ + "forms.version_number", + "drafts.version_number" + ], + [ + "templates.template_type_code", + "forms.template_type_code" + ], + [ + "templates.template_type_code", + "drafts.template_type_code" + ], + [ + "forms.template_type_code", + "drafts.template_type_code" + ], + [ + "templates.date_effective_from", + "forms.date_effective_from" + ], + [ + "templates.date_effective_from", + "drafts.date_effective_from" + ], + [ + "forms.date_effective_from", + "drafts.date_effective_from" + ], + [ + "templates.date_effective_to", + "forms.date_effective_to" + ], + [ + "templates.date_effective_to", + "drafts.date_effective_to" + ], + [ + "forms.date_effective_to", + "drafts.date_effective_to" + ], + [ + "templates.template_details", + "forms.template_details" + ], + [ + "templates.template_details", + "drafts.template_details" + ], + [ + "forms.template_details", + "drafts.template_details" + ] + ] + }, + { + "question": "show all template type codes and #number of templates# for each.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Forms": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "Drafts": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ] + }, + "linking_list": [ + [ + "number of templates", + "templates.template_id" + ], + [ + "number of templates", + "Forms.template_id" + ], + [ + "number of templates", + "Drafts.template_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.template_id" + ], + [ + 0, + "Forms.template_id" + ], + [ + 0, + "Drafts.template_id" + ] + ], + "linking_list_col": [ + [ + "templates.template_id", + "forms.template_id" + ], + [ + "templates.template_id", + "drafts.template_id" + ], + [ + "forms.template_id", + "drafts.template_id" + ], + [ + "templates.version_number", + "forms.version_number" + ], + [ + "templates.version_number", + "drafts.version_number" + ], + [ + "forms.version_number", + "drafts.version_number" + ], + [ + "templates.template_type_code", + "forms.template_type_code" + ], + [ + "templates.template_type_code", + "drafts.template_type_code" + ], + [ + "forms.template_type_code", + "drafts.template_type_code" + ], + [ + "templates.date_effective_from", + "forms.date_effective_from" + ], + [ + "templates.date_effective_from", + "drafts.date_effective_from" + ], + [ + "forms.date_effective_from", + "drafts.date_effective_from" + ], + [ + "templates.date_effective_to", + "forms.date_effective_to" + ], + [ + "templates.date_effective_to", + "drafts.date_effective_to" + ], + [ + "forms.date_effective_to", + "drafts.date_effective_to" + ], + [ + "templates.template_details", + "forms.template_details" + ], + [ + "templates.template_details", + "drafts.template_details" + ], + [ + "forms.template_details", + "drafts.template_details" + ] + ] + }, + { + "question": "which #template type code# has most number of templates?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Forms": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "Drafts": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ] + }, + "linking_list": [ + [ + "template type code", + "templates.template_type_code" + ], + [ + "template type code", + "Forms.template_type_code" + ], + [ + "template type code", + "Drafts.template_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.template_type_code" + ], + [ + 0, + "Forms.template_type_code" + ], + [ + 0, + "Drafts.template_type_code" + ] + ], + "linking_list_col": [ + [ + "templates.template_id", + "forms.template_id" + ], + [ + "templates.template_id", + "drafts.template_id" + ], + [ + "forms.template_id", + "drafts.template_id" + ], + [ + "templates.version_number", + "forms.version_number" + ], + [ + "templates.version_number", + "drafts.version_number" + ], + [ + "forms.version_number", + "drafts.version_number" + ], + [ + "templates.template_type_code", + "forms.template_type_code" + ], + [ + "templates.template_type_code", + "drafts.template_type_code" + ], + [ + "forms.template_type_code", + "drafts.template_type_code" + ], + [ + "templates.date_effective_from", + "forms.date_effective_from" + ], + [ + "templates.date_effective_from", + "drafts.date_effective_from" + ], + [ + "forms.date_effective_from", + "drafts.date_effective_from" + ], + [ + "templates.date_effective_to", + "forms.date_effective_to" + ], + [ + "templates.date_effective_to", + "drafts.date_effective_to" + ], + [ + "forms.date_effective_to", + "drafts.date_effective_to" + ], + [ + "templates.template_details", + "forms.template_details" + ], + [ + "templates.template_details", + "drafts.template_details" + ], + [ + "forms.template_details", + "drafts.template_details" + ] + ] + }, + { + "question": "show all template type codes and the #number of documents# using each type.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Files": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "Records": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ] + }, + "linking_list": [ + [ + "number of documents", + "documents.document_id" + ], + [ + "number of documents", + "Files.document_id" + ], + [ + "number of documents", + "Records.document_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "documents.document_id" + ], + [ + 0, + "Files.document_id" + ], + [ + 0, + "Records.document_id" + ] + ], + "linking_list_col": [ + [ + "documents.document_id", + "files.document_id" + ], + [ + "documents.document_id", + "records.document_id" + ], + [ + "files.document_id", + "records.document_id" + ], + [ + "documents.template_id", + "files.template_id" + ], + [ + "documents.template_id", + "records.template_id" + ], + [ + "files.template_id", + "records.template_id" + ], + [ + "documents.document_name", + "files.document_name" + ], + [ + "documents.document_name", + "records.document_name" + ], + [ + "files.document_name", + "records.document_name" + ], + [ + "documents.document_description", + "files.document_description" + ], + [ + "documents.document_description", + "records.document_description" + ], + [ + "files.document_description", + "records.document_description" + ], + [ + "documents.other_details", + "files.other_details" + ], + [ + "documents.other_details", + "records.other_details" + ], + [ + "files.other_details", + "records.other_details" + ] + ] + }, + { + "question": "what is the template type descriptions for #template type code# \"ad\".", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Template_Types_Reference": [ + "template_type_code", + "template_type_description" + ], + "Type_Templates": [ + "template_type_code", + "template_type_description" + ] + }, + "linking_list": [ + [ + "template type code", + "ref_template_types.template_type_code" + ], + [ + "template type code", + "Template_Types_Reference.template_type_code" + ], + [ + "template type code", + "Type_Templates.template_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "ref_template_types.template_type_code" + ], + [ + 0, + "Template_Types_Reference.template_type_code" + ], + [ + 0, + "Type_Templates.template_type_code" + ] + ], + "linking_list_col": [ + [ + "ref_template_types.template_type_code", + "template_types_reference.template_type_code" + ], + [ + "ref_template_types.template_type_code", + "type_templates.template_type_code" + ], + [ + "template_types_reference.template_type_code", + "type_templates.template_type_code" + ], + [ + "ref_template_types.template_type_description", + "template_types_reference.template_type_description" + ], + [ + "ref_template_types.template_type_description", + "type_templates.template_type_description" + ], + [ + "template_types_reference.template_type_description", + "type_templates.template_type_description" + ] + ] + }, + { + "question": "return the #template type description# of the template type with the code ad.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Template_Types_Reference": [ + "template_type_code", + "template_type_description" + ], + "Type_Templates": [ + "template_type_code", + "template_type_description" + ] + }, + "linking_list": [ + [ + "template type description", + "ref_template_types.template_type_description" + ], + [ + "template type description", + "Template_Types_Reference.template_type_description" + ], + [ + "template type description", + "Type_Templates.template_type_description" + ] + ], + "linking_list_idx": [ + [ + 0, + "ref_template_types.template_type_description" + ], + [ + 0, + "Template_Types_Reference.template_type_description" + ], + [ + 0, + "Type_Templates.template_type_description" + ] + ], + "linking_list_col": [ + [ + "ref_template_types.template_type_code", + "template_types_reference.template_type_code" + ], + [ + "ref_template_types.template_type_code", + "type_templates.template_type_code" + ], + [ + "template_types_reference.template_type_code", + "type_templates.template_type_code" + ], + [ + "ref_template_types.template_type_description", + "template_types_reference.template_type_description" + ], + [ + "ref_template_types.template_type_description", + "type_templates.template_type_description" + ], + [ + "template_types_reference.template_type_description", + "type_templates.template_type_description" + ] + ] + }, + { + "question": "what is the #template type code for template type description# \"book\".", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Template_Types_Reference": [ + "template_type_code", + "template_type_description" + ], + "Type_Templates": [ + "template_type_code", + "template_type_description" + ] + }, + "linking_list": [ + [ + "template type code for template type description", + "ref_template_types.template_type_code" + ], + [ + "template type code for template type description", + "Template_Types_Reference.template_type_code" + ], + [ + "template type code for template type description", + "Type_Templates.template_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "ref_template_types.template_type_code" + ], + [ + 0, + "Template_Types_Reference.template_type_code" + ], + [ + 0, + "Type_Templates.template_type_code" + ] + ], + "linking_list_col": [ + [ + "ref_template_types.template_type_code", + "template_types_reference.template_type_code" + ], + [ + "ref_template_types.template_type_code", + "type_templates.template_type_code" + ], + [ + "template_types_reference.template_type_code", + "type_templates.template_type_code" + ], + [ + "ref_template_types.template_type_description", + "template_types_reference.template_type_description" + ], + [ + "ref_template_types.template_type_description", + "type_templates.template_type_description" + ], + [ + "template_types_reference.template_type_description", + "type_templates.template_type_description" + ] + ] + }, + { + "question": "return the type code of the template type with the #description# \"book\".", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Template_Types_Reference": [ + "template_type_code", + "template_type_description" + ], + "Type_Templates": [ + "template_type_code", + "template_type_description" + ] + }, + "linking_list": [ + [ + "description", + "ref_template_types.template_type_description" + ], + [ + "description", + "Template_Types_Reference.template_type_description" + ], + [ + "description", + "Type_Templates.template_type_description" + ] + ], + "linking_list_idx": [ + [ + 0, + "ref_template_types.template_type_description" + ], + [ + 0, + "Template_Types_Reference.template_type_description" + ], + [ + 0, + "Type_Templates.template_type_description" + ] + ], + "linking_list_col": [ + [ + "ref_template_types.template_type_code", + "template_types_reference.template_type_code" + ], + [ + "ref_template_types.template_type_code", + "type_templates.template_type_code" + ], + [ + "template_types_reference.template_type_code", + "type_templates.template_type_code" + ], + [ + "ref_template_types.template_type_description", + "template_types_reference.template_type_description" + ], + [ + "ref_template_types.template_type_description", + "type_templates.template_type_description" + ], + [ + "template_types_reference.template_type_description", + "type_templates.template_type_description" + ] + ] + }, + { + "question": "what are the #template ids with template type description# \"presentation\".", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Forms": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "Drafts": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ] + }, + "linking_list": [ + [ + "template ids with template type description", + "templates.template_id" + ], + [ + "template ids with template type description", + "Forms.template_id" + ], + [ + "template ids with template type description", + "Drafts.template_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "templates.template_id" + ], + [ + 0, + "Forms.template_id" + ], + [ + 0, + "Drafts.template_id" + ] + ], + "linking_list_col": [ + [ + "templates.template_id", + "forms.template_id" + ], + [ + "templates.template_id", + "drafts.template_id" + ], + [ + "forms.template_id", + "drafts.template_id" + ], + [ + "templates.version_number", + "forms.version_number" + ], + [ + "templates.version_number", + "drafts.version_number" + ], + [ + "forms.version_number", + "drafts.version_number" + ], + [ + "templates.template_type_code", + "forms.template_type_code" + ], + [ + "templates.template_type_code", + "drafts.template_type_code" + ], + [ + "forms.template_type_code", + "drafts.template_type_code" + ], + [ + "templates.date_effective_from", + "forms.date_effective_from" + ], + [ + "templates.date_effective_from", + "drafts.date_effective_from" + ], + [ + "forms.date_effective_from", + "drafts.date_effective_from" + ], + [ + "templates.date_effective_to", + "forms.date_effective_to" + ], + [ + "templates.date_effective_to", + "drafts.date_effective_to" + ], + [ + "forms.date_effective_to", + "drafts.date_effective_to" + ], + [ + "templates.template_details", + "forms.template_details" + ], + [ + "templates.template_details", + "drafts.template_details" + ], + [ + "forms.template_details", + "drafts.template_details" + ] + ] + }, + { + "question": "show all document ids and the #number of paragraphs# in each document. order by #document id# .", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Sections": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Passages": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "number of paragraphs", + "paragraphs.paragraph_id" + ], + [ + "number of paragraphs", + "Sections.paragraph_id" + ], + [ + "number of paragraphs", + "Passages.paragraph_id" + ], + [ + "document id", + "documents.document_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "paragraphs.paragraph_id" + ], + [ + 0, + "Sections.paragraph_id" + ], + [ + 0, + "Passages.paragraph_id" + ], + [ + 1, + "documents.document_id" + ] + ], + "linking_list_col": [ + [ + "paragraphs.paragraph_id", + "sections.paragraph_id" + ], + [ + "paragraphs.paragraph_id", + "passages.paragraph_id" + ], + [ + "sections.paragraph_id", + "passages.paragraph_id" + ], + [ + "paragraphs.document_id", + "sections.document_id" + ], + [ + "paragraphs.document_id", + "passages.document_id" + ], + [ + "sections.document_id", + "passages.document_id" + ], + [ + "paragraphs.paragraph_text", + "sections.paragraph_text" + ], + [ + "paragraphs.paragraph_text", + "passages.paragraph_text" + ], + [ + "sections.paragraph_text", + "passages.paragraph_text" + ], + [ + "paragraphs.other_details", + "sections.other_details" + ], + [ + "paragraphs.other_details", + "passages.other_details" + ], + [ + "sections.other_details", + "passages.other_details" + ] + ] + }, + { + "question": "return the different document ids along with the #number of paragraphs# corresponding to each, ordered by id.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Sections": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Passages": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "number of paragraphs", + "paragraphs.paragraph_text" + ], + [ + "number of paragraphs", + "Sections.paragraph_text" + ], + [ + "number of paragraphs", + "Passages.paragraph_text" + ] + ], + "linking_list_idx": [ + [ + 0, + "paragraphs.paragraph_text" + ], + [ + 0, + "Sections.paragraph_text" + ], + [ + 0, + "Passages.paragraph_text" + ] + ], + "linking_list_col": [ + [ + "paragraphs.paragraph_id", + "sections.paragraph_id" + ], + [ + "paragraphs.paragraph_id", + "passages.paragraph_id" + ], + [ + "sections.paragraph_id", + "passages.paragraph_id" + ], + [ + "paragraphs.document_id", + "sections.document_id" + ], + [ + "paragraphs.document_id", + "passages.document_id" + ], + [ + "sections.document_id", + "passages.document_id" + ], + [ + "paragraphs.paragraph_text", + "sections.paragraph_text" + ], + [ + "paragraphs.paragraph_text", + "passages.paragraph_text" + ], + [ + "sections.paragraph_text", + "passages.paragraph_text" + ], + [ + "paragraphs.other_details", + "sections.other_details" + ], + [ + "paragraphs.other_details", + "passages.other_details" + ], + [ + "sections.other_details", + "passages.other_details" + ] + ] + }, + { + "question": "show all document ids, names and the #number of paragraphs# in each document.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Sections": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Passages": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "number of paragraphs", + "paragraphs.paragraph_id" + ], + [ + "number of paragraphs", + "Sections.paragraph_id" + ], + [ + "number of paragraphs", + "Passages.paragraph_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "paragraphs.paragraph_id" + ], + [ + 0, + "Sections.paragraph_id" + ], + [ + 0, + "Passages.paragraph_id" + ] + ], + "linking_list_col": [ + [ + "paragraphs.paragraph_id", + "sections.paragraph_id" + ], + [ + "paragraphs.paragraph_id", + "passages.paragraph_id" + ], + [ + "sections.paragraph_id", + "passages.paragraph_id" + ], + [ + "paragraphs.document_id", + "sections.document_id" + ], + [ + "paragraphs.document_id", + "passages.document_id" + ], + [ + "sections.document_id", + "passages.document_id" + ], + [ + "paragraphs.paragraph_text", + "sections.paragraph_text" + ], + [ + "paragraphs.paragraph_text", + "passages.paragraph_text" + ], + [ + "sections.paragraph_text", + "passages.paragraph_text" + ], + [ + "paragraphs.other_details", + "sections.other_details" + ], + [ + "paragraphs.other_details", + "passages.other_details" + ], + [ + "sections.other_details", + "passages.other_details" + ] + ] + }, + { + "question": "what are the ids and names of each document, as well as the #number of paragraphs# in each?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Sections": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Passages": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "number of paragraphs", + "paragraphs.paragraph_id" + ], + [ + "number of paragraphs", + "Sections.paragraph_id" + ], + [ + "number of paragraphs", + "Passages.paragraph_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "paragraphs.paragraph_id" + ], + [ + 0, + "Sections.paragraph_id" + ], + [ + 0, + "Passages.paragraph_id" + ] + ], + "linking_list_col": [ + [ + "paragraphs.paragraph_id", + "sections.paragraph_id" + ], + [ + "paragraphs.paragraph_id", + "passages.paragraph_id" + ], + [ + "sections.paragraph_id", + "passages.paragraph_id" + ], + [ + "paragraphs.document_id", + "sections.document_id" + ], + [ + "paragraphs.document_id", + "passages.document_id" + ], + [ + "sections.document_id", + "passages.document_id" + ], + [ + "paragraphs.paragraph_text", + "sections.paragraph_text" + ], + [ + "paragraphs.paragraph_text", + "passages.paragraph_text" + ], + [ + "sections.paragraph_text", + "passages.paragraph_text" + ], + [ + "paragraphs.other_details", + "sections.other_details" + ], + [ + "paragraphs.other_details", + "passages.other_details" + ], + [ + "sections.other_details", + "passages.other_details" + ] + ] + }, + { + "question": "what is the #document id# with least number of paragraphs?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Sections": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Passages": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "document id", + "paragraphs.document_id" + ], + [ + "document id", + "Sections.document_id" + ], + [ + "document id", + "Passages.document_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "paragraphs.document_id" + ], + [ + 0, + "Sections.document_id" + ], + [ + 0, + "Passages.document_id" + ] + ], + "linking_list_col": [ + [ + "paragraphs.paragraph_id", + "sections.paragraph_id" + ], + [ + "paragraphs.paragraph_id", + "passages.paragraph_id" + ], + [ + "sections.paragraph_id", + "passages.paragraph_id" + ], + [ + "paragraphs.document_id", + "sections.document_id" + ], + [ + "paragraphs.document_id", + "passages.document_id" + ], + [ + "sections.document_id", + "passages.document_id" + ], + [ + "paragraphs.paragraph_text", + "sections.paragraph_text" + ], + [ + "paragraphs.paragraph_text", + "passages.paragraph_text" + ], + [ + "sections.paragraph_text", + "passages.paragraph_text" + ], + [ + "paragraphs.other_details", + "sections.other_details" + ], + [ + "paragraphs.other_details", + "passages.other_details" + ], + [ + "sections.other_details", + "passages.other_details" + ] + ] + }, + { + "question": "what is the #document id# with 1 to 2 paragraphs?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Sections": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Passages": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "document id", + "paragraphs.document_id" + ], + [ + "document id", + "Sections.document_id" + ], + [ + "document id", + "Passages.document_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "paragraphs.document_id" + ], + [ + 0, + "Sections.document_id" + ], + [ + 0, + "Passages.document_id" + ] + ], + "linking_list_col": [ + [ + "paragraphs.paragraph_id", + "sections.paragraph_id" + ], + [ + "paragraphs.paragraph_id", + "passages.paragraph_id" + ], + [ + "sections.paragraph_id", + "passages.paragraph_id" + ], + [ + "paragraphs.document_id", + "sections.document_id" + ], + [ + "paragraphs.document_id", + "passages.document_id" + ], + [ + "sections.document_id", + "passages.document_id" + ], + [ + "paragraphs.paragraph_text", + "sections.paragraph_text" + ], + [ + "paragraphs.paragraph_text", + "passages.paragraph_text" + ], + [ + "sections.paragraph_text", + "passages.paragraph_text" + ], + [ + "paragraphs.other_details", + "sections.other_details" + ], + [ + "paragraphs.other_details", + "passages.other_details" + ], + [ + "sections.other_details", + "passages.other_details" + ] + ] + }, + { + "question": "show the #document id with paragraph text# 'brazil' and 'ireland'.", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Sections": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Passages": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "document id with paragraph text", + "paragraphs.document_id" + ], + [ + "document id with paragraph text", + "Sections.document_id" + ], + [ + "document id with paragraph text", + "Passages.document_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "paragraphs.document_id" + ], + [ + 0, + "Sections.document_id" + ], + [ + 0, + "Passages.document_id" + ] + ], + "linking_list_col": [ + [ + "paragraphs.paragraph_id", + "sections.paragraph_id" + ], + [ + "paragraphs.paragraph_id", + "passages.paragraph_id" + ], + [ + "sections.paragraph_id", + "passages.paragraph_id" + ], + [ + "paragraphs.document_id", + "sections.document_id" + ], + [ + "paragraphs.document_id", + "passages.document_id" + ], + [ + "sections.document_id", + "passages.document_id" + ], + [ + "paragraphs.paragraph_text", + "sections.paragraph_text" + ], + [ + "paragraphs.paragraph_text", + "passages.paragraph_text" + ], + [ + "sections.paragraph_text", + "passages.paragraph_text" + ], + [ + "paragraphs.other_details", + "sections.other_details" + ], + [ + "paragraphs.other_details", + "passages.other_details" + ], + [ + "sections.other_details", + "passages.other_details" + ] + ] + }, + { + "question": "what are the ids of documents that contain the #paragraph text# 'brazil' and 'ireland'?", + "db_schema": { + "ref_template_types": [ + "template_type_code", + "template_type_description" + ], + "templates": [ + "template_id", + "version_number", + "template_type_code", + "date_effective_from", + "date_effective_to", + "template_details" + ], + "documents": [ + "document_id", + "template_id", + "document_name", + "document_description", + "other_details" + ], + "paragraphs": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Sections": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ], + "Passages": [ + "paragraph_id", + "document_id", + "paragraph_text", + "other_details" + ] + }, + "linking_list": [ + [ + "paragraph text", + "paragraphs.paragraph_text" + ], + [ + "paragraph text", + "Sections.paragraph_text" + ], + [ + "paragraph text", + "Passages.paragraph_text" + ] + ], + "linking_list_idx": [ + [ + 0, + "paragraphs.paragraph_text" + ], + [ + 0, + "Sections.paragraph_text" + ], + [ + 0, + "Passages.paragraph_text" + ] + ], + "linking_list_col": [ + [ + "paragraphs.paragraph_id", + "sections.paragraph_id" + ], + [ + "paragraphs.paragraph_id", + "passages.paragraph_id" + ], + [ + "sections.paragraph_id", + "passages.paragraph_id" + ], + [ + "paragraphs.document_id", + "sections.document_id" + ], + [ + "paragraphs.document_id", + "passages.document_id" + ], + [ + "sections.document_id", + "passages.document_id" + ], + [ + "paragraphs.paragraph_text", + "sections.paragraph_text" + ], + [ + "paragraphs.paragraph_text", + "passages.paragraph_text" + ], + [ + "sections.paragraph_text", + "passages.paragraph_text" + ], + [ + "paragraphs.other_details", + "sections.other_details" + ], + [ + "paragraphs.other_details", + "passages.other_details" + ], + [ + "sections.other_details", + "passages.other_details" + ] + ] + }, + { + "question": "list the names of teachers in ascending order of #age# .", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "instructor": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "professor": [ + "teacher_id", + "name", + "age", + "hometown" + ] + }, + "linking_list": [ + [ + "age", + "teacher.age" + ], + [ + "age", + "instructor.age" + ], + [ + "age", + "professor.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "teacher.age" + ], + [ + 0, + "instructor.age" + ], + [ + 0, + "professor.age" + ] + ], + "linking_list_col": [ + [ + "teacher.teacher_id", + "instructor.teacher_id" + ], + [ + "teacher.teacher_id", + "professor.teacher_id" + ], + [ + "instructor.teacher_id", + "professor.teacher_id" + ], + [ + "teacher.name", + "instructor.name" + ], + [ + "teacher.name", + "professor.name" + ], + [ + "instructor.name", + "professor.name" + ], + [ + "teacher.age", + "instructor.age" + ], + [ + "teacher.age", + "professor.age" + ], + [ + "instructor.age", + "professor.age" + ], + [ + "teacher.hometown", + "instructor.hometown" + ], + [ + "teacher.hometown", + "professor.hometown" + ], + [ + "instructor.hometown", + "professor.hometown" + ] + ] + }, + { + "question": "what is the #hometown of the youngest# teacher?", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "instructor": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "professor": [ + "teacher_id", + "name", + "age", + "hometown" + ] + }, + "linking_list": [ + [ + "hometown of the youngest", + "teacher.hometown" + ], + [ + "hometown of the youngest", + "instructor.hometown" + ], + [ + "hometown of the youngest", + "professor.hometown" + ] + ], + "linking_list_idx": [ + [ + 0, + "teacher.hometown" + ], + [ + 0, + "instructor.hometown" + ], + [ + 0, + "professor.hometown" + ] + ], + "linking_list_col": [ + [ + "teacher.teacher_id", + "instructor.teacher_id" + ], + [ + "teacher.teacher_id", + "professor.teacher_id" + ], + [ + "instructor.teacher_id", + "professor.teacher_id" + ], + [ + "teacher.name", + "instructor.name" + ], + [ + "teacher.name", + "professor.name" + ], + [ + "instructor.name", + "professor.name" + ], + [ + "teacher.age", + "instructor.age" + ], + [ + "teacher.age", + "professor.age" + ], + [ + "instructor.age", + "professor.age" + ], + [ + "teacher.hometown", + "instructor.hometown" + ], + [ + "teacher.hometown", + "professor.hometown" + ], + [ + "instructor.hometown", + "professor.hometown" + ] + ] + }, + { + "question": "where is the #youngest teacher# from?", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "instructor": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "professor": [ + "teacher_id", + "name", + "age", + "hometown" + ] + }, + "linking_list": [ + [ + "youngest teacher", + "teacher.age" + ], + [ + "youngest teacher", + "instructor.age" + ], + [ + "youngest teacher", + "professor.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "teacher.age" + ], + [ + 0, + "instructor.age" + ], + [ + 0, + "professor.age" + ] + ], + "linking_list_col": [ + [ + "teacher.teacher_id", + "instructor.teacher_id" + ], + [ + "teacher.teacher_id", + "professor.teacher_id" + ], + [ + "instructor.teacher_id", + "professor.teacher_id" + ], + [ + "teacher.name", + "instructor.name" + ], + [ + "teacher.name", + "professor.name" + ], + [ + "instructor.name", + "professor.name" + ], + [ + "teacher.age", + "instructor.age" + ], + [ + "teacher.age", + "professor.age" + ], + [ + "instructor.age", + "professor.age" + ], + [ + "teacher.hometown", + "instructor.hometown" + ], + [ + "teacher.hometown", + "professor.hometown" + ], + [ + "instructor.hometown", + "professor.hometown" + ] + ] + }, + { + "question": "show different #hometown# of teachers and the number of teachers from each hometown.", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "instructor": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "professor": [ + "teacher_id", + "name", + "age", + "hometown" + ] + }, + "linking_list": [ + [ + "hometown", + "teacher.hometown" + ], + [ + "hometown", + "instructor.hometown" + ], + [ + "hometown", + "professor.hometown" + ] + ], + "linking_list_idx": [ + [ + 0, + "teacher.hometown" + ], + [ + 0, + "instructor.hometown" + ], + [ + 0, + "professor.hometown" + ] + ], + "linking_list_col": [ + [ + "teacher.teacher_id", + "instructor.teacher_id" + ], + [ + "teacher.teacher_id", + "professor.teacher_id" + ], + [ + "instructor.teacher_id", + "professor.teacher_id" + ], + [ + "teacher.name", + "instructor.name" + ], + [ + "teacher.name", + "professor.name" + ], + [ + "instructor.name", + "professor.name" + ], + [ + "teacher.age", + "instructor.age" + ], + [ + "teacher.age", + "professor.age" + ], + [ + "instructor.age", + "professor.age" + ], + [ + "teacher.hometown", + "instructor.hometown" + ], + [ + "teacher.hometown", + "professor.hometown" + ], + [ + "instructor.hometown", + "professor.hometown" + ] + ] + }, + { + "question": "for each #hometown# , how many teachers are there?", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "instructor": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "professor": [ + "teacher_id", + "name", + "age", + "hometown" + ] + }, + "linking_list": [ + [ + "hometown", + "teacher.hometown" + ], + [ + "hometown", + "instructor.hometown" + ], + [ + "hometown", + "professor.hometown" + ] + ], + "linking_list_idx": [ + [ + 0, + "teacher.hometown" + ], + [ + 0, + "instructor.hometown" + ], + [ + 0, + "professor.hometown" + ] + ], + "linking_list_col": [ + [ + "teacher.teacher_id", + "instructor.teacher_id" + ], + [ + "teacher.teacher_id", + "professor.teacher_id" + ], + [ + "instructor.teacher_id", + "professor.teacher_id" + ], + [ + "teacher.name", + "instructor.name" + ], + [ + "teacher.name", + "professor.name" + ], + [ + "instructor.name", + "professor.name" + ], + [ + "teacher.age", + "instructor.age" + ], + [ + "teacher.age", + "professor.age" + ], + [ + "instructor.age", + "professor.age" + ], + [ + "teacher.hometown", + "instructor.hometown" + ], + [ + "teacher.hometown", + "professor.hometown" + ], + [ + "instructor.hometown", + "professor.hometown" + ] + ] + }, + { + "question": "list the most common #hometown# of teachers.", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "instructor": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "professor": [ + "teacher_id", + "name", + "age", + "hometown" + ] + }, + "linking_list": [ + [ + "hometown", + "teacher.hometown" + ], + [ + "hometown", + "instructor.hometown" + ], + [ + "hometown", + "professor.hometown" + ] + ], + "linking_list_idx": [ + [ + 0, + "teacher.hometown" + ], + [ + 0, + "instructor.hometown" + ], + [ + 0, + "professor.hometown" + ] + ], + "linking_list_col": [ + [ + "teacher.teacher_id", + "instructor.teacher_id" + ], + [ + "teacher.teacher_id", + "professor.teacher_id" + ], + [ + "instructor.teacher_id", + "professor.teacher_id" + ], + [ + "teacher.name", + "instructor.name" + ], + [ + "teacher.name", + "professor.name" + ], + [ + "instructor.name", + "professor.name" + ], + [ + "teacher.age", + "instructor.age" + ], + [ + "teacher.age", + "professor.age" + ], + [ + "instructor.age", + "professor.age" + ], + [ + "teacher.hometown", + "instructor.hometown" + ], + [ + "teacher.hometown", + "professor.hometown" + ], + [ + "instructor.hometown", + "professor.hometown" + ] + ] + }, + { + "question": "show the #hometowns# shared by at least two teachers.", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "instructor": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "professor": [ + "teacher_id", + "name", + "age", + "hometown" + ] + }, + "linking_list": [ + [ + "hometowns", + "teacher.hometown" + ], + [ + "hometowns", + "instructor.hometown" + ], + [ + "hometowns", + "professor.hometown" + ] + ], + "linking_list_idx": [ + [ + 0, + "teacher.hometown" + ], + [ + 0, + "instructor.hometown" + ], + [ + 0, + "professor.hometown" + ] + ], + "linking_list_col": [ + [ + "teacher.teacher_id", + "instructor.teacher_id" + ], + [ + "teacher.teacher_id", + "professor.teacher_id" + ], + [ + "instructor.teacher_id", + "professor.teacher_id" + ], + [ + "teacher.name", + "instructor.name" + ], + [ + "teacher.name", + "professor.name" + ], + [ + "instructor.name", + "professor.name" + ], + [ + "teacher.age", + "instructor.age" + ], + [ + "teacher.age", + "professor.age" + ], + [ + "instructor.age", + "professor.age" + ], + [ + "teacher.hometown", + "instructor.hometown" + ], + [ + "teacher.hometown", + "professor.hometown" + ], + [ + "instructor.hometown", + "professor.hometown" + ] + ] + }, + { + "question": "what are the #towns# from which at least two teachers come from?", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "instructor": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "professor": [ + "teacher_id", + "name", + "age", + "hometown" + ] + }, + "linking_list": [ + [ + "towns", + "teacher.hometown" + ], + [ + "towns", + "instructor.hometown" + ], + [ + "towns", + "professor.hometown" + ] + ], + "linking_list_idx": [ + [ + 0, + "teacher.hometown" + ], + [ + 0, + "instructor.hometown" + ], + [ + 0, + "professor.hometown" + ] + ], + "linking_list_col": [ + [ + "teacher.teacher_id", + "instructor.teacher_id" + ], + [ + "teacher.teacher_id", + "professor.teacher_id" + ], + [ + "instructor.teacher_id", + "professor.teacher_id" + ], + [ + "teacher.name", + "instructor.name" + ], + [ + "teacher.name", + "professor.name" + ], + [ + "instructor.name", + "professor.name" + ], + [ + "teacher.age", + "instructor.age" + ], + [ + "teacher.age", + "professor.age" + ], + [ + "instructor.age", + "professor.age" + ], + [ + "teacher.hometown", + "instructor.hometown" + ], + [ + "teacher.hometown", + "professor.hometown" + ], + [ + "instructor.hometown", + "professor.hometown" + ] + ] + }, + { + "question": "show names of teachers and the #number of courses# they teach.", + "db_schema": { + "course": [ + "course_id", + "staring_date", + "course" + ], + "teacher": [ + "teacher_id", + "name", + "age", + "hometown" + ], + "course_arrange": [ + "course_id", + "teacher_id", + "grade" + ], + "class_schedule": [ + "course_id", + "teacher_id", + "grade" + ], + "timetable": [ + "course_id", + "teacher_id", + "grade" + ] + }, + "linking_list": [ + [ + "number of courses", + "course_arrange.course_id" + ], + [ + "number of courses", + "class_schedule.course_id" + ], + [ + "number of courses", + "timetable.course_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "course_arrange.course_id" + ], + [ + 0, + "class_schedule.course_id" + ], + [ + 0, + "timetable.course_id" + ] + ], + "linking_list_col": [ + [ + "course_arrange.course_id", + "class_schedule.course_id" + ], + [ + "course_arrange.course_id", + "timetable.course_id" + ], + [ + "class_schedule.course_id", + "timetable.course_id" + ], + [ + "course_arrange.teacher_id", + "class_schedule.teacher_id" + ], + [ + "course_arrange.teacher_id", + "timetable.teacher_id" + ], + [ + "class_schedule.teacher_id", + "timetable.teacher_id" + ], + [ + "course_arrange.grade", + "class_schedule.grade" + ], + [ + "course_arrange.grade", + "timetable.grade" + ], + [ + "class_schedule.grade", + "timetable.grade" + ] + ] + }, + { + "question": "find the names of the visitors whose #membership level# is higher than 4, and order the results by the level from high to low.", + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ], + "guest": [ + "id", + "name", + "level_of_membership", + "age" + ], + "patron": [ + "id", + "name", + "level_of_membership", + "age" + ] + }, + "linking_list": [ + [ + "membership level", + "visitor.level_of_membership" + ], + [ + "membership level", + "guest.level_of_membership" + ], + [ + "membership level", + "patron.level_of_membership" + ] + ], + "linking_list_idx": [ + [ + 0, + "visitor.level_of_membership" + ], + [ + 0, + "guest.level_of_membership" + ], + [ + 0, + "patron.level_of_membership" + ] + ], + "linking_list_col": [ + [ + "visitor.id", + "guest.id" + ], + [ + "visitor.id", + "patron.id" + ], + [ + "guest.id", + "patron.id" + ], + [ + "visitor.name", + "guest.name" + ], + [ + "visitor.name", + "patron.name" + ], + [ + "guest.name", + "patron.name" + ], + [ + "visitor.level_of_membership", + "guest.level_of_membership" + ], + [ + "visitor.level_of_membership", + "patron.level_of_membership" + ], + [ + "guest.level_of_membership", + "patron.level_of_membership" + ], + [ + "visitor.age", + "guest.age" + ], + [ + "visitor.age", + "patron.age" + ], + [ + "guest.age", + "patron.age" + ] + ] + }, + { + "question": "what is the #average age# of the visitors whose #membership level# is not higher than 4?", + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ], + "guest": [ + "id", + "name", + "level_of_membership", + "age" + ], + "patron": [ + "id", + "name", + "level_of_membership", + "age" + ] + }, + "linking_list": [ + [ + "average age", + "visitor.age" + ], + [ + "average age", + "guest.age" + ], + [ + "average age", + "patron.age" + ], + [ + "membership level", + "visitor.level_of_membership" + ], + [ + "membership level", + "guest.level_of_membership" + ], + [ + "membership level", + "patron.level_of_membership" + ] + ], + "linking_list_idx": [ + [ + 0, + "visitor.age" + ], + [ + 0, + "guest.age" + ], + [ + 0, + "patron.age" + ], + [ + 1, + "visitor.level_of_membership" + ], + [ + 1, + "guest.level_of_membership" + ], + [ + 1, + "patron.level_of_membership" + ] + ], + "linking_list_col": [ + [ + "visitor.id", + "guest.id" + ], + [ + "visitor.id", + "patron.id" + ], + [ + "guest.id", + "patron.id" + ], + [ + "visitor.name", + "guest.name" + ], + [ + "visitor.name", + "patron.name" + ], + [ + "guest.name", + "patron.name" + ], + [ + "visitor.level_of_membership", + "guest.level_of_membership" + ], + [ + "visitor.level_of_membership", + "patron.level_of_membership" + ], + [ + "guest.level_of_membership", + "patron.level_of_membership" + ], + [ + "visitor.age", + "guest.age" + ], + [ + "visitor.age", + "patron.age" + ], + [ + "guest.age", + "patron.age" + ] + ] + }, + { + "question": "find the #name# and #membership level# of the visitors whose membership level is higher than 4, and sort by their #age# from old to young.", + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ], + "guest": [ + "id", + "name", + "level_of_membership", + "age" + ], + "patron": [ + "id", + "name", + "level_of_membership", + "age" + ] + }, + "linking_list": [ + [ + "name", + "visitor.name" + ], + [ + "name", + "guest.name" + ], + [ + "name", + "patron.name" + ], + [ + "membership level", + "visitor.level_of_membership" + ], + [ + "membership level", + "guest.level_of_membership" + ], + [ + "membership level", + "patron.level_of_membership" + ], + [ + "age", + "visitor.age" + ], + [ + "age", + "guest.age" + ], + [ + "age", + "patron.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "visitor.name" + ], + [ + 0, + "guest.name" + ], + [ + 0, + "patron.name" + ], + [ + 1, + "visitor.level_of_membership" + ], + [ + 1, + "guest.level_of_membership" + ], + [ + 1, + "patron.level_of_membership" + ], + [ + 2, + "visitor.age" + ], + [ + 2, + "guest.age" + ], + [ + 2, + "patron.age" + ] + ], + "linking_list_col": [ + [ + "visitor.id", + "guest.id" + ], + [ + "visitor.id", + "patron.id" + ], + [ + "guest.id", + "patron.id" + ], + [ + "visitor.name", + "guest.name" + ], + [ + "visitor.name", + "patron.name" + ], + [ + "guest.name", + "patron.name" + ], + [ + "visitor.level_of_membership", + "guest.level_of_membership" + ], + [ + "visitor.level_of_membership", + "patron.level_of_membership" + ], + [ + "guest.level_of_membership", + "patron.level_of_membership" + ], + [ + "visitor.age", + "guest.age" + ], + [ + "visitor.age", + "patron.age" + ], + [ + "guest.age", + "patron.age" + ] + ] + }, + { + "question": "find the #average number of staff# working for the museums that were open before 2009.", + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ], + "gallery": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "exhibition": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ] + }, + "linking_list": [ + [ + "average number of staff", + "museum.num_of_staff" + ], + [ + "average number of staff", + "gallery.num_of_staff" + ], + [ + "average number of staff", + "exhibition.num_of_staff" + ] + ], + "linking_list_idx": [ + [ + 0, + "museum.num_of_staff" + ], + [ + 0, + "gallery.num_of_staff" + ], + [ + 0, + "exhibition.num_of_staff" + ] + ], + "linking_list_col": [ + [ + "museum.museum_id", + "gallery.museum_id" + ], + [ + "museum.museum_id", + "exhibition.museum_id" + ], + [ + "gallery.museum_id", + "exhibition.museum_id" + ], + [ + "museum.name", + "gallery.name" + ], + [ + "museum.name", + "exhibition.name" + ], + [ + "gallery.name", + "exhibition.name" + ], + [ + "museum.num_of_staff", + "gallery.num_of_staff" + ], + [ + "museum.num_of_staff", + "exhibition.num_of_staff" + ], + [ + "gallery.num_of_staff", + "exhibition.num_of_staff" + ], + [ + "museum.open_year", + "gallery.open_year" + ], + [ + "museum.open_year", + "exhibition.open_year" + ], + [ + "gallery.open_year", + "exhibition.open_year" + ] + ] + }, + { + "question": "what are the #opening year# and #staff number# of the museum named plaza museum?", + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ], + "gallery": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "exhibition": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ] + }, + "linking_list": [ + [ + "opening year", + "museum.open_year" + ], + [ + "opening year", + "gallery.open_year" + ], + [ + "opening year", + "exhibition.open_year" + ], + [ + "staff number", + "museum.num_of_staff" + ], + [ + "staff number", + "gallery.num_of_staff" + ], + [ + "staff number", + "exhibition.num_of_staff" + ] + ], + "linking_list_idx": [ + [ + 0, + "museum.open_year" + ], + [ + 0, + "gallery.open_year" + ], + [ + 0, + "exhibition.open_year" + ], + [ + 1, + "museum.num_of_staff" + ], + [ + 1, + "gallery.num_of_staff" + ], + [ + 1, + "exhibition.num_of_staff" + ] + ], + "linking_list_col": [ + [ + "museum.museum_id", + "gallery.museum_id" + ], + [ + "museum.museum_id", + "exhibition.museum_id" + ], + [ + "gallery.museum_id", + "exhibition.museum_id" + ], + [ + "museum.name", + "gallery.name" + ], + [ + "museum.name", + "exhibition.name" + ], + [ + "gallery.name", + "exhibition.name" + ], + [ + "museum.num_of_staff", + "gallery.num_of_staff" + ], + [ + "museum.num_of_staff", + "exhibition.num_of_staff" + ], + [ + "gallery.num_of_staff", + "exhibition.num_of_staff" + ], + [ + "museum.open_year", + "gallery.open_year" + ], + [ + "museum.open_year", + "exhibition.open_year" + ], + [ + "gallery.open_year", + "exhibition.open_year" + ] + ] + }, + { + "question": "find the names of museums which have #more staff# than the #minimum staff number# of all museums #opened after 2010# .", + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ], + "gallery": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "exhibition": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ] + }, + "linking_list": [ + [ + "more staff", + "museum.num_of_staff" + ], + [ + "more staff", + "gallery.num_of_staff" + ], + [ + "more staff", + "exhibition.num_of_staff" + ], + [ + "minimum staff number", + "museum.num_of_staff" + ], + [ + "minimum staff number", + "gallery.num_of_staff" + ], + [ + "minimum staff number", + "exhibition.num_of_staff" + ], + [ + "opened after 2010", + "museum.open_year" + ], + [ + "opened after 2010", + "gallery.open_year" + ], + [ + "opened after 2010", + "exhibition.open_year" + ] + ], + "linking_list_idx": [ + [ + 0, + "museum.num_of_staff" + ], + [ + 0, + "gallery.num_of_staff" + ], + [ + 0, + "exhibition.num_of_staff" + ], + [ + 1, + "museum.num_of_staff" + ], + [ + 1, + "gallery.num_of_staff" + ], + [ + 1, + "exhibition.num_of_staff" + ], + [ + 2, + "museum.open_year" + ], + [ + 2, + "gallery.open_year" + ], + [ + 2, + "exhibition.open_year" + ] + ], + "linking_list_col": [ + [ + "museum.museum_id", + "gallery.museum_id" + ], + [ + "museum.museum_id", + "exhibition.museum_id" + ], + [ + "gallery.museum_id", + "exhibition.museum_id" + ], + [ + "museum.name", + "gallery.name" + ], + [ + "museum.name", + "exhibition.name" + ], + [ + "gallery.name", + "exhibition.name" + ], + [ + "museum.num_of_staff", + "gallery.num_of_staff" + ], + [ + "museum.num_of_staff", + "exhibition.num_of_staff" + ], + [ + "gallery.num_of_staff", + "exhibition.num_of_staff" + ], + [ + "museum.open_year", + "gallery.open_year" + ], + [ + "museum.open_year", + "exhibition.open_year" + ], + [ + "gallery.open_year", + "exhibition.open_year" + ] + ] + }, + { + "question": "what is the #total ticket expense# of the visitors whose #membership level# is 1?", + "db_schema": { + "museum": [ + "museum_id", + "name", + "num_of_staff", + "open_year" + ], + "visitor": [ + "id", + "name", + "level_of_membership", + "age" + ], + "visit": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ], + "attendance": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ], + "check-in": [ + "museum_id", + "visitor_id", + "num_of_ticket", + "total_spent" + ] + }, + "linking_list": [ + [ + "total ticket expense", + "visit.total_spent" + ], + [ + "total ticket expense", + "attendance.total_spent" + ], + [ + "total ticket expense", + "check-in.total_spent" + ], + [ + "membership level", + "visitor.level_of_membership" + ] + ], + "linking_list_idx": [ + [ + 0, + "visit.total_spent" + ], + [ + 0, + "attendance.total_spent" + ], + [ + 0, + "check-in.total_spent" + ], + [ + 1, + "visitor.level_of_membership" + ] + ], + "linking_list_col": [ + [ + "visit.museum_id", + "attendance.museum_id" + ], + [ + "visit.museum_id", + "check-in.museum_id" + ], + [ + "attendance.museum_id", + "check-in.museum_id" + ], + [ + "visit.visitor_id", + "attendance.visitor_id" + ], + [ + "visit.visitor_id", + "check-in.visitor_id" + ], + [ + "attendance.visitor_id", + "check-in.visitor_id" + ], + [ + "visit.num_of_ticket", + "attendance.num_of_ticket" + ], + [ + "visit.num_of_ticket", + "check-in.num_of_ticket" + ], + [ + "attendance.num_of_ticket", + "check-in.num_of_ticket" + ], + [ + "visit.total_spent", + "attendance.total_spent" + ], + [ + "visit.total_spent", + "check-in.total_spent" + ], + [ + "attendance.total_spent", + "check-in.total_spent" + ] + ] + }, + { + "question": "list the #first name# and #birth date# of all players from the country with code usa.", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "athletes": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "competitors": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ] + }, + "linking_list": [ + [ + "first name", + "players.first_name" + ], + [ + "first name", + "athletes.first_name" + ], + [ + "first name", + "competitors.first_name" + ], + [ + "birth date", + "players.birth_date" + ], + [ + "birth date", + "athletes.birth_date" + ], + [ + "birth date", + "competitors.birth_date" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.first_name" + ], + [ + 0, + "athletes.first_name" + ], + [ + 0, + "competitors.first_name" + ], + [ + 1, + "players.birth_date" + ], + [ + 1, + "athletes.birth_date" + ], + [ + 1, + "competitors.birth_date" + ] + ], + "linking_list_col": [ + [ + "players.player_id", + "athletes.player_id" + ], + [ + "players.player_id", + "competitors.player_id" + ], + [ + "athletes.player_id", + "competitors.player_id" + ], + [ + "players.first_name", + "athletes.first_name" + ], + [ + "players.first_name", + "competitors.first_name" + ], + [ + "athletes.first_name", + "competitors.first_name" + ], + [ + "players.last_name", + "athletes.last_name" + ], + [ + "players.last_name", + "competitors.last_name" + ], + [ + "athletes.last_name", + "competitors.last_name" + ], + [ + "players.hand", + "athletes.hand" + ], + [ + "players.hand", + "competitors.hand" + ], + [ + "athletes.hand", + "competitors.hand" + ], + [ + "players.birth_date", + "athletes.birth_date" + ], + [ + "players.birth_date", + "competitors.birth_date" + ], + [ + "athletes.birth_date", + "competitors.birth_date" + ], + [ + "players.country_code", + "athletes.country_code" + ], + [ + "players.country_code", + "competitors.country_code" + ], + [ + "athletes.country_code", + "competitors.country_code" + ] + ] + }, + { + "question": "list the number of all matches who played in #years# of 2013 or 2016.", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "games": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "contests": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ] + }, + "linking_list": [ + [ + "years", + "matches.tourney_date" + ], + [ + "years", + "games.tourney_date" + ], + [ + "years", + "contests.tourney_date" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.tourney_date" + ], + [ + 0, + "games.tourney_date" + ], + [ + 0, + "contests.tourney_date" + ] + ], + "linking_list_col": [ + [ + "matches.best_of", + "games.best_of" + ], + [ + "matches.best_of", + "contests.best_of" + ], + [ + "games.best_of", + "contests.best_of" + ], + [ + "matches.draw_size", + "games.draw_size" + ], + [ + "matches.draw_size", + "contests.draw_size" + ], + [ + "games.draw_size", + "contests.draw_size" + ], + [ + "matches.loser_age", + "games.loser_age" + ], + [ + "matches.loser_age", + "contests.loser_age" + ], + [ + "games.loser_age", + "contests.loser_age" + ], + [ + "matches.loser_entry", + "games.loser_entry" + ], + [ + "matches.loser_entry", + "contests.loser_entry" + ], + [ + "games.loser_entry", + "contests.loser_entry" + ], + [ + "matches.loser_hand", + "games.loser_hand" + ], + [ + "matches.loser_hand", + "contests.loser_hand" + ], + [ + "games.loser_hand", + "contests.loser_hand" + ], + [ + "matches.loser_ht", + "games.loser_ht" + ], + [ + "matches.loser_ht", + "contests.loser_ht" + ], + [ + "games.loser_ht", + "contests.loser_ht" + ], + [ + "matches.loser_id", + "games.loser_id" + ], + [ + "matches.loser_id", + "contests.loser_id" + ], + [ + "games.loser_id", + "contests.loser_id" + ], + [ + "matches.loser_ioc", + "games.loser_ioc" + ], + [ + "matches.loser_ioc", + "contests.loser_ioc" + ], + [ + "games.loser_ioc", + "contests.loser_ioc" + ], + [ + "matches.loser_name", + "games.loser_name" + ], + [ + "matches.loser_name", + "contests.loser_name" + ], + [ + "games.loser_name", + "contests.loser_name" + ], + [ + "matches.loser_rank", + "games.loser_rank" + ], + [ + "matches.loser_rank", + "contests.loser_rank" + ], + [ + "games.loser_rank", + "contests.loser_rank" + ], + [ + "matches.loser_rank_points", + "games.loser_rank_points" + ], + [ + "matches.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "games.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "matches.loser_seed", + "games.loser_seed" + ], + [ + "matches.loser_seed", + "contests.loser_seed" + ], + [ + "games.loser_seed", + "contests.loser_seed" + ], + [ + "matches.match_num", + "games.match_num" + ], + [ + "matches.match_num", + "contests.match_num" + ], + [ + "games.match_num", + "contests.match_num" + ], + [ + "matches.minutes", + "games.minutes" + ], + [ + "matches.minutes", + "contests.minutes" + ], + [ + "games.minutes", + "contests.minutes" + ], + [ + "matches.round", + "games.round" + ], + [ + "matches.round", + "contests.round" + ], + [ + "games.round", + "contests.round" + ], + [ + "matches.score", + "games.score" + ], + [ + "matches.score", + "contests.score" + ], + [ + "games.score", + "contests.score" + ], + [ + "matches.surface", + "games.surface" + ], + [ + "matches.surface", + "contests.surface" + ], + [ + "games.surface", + "contests.surface" + ], + [ + "matches.tourney_date", + "games.tourney_date" + ], + [ + "matches.tourney_date", + "contests.tourney_date" + ], + [ + "games.tourney_date", + "contests.tourney_date" + ], + [ + "matches.tourney_id", + "games.tourney_id" + ], + [ + "matches.tourney_id", + "contests.tourney_id" + ], + [ + "games.tourney_id", + "contests.tourney_id" + ], + [ + "matches.tourney_level", + "games.tourney_level" + ], + [ + "matches.tourney_level", + "contests.tourney_level" + ], + [ + "games.tourney_level", + "contests.tourney_level" + ], + [ + "matches.tourney_name", + "games.tourney_name" + ], + [ + "matches.tourney_name", + "contests.tourney_name" + ], + [ + "games.tourney_name", + "contests.tourney_name" + ], + [ + "matches.winner_age", + "games.winner_age" + ], + [ + "matches.winner_age", + "contests.winner_age" + ], + [ + "games.winner_age", + "contests.winner_age" + ], + [ + "matches.winner_entry", + "games.winner_entry" + ], + [ + "matches.winner_entry", + "contests.winner_entry" + ], + [ + "games.winner_entry", + "contests.winner_entry" + ], + [ + "matches.winner_hand", + "games.winner_hand" + ], + [ + "matches.winner_hand", + "contests.winner_hand" + ], + [ + "games.winner_hand", + "contests.winner_hand" + ], + [ + "matches.winner_ht", + "games.winner_ht" + ], + [ + "matches.winner_ht", + "contests.winner_ht" + ], + [ + "games.winner_ht", + "contests.winner_ht" + ], + [ + "matches.winner_id", + "games.winner_id" + ], + [ + "matches.winner_id", + "contests.winner_id" + ], + [ + "games.winner_id", + "contests.winner_id" + ], + [ + "matches.winner_ioc", + "games.winner_ioc" + ], + [ + "matches.winner_ioc", + "contests.winner_ioc" + ], + [ + "games.winner_ioc", + "contests.winner_ioc" + ], + [ + "matches.winner_name", + "games.winner_name" + ], + [ + "matches.winner_name", + "contests.winner_name" + ], + [ + "games.winner_name", + "contests.winner_name" + ], + [ + "matches.winner_rank", + "games.winner_rank" + ], + [ + "matches.winner_rank", + "contests.winner_rank" + ], + [ + "games.winner_rank", + "contests.winner_rank" + ], + [ + "matches.winner_rank_points", + "games.winner_rank_points" + ], + [ + "matches.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "games.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "matches.winner_seed", + "games.winner_seed" + ], + [ + "matches.winner_seed", + "contests.winner_seed" + ], + [ + "games.winner_seed", + "contests.winner_seed" + ], + [ + "matches.year", + "games.year" + ], + [ + "matches.year", + "contests.year" + ], + [ + "games.year", + "contests.year" + ] + ] + }, + { + "question": "find the #first name# and #country code# of the oldest player.", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "athletes": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "competitors": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ] + }, + "linking_list": [ + [ + "first name", + "players.first_name" + ], + [ + "first name", + "athletes.first_name" + ], + [ + "first name", + "competitors.first_name" + ], + [ + "country code", + "players.country_code" + ], + [ + "country code", + "athletes.country_code" + ], + [ + "country code", + "competitors.country_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.first_name" + ], + [ + 0, + "athletes.first_name" + ], + [ + 0, + "competitors.first_name" + ], + [ + 1, + "players.country_code" + ], + [ + 1, + "athletes.country_code" + ], + [ + 1, + "competitors.country_code" + ] + ], + "linking_list_col": [ + [ + "players.player_id", + "athletes.player_id" + ], + [ + "players.player_id", + "competitors.player_id" + ], + [ + "athletes.player_id", + "competitors.player_id" + ], + [ + "players.first_name", + "athletes.first_name" + ], + [ + "players.first_name", + "competitors.first_name" + ], + [ + "athletes.first_name", + "competitors.first_name" + ], + [ + "players.last_name", + "athletes.last_name" + ], + [ + "players.last_name", + "competitors.last_name" + ], + [ + "athletes.last_name", + "competitors.last_name" + ], + [ + "players.hand", + "athletes.hand" + ], + [ + "players.hand", + "competitors.hand" + ], + [ + "athletes.hand", + "competitors.hand" + ], + [ + "players.birth_date", + "athletes.birth_date" + ], + [ + "players.birth_date", + "competitors.birth_date" + ], + [ + "athletes.birth_date", + "competitors.birth_date" + ], + [ + "players.country_code", + "athletes.country_code" + ], + [ + "players.country_code", + "competitors.country_code" + ], + [ + "athletes.country_code", + "competitors.country_code" + ] + ] + }, + { + "question": "what is the #first name# and #country code# of the oldest player?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "athletes": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "competitors": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ] + }, + "linking_list": [ + [ + "first name", + "players.first_name" + ], + [ + "first name", + "athletes.first_name" + ], + [ + "first name", + "competitors.first_name" + ], + [ + "country code", + "players.country_code" + ], + [ + "country code", + "athletes.country_code" + ], + [ + "country code", + "competitors.country_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.first_name" + ], + [ + 0, + "athletes.first_name" + ], + [ + 0, + "competitors.first_name" + ], + [ + 1, + "players.country_code" + ], + [ + 1, + "athletes.country_code" + ], + [ + 1, + "competitors.country_code" + ] + ], + "linking_list_col": [ + [ + "players.player_id", + "athletes.player_id" + ], + [ + "players.player_id", + "competitors.player_id" + ], + [ + "athletes.player_id", + "competitors.player_id" + ], + [ + "players.first_name", + "athletes.first_name" + ], + [ + "players.first_name", + "competitors.first_name" + ], + [ + "athletes.first_name", + "competitors.first_name" + ], + [ + "players.last_name", + "athletes.last_name" + ], + [ + "players.last_name", + "competitors.last_name" + ], + [ + "athletes.last_name", + "competitors.last_name" + ], + [ + "players.hand", + "athletes.hand" + ], + [ + "players.hand", + "competitors.hand" + ], + [ + "athletes.hand", + "competitors.hand" + ], + [ + "players.birth_date", + "athletes.birth_date" + ], + [ + "players.birth_date", + "competitors.birth_date" + ], + [ + "athletes.birth_date", + "competitors.birth_date" + ], + [ + "players.country_code", + "athletes.country_code" + ], + [ + "players.country_code", + "competitors.country_code" + ], + [ + "athletes.country_code", + "competitors.country_code" + ] + ] + }, + { + "question": "list the first and #last name# of all players in the order of #birth date# .", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "athletes": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "competitors": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ] + }, + "linking_list": [ + [ + "last name", + "players.last_name" + ], + [ + "last name", + "athletes.last_name" + ], + [ + "last name", + "competitors.last_name" + ], + [ + "birth date", + "players.birth_date" + ], + [ + "birth date", + "athletes.birth_date" + ], + [ + "birth date", + "competitors.birth_date" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.last_name" + ], + [ + 0, + "athletes.last_name" + ], + [ + 0, + "competitors.last_name" + ], + [ + 1, + "players.birth_date" + ], + [ + 1, + "athletes.birth_date" + ], + [ + 1, + "competitors.birth_date" + ] + ], + "linking_list_col": [ + [ + "players.player_id", + "athletes.player_id" + ], + [ + "players.player_id", + "competitors.player_id" + ], + [ + "athletes.player_id", + "competitors.player_id" + ], + [ + "players.first_name", + "athletes.first_name" + ], + [ + "players.first_name", + "competitors.first_name" + ], + [ + "athletes.first_name", + "competitors.first_name" + ], + [ + "players.last_name", + "athletes.last_name" + ], + [ + "players.last_name", + "competitors.last_name" + ], + [ + "athletes.last_name", + "competitors.last_name" + ], + [ + "players.hand", + "athletes.hand" + ], + [ + "players.hand", + "competitors.hand" + ], + [ + "athletes.hand", + "competitors.hand" + ], + [ + "players.birth_date", + "athletes.birth_date" + ], + [ + "players.birth_date", + "competitors.birth_date" + ], + [ + "athletes.birth_date", + "competitors.birth_date" + ], + [ + "players.country_code", + "athletes.country_code" + ], + [ + "players.country_code", + "competitors.country_code" + ], + [ + "athletes.country_code", + "competitors.country_code" + ] + ] + }, + { + "question": "list the first and #last name# of all players who are left / l #hand# in the order of #birth date# .", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "athletes": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "competitors": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ] + }, + "linking_list": [ + [ + "last name", + "players.last_name" + ], + [ + "last name", + "athletes.last_name" + ], + [ + "last name", + "competitors.last_name" + ], + [ + "hand", + "players.hand" + ], + [ + "hand", + "athletes.hand" + ], + [ + "hand", + "competitors.hand" + ], + [ + "birth date", + "players.birth_date" + ], + [ + "birth date", + "athletes.birth_date" + ], + [ + "birth date", + "competitors.birth_date" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.last_name" + ], + [ + 0, + "athletes.last_name" + ], + [ + 0, + "competitors.last_name" + ], + [ + 1, + "players.hand" + ], + [ + 1, + "athletes.hand" + ], + [ + 1, + "competitors.hand" + ], + [ + 2, + "players.birth_date" + ], + [ + 2, + "athletes.birth_date" + ], + [ + 2, + "competitors.birth_date" + ] + ], + "linking_list_col": [ + [ + "players.player_id", + "athletes.player_id" + ], + [ + "players.player_id", + "competitors.player_id" + ], + [ + "athletes.player_id", + "competitors.player_id" + ], + [ + "players.first_name", + "athletes.first_name" + ], + [ + "players.first_name", + "competitors.first_name" + ], + [ + "athletes.first_name", + "competitors.first_name" + ], + [ + "players.last_name", + "athletes.last_name" + ], + [ + "players.last_name", + "competitors.last_name" + ], + [ + "athletes.last_name", + "competitors.last_name" + ], + [ + "players.hand", + "athletes.hand" + ], + [ + "players.hand", + "competitors.hand" + ], + [ + "athletes.hand", + "competitors.hand" + ], + [ + "players.birth_date", + "athletes.birth_date" + ], + [ + "players.birth_date", + "competitors.birth_date" + ], + [ + "athletes.birth_date", + "competitors.birth_date" + ], + [ + "players.country_code", + "athletes.country_code" + ], + [ + "players.country_code", + "competitors.country_code" + ], + [ + "athletes.country_code", + "competitors.country_code" + ] + ] + }, + { + "question": "what are the full names of all #left handed# players, in order of birth date?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "athletes": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "competitors": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ] + }, + "linking_list": [ + [ + "left handed", + "players.hand" + ], + [ + "left handed", + "athletes.hand" + ], + [ + "left handed", + "competitors.hand" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.hand" + ], + [ + 0, + "athletes.hand" + ], + [ + 0, + "competitors.hand" + ] + ], + "linking_list_col": [ + [ + "players.player_id", + "athletes.player_id" + ], + [ + "players.player_id", + "competitors.player_id" + ], + [ + "athletes.player_id", + "competitors.player_id" + ], + [ + "players.first_name", + "athletes.first_name" + ], + [ + "players.first_name", + "competitors.first_name" + ], + [ + "athletes.first_name", + "competitors.first_name" + ], + [ + "players.last_name", + "athletes.last_name" + ], + [ + "players.last_name", + "competitors.last_name" + ], + [ + "athletes.last_name", + "competitors.last_name" + ], + [ + "players.hand", + "athletes.hand" + ], + [ + "players.hand", + "competitors.hand" + ], + [ + "athletes.hand", + "competitors.hand" + ], + [ + "players.birth_date", + "athletes.birth_date" + ], + [ + "players.birth_date", + "competitors.birth_date" + ], + [ + "athletes.birth_date", + "competitors.birth_date" + ], + [ + "players.country_code", + "athletes.country_code" + ], + [ + "players.country_code", + "competitors.country_code" + ], + [ + "athletes.country_code", + "competitors.country_code" + ] + ] + }, + { + "question": "find the #first name# and #country code# of the player who did the #most number of tours# .", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "standings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "leaderboard": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "first name", + "players.first_name" + ], + [ + "country code", + "players.country_code" + ], + [ + "most number of tours", + "rankings.tours" + ], + [ + "most number of tours", + "standings.tours" + ], + [ + "most number of tours", + "leaderboard.tours" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.first_name" + ], + [ + 1, + "players.country_code" + ], + [ + 2, + "rankings.tours" + ], + [ + 2, + "standings.tours" + ], + [ + 2, + "leaderboard.tours" + ] + ], + "linking_list_col": [ + [ + "rankings.ranking_date", + "standings.ranking_date" + ], + [ + "rankings.ranking_date", + "leaderboard.ranking_date" + ], + [ + "standings.ranking_date", + "leaderboard.ranking_date" + ], + [ + "rankings.ranking", + "standings.ranking" + ], + [ + "rankings.ranking", + "leaderboard.ranking" + ], + [ + "standings.ranking", + "leaderboard.ranking" + ], + [ + "rankings.player_id", + "standings.player_id" + ], + [ + "rankings.player_id", + "leaderboard.player_id" + ], + [ + "standings.player_id", + "leaderboard.player_id" + ], + [ + "rankings.ranking_points", + "standings.ranking_points" + ], + [ + "rankings.ranking_points", + "leaderboard.ranking_points" + ], + [ + "standings.ranking_points", + "leaderboard.ranking_points" + ], + [ + "rankings.tours", + "standings.tours" + ], + [ + "rankings.tours", + "leaderboard.tours" + ], + [ + "standings.tours", + "leaderboard.tours" + ] + ] + }, + { + "question": "find the #year# that has the most number of matches.", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "games": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "contests": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ] + }, + "linking_list": [ + [ + "year", + "matches.year" + ], + [ + "year", + "games.year" + ], + [ + "year", + "contests.year" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.year" + ], + [ + 0, + "games.year" + ], + [ + 0, + "contests.year" + ] + ], + "linking_list_col": [ + [ + "matches.best_of", + "games.best_of" + ], + [ + "matches.best_of", + "contests.best_of" + ], + [ + "games.best_of", + "contests.best_of" + ], + [ + "matches.draw_size", + "games.draw_size" + ], + [ + "matches.draw_size", + "contests.draw_size" + ], + [ + "games.draw_size", + "contests.draw_size" + ], + [ + "matches.loser_age", + "games.loser_age" + ], + [ + "matches.loser_age", + "contests.loser_age" + ], + [ + "games.loser_age", + "contests.loser_age" + ], + [ + "matches.loser_entry", + "games.loser_entry" + ], + [ + "matches.loser_entry", + "contests.loser_entry" + ], + [ + "games.loser_entry", + "contests.loser_entry" + ], + [ + "matches.loser_hand", + "games.loser_hand" + ], + [ + "matches.loser_hand", + "contests.loser_hand" + ], + [ + "games.loser_hand", + "contests.loser_hand" + ], + [ + "matches.loser_ht", + "games.loser_ht" + ], + [ + "matches.loser_ht", + "contests.loser_ht" + ], + [ + "games.loser_ht", + "contests.loser_ht" + ], + [ + "matches.loser_id", + "games.loser_id" + ], + [ + "matches.loser_id", + "contests.loser_id" + ], + [ + "games.loser_id", + "contests.loser_id" + ], + [ + "matches.loser_ioc", + "games.loser_ioc" + ], + [ + "matches.loser_ioc", + "contests.loser_ioc" + ], + [ + "games.loser_ioc", + "contests.loser_ioc" + ], + [ + "matches.loser_name", + "games.loser_name" + ], + [ + "matches.loser_name", + "contests.loser_name" + ], + [ + "games.loser_name", + "contests.loser_name" + ], + [ + "matches.loser_rank", + "games.loser_rank" + ], + [ + "matches.loser_rank", + "contests.loser_rank" + ], + [ + "games.loser_rank", + "contests.loser_rank" + ], + [ + "matches.loser_rank_points", + "games.loser_rank_points" + ], + [ + "matches.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "games.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "matches.loser_seed", + "games.loser_seed" + ], + [ + "matches.loser_seed", + "contests.loser_seed" + ], + [ + "games.loser_seed", + "contests.loser_seed" + ], + [ + "matches.match_num", + "games.match_num" + ], + [ + "matches.match_num", + "contests.match_num" + ], + [ + "games.match_num", + "contests.match_num" + ], + [ + "matches.minutes", + "games.minutes" + ], + [ + "matches.minutes", + "contests.minutes" + ], + [ + "games.minutes", + "contests.minutes" + ], + [ + "matches.round", + "games.round" + ], + [ + "matches.round", + "contests.round" + ], + [ + "games.round", + "contests.round" + ], + [ + "matches.score", + "games.score" + ], + [ + "matches.score", + "contests.score" + ], + [ + "games.score", + "contests.score" + ], + [ + "matches.surface", + "games.surface" + ], + [ + "matches.surface", + "contests.surface" + ], + [ + "games.surface", + "contests.surface" + ], + [ + "matches.tourney_date", + "games.tourney_date" + ], + [ + "matches.tourney_date", + "contests.tourney_date" + ], + [ + "games.tourney_date", + "contests.tourney_date" + ], + [ + "matches.tourney_id", + "games.tourney_id" + ], + [ + "matches.tourney_id", + "contests.tourney_id" + ], + [ + "games.tourney_id", + "contests.tourney_id" + ], + [ + "matches.tourney_level", + "games.tourney_level" + ], + [ + "matches.tourney_level", + "contests.tourney_level" + ], + [ + "games.tourney_level", + "contests.tourney_level" + ], + [ + "matches.tourney_name", + "games.tourney_name" + ], + [ + "matches.tourney_name", + "contests.tourney_name" + ], + [ + "games.tourney_name", + "contests.tourney_name" + ], + [ + "matches.winner_age", + "games.winner_age" + ], + [ + "matches.winner_age", + "contests.winner_age" + ], + [ + "games.winner_age", + "contests.winner_age" + ], + [ + "matches.winner_entry", + "games.winner_entry" + ], + [ + "matches.winner_entry", + "contests.winner_entry" + ], + [ + "games.winner_entry", + "contests.winner_entry" + ], + [ + "matches.winner_hand", + "games.winner_hand" + ], + [ + "matches.winner_hand", + "contests.winner_hand" + ], + [ + "games.winner_hand", + "contests.winner_hand" + ], + [ + "matches.winner_ht", + "games.winner_ht" + ], + [ + "matches.winner_ht", + "contests.winner_ht" + ], + [ + "games.winner_ht", + "contests.winner_ht" + ], + [ + "matches.winner_id", + "games.winner_id" + ], + [ + "matches.winner_id", + "contests.winner_id" + ], + [ + "games.winner_id", + "contests.winner_id" + ], + [ + "matches.winner_ioc", + "games.winner_ioc" + ], + [ + "matches.winner_ioc", + "contests.winner_ioc" + ], + [ + "games.winner_ioc", + "contests.winner_ioc" + ], + [ + "matches.winner_name", + "games.winner_name" + ], + [ + "matches.winner_name", + "contests.winner_name" + ], + [ + "games.winner_name", + "contests.winner_name" + ], + [ + "matches.winner_rank", + "games.winner_rank" + ], + [ + "matches.winner_rank", + "contests.winner_rank" + ], + [ + "games.winner_rank", + "contests.winner_rank" + ], + [ + "matches.winner_rank_points", + "games.winner_rank_points" + ], + [ + "matches.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "games.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "matches.winner_seed", + "games.winner_seed" + ], + [ + "matches.winner_seed", + "contests.winner_seed" + ], + [ + "games.winner_seed", + "contests.winner_seed" + ], + [ + "matches.year", + "games.year" + ], + [ + "matches.year", + "contests.year" + ], + [ + "games.year", + "contests.year" + ] + ] + }, + { + "question": "which #year# had the most matches?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "games": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "contests": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ] + }, + "linking_list": [ + [ + "year", + "matches.year" + ], + [ + "year", + "games.year" + ], + [ + "year", + "contests.year" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.year" + ], + [ + 0, + "games.year" + ], + [ + 0, + "contests.year" + ] + ], + "linking_list_col": [ + [ + "matches.best_of", + "games.best_of" + ], + [ + "matches.best_of", + "contests.best_of" + ], + [ + "games.best_of", + "contests.best_of" + ], + [ + "matches.draw_size", + "games.draw_size" + ], + [ + "matches.draw_size", + "contests.draw_size" + ], + [ + "games.draw_size", + "contests.draw_size" + ], + [ + "matches.loser_age", + "games.loser_age" + ], + [ + "matches.loser_age", + "contests.loser_age" + ], + [ + "games.loser_age", + "contests.loser_age" + ], + [ + "matches.loser_entry", + "games.loser_entry" + ], + [ + "matches.loser_entry", + "contests.loser_entry" + ], + [ + "games.loser_entry", + "contests.loser_entry" + ], + [ + "matches.loser_hand", + "games.loser_hand" + ], + [ + "matches.loser_hand", + "contests.loser_hand" + ], + [ + "games.loser_hand", + "contests.loser_hand" + ], + [ + "matches.loser_ht", + "games.loser_ht" + ], + [ + "matches.loser_ht", + "contests.loser_ht" + ], + [ + "games.loser_ht", + "contests.loser_ht" + ], + [ + "matches.loser_id", + "games.loser_id" + ], + [ + "matches.loser_id", + "contests.loser_id" + ], + [ + "games.loser_id", + "contests.loser_id" + ], + [ + "matches.loser_ioc", + "games.loser_ioc" + ], + [ + "matches.loser_ioc", + "contests.loser_ioc" + ], + [ + "games.loser_ioc", + "contests.loser_ioc" + ], + [ + "matches.loser_name", + "games.loser_name" + ], + [ + "matches.loser_name", + "contests.loser_name" + ], + [ + "games.loser_name", + "contests.loser_name" + ], + [ + "matches.loser_rank", + "games.loser_rank" + ], + [ + "matches.loser_rank", + "contests.loser_rank" + ], + [ + "games.loser_rank", + "contests.loser_rank" + ], + [ + "matches.loser_rank_points", + "games.loser_rank_points" + ], + [ + "matches.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "games.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "matches.loser_seed", + "games.loser_seed" + ], + [ + "matches.loser_seed", + "contests.loser_seed" + ], + [ + "games.loser_seed", + "contests.loser_seed" + ], + [ + "matches.match_num", + "games.match_num" + ], + [ + "matches.match_num", + "contests.match_num" + ], + [ + "games.match_num", + "contests.match_num" + ], + [ + "matches.minutes", + "games.minutes" + ], + [ + "matches.minutes", + "contests.minutes" + ], + [ + "games.minutes", + "contests.minutes" + ], + [ + "matches.round", + "games.round" + ], + [ + "matches.round", + "contests.round" + ], + [ + "games.round", + "contests.round" + ], + [ + "matches.score", + "games.score" + ], + [ + "matches.score", + "contests.score" + ], + [ + "games.score", + "contests.score" + ], + [ + "matches.surface", + "games.surface" + ], + [ + "matches.surface", + "contests.surface" + ], + [ + "games.surface", + "contests.surface" + ], + [ + "matches.tourney_date", + "games.tourney_date" + ], + [ + "matches.tourney_date", + "contests.tourney_date" + ], + [ + "games.tourney_date", + "contests.tourney_date" + ], + [ + "matches.tourney_id", + "games.tourney_id" + ], + [ + "matches.tourney_id", + "contests.tourney_id" + ], + [ + "games.tourney_id", + "contests.tourney_id" + ], + [ + "matches.tourney_level", + "games.tourney_level" + ], + [ + "matches.tourney_level", + "contests.tourney_level" + ], + [ + "games.tourney_level", + "contests.tourney_level" + ], + [ + "matches.tourney_name", + "games.tourney_name" + ], + [ + "matches.tourney_name", + "contests.tourney_name" + ], + [ + "games.tourney_name", + "contests.tourney_name" + ], + [ + "matches.winner_age", + "games.winner_age" + ], + [ + "matches.winner_age", + "contests.winner_age" + ], + [ + "games.winner_age", + "contests.winner_age" + ], + [ + "matches.winner_entry", + "games.winner_entry" + ], + [ + "matches.winner_entry", + "contests.winner_entry" + ], + [ + "games.winner_entry", + "contests.winner_entry" + ], + [ + "matches.winner_hand", + "games.winner_hand" + ], + [ + "matches.winner_hand", + "contests.winner_hand" + ], + [ + "games.winner_hand", + "contests.winner_hand" + ], + [ + "matches.winner_ht", + "games.winner_ht" + ], + [ + "matches.winner_ht", + "contests.winner_ht" + ], + [ + "games.winner_ht", + "contests.winner_ht" + ], + [ + "matches.winner_id", + "games.winner_id" + ], + [ + "matches.winner_id", + "contests.winner_id" + ], + [ + "games.winner_id", + "contests.winner_id" + ], + [ + "matches.winner_ioc", + "games.winner_ioc" + ], + [ + "matches.winner_ioc", + "contests.winner_ioc" + ], + [ + "games.winner_ioc", + "contests.winner_ioc" + ], + [ + "matches.winner_name", + "games.winner_name" + ], + [ + "matches.winner_name", + "contests.winner_name" + ], + [ + "games.winner_name", + "contests.winner_name" + ], + [ + "matches.winner_rank", + "games.winner_rank" + ], + [ + "matches.winner_rank", + "contests.winner_rank" + ], + [ + "games.winner_rank", + "contests.winner_rank" + ], + [ + "matches.winner_rank_points", + "games.winner_rank_points" + ], + [ + "matches.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "games.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "matches.winner_seed", + "games.winner_seed" + ], + [ + "matches.winner_seed", + "contests.winner_seed" + ], + [ + "games.winner_seed", + "contests.winner_seed" + ], + [ + "matches.year", + "games.year" + ], + [ + "matches.year", + "contests.year" + ], + [ + "games.year", + "contests.year" + ] + ] + }, + { + "question": "what is the name of the winner who has won the most matches, and how many #rank points# does this player have?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "games": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "contests": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ] + }, + "linking_list": [ + [ + "rank points", + "matches.winner_rank_points" + ], + [ + "rank points", + "games.winner_rank_points" + ], + [ + "rank points", + "contests.winner_rank_points" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.winner_rank_points" + ], + [ + 0, + "games.winner_rank_points" + ], + [ + 0, + "contests.winner_rank_points" + ] + ], + "linking_list_col": [ + [ + "matches.best_of", + "games.best_of" + ], + [ + "matches.best_of", + "contests.best_of" + ], + [ + "games.best_of", + "contests.best_of" + ], + [ + "matches.draw_size", + "games.draw_size" + ], + [ + "matches.draw_size", + "contests.draw_size" + ], + [ + "games.draw_size", + "contests.draw_size" + ], + [ + "matches.loser_age", + "games.loser_age" + ], + [ + "matches.loser_age", + "contests.loser_age" + ], + [ + "games.loser_age", + "contests.loser_age" + ], + [ + "matches.loser_entry", + "games.loser_entry" + ], + [ + "matches.loser_entry", + "contests.loser_entry" + ], + [ + "games.loser_entry", + "contests.loser_entry" + ], + [ + "matches.loser_hand", + "games.loser_hand" + ], + [ + "matches.loser_hand", + "contests.loser_hand" + ], + [ + "games.loser_hand", + "contests.loser_hand" + ], + [ + "matches.loser_ht", + "games.loser_ht" + ], + [ + "matches.loser_ht", + "contests.loser_ht" + ], + [ + "games.loser_ht", + "contests.loser_ht" + ], + [ + "matches.loser_id", + "games.loser_id" + ], + [ + "matches.loser_id", + "contests.loser_id" + ], + [ + "games.loser_id", + "contests.loser_id" + ], + [ + "matches.loser_ioc", + "games.loser_ioc" + ], + [ + "matches.loser_ioc", + "contests.loser_ioc" + ], + [ + "games.loser_ioc", + "contests.loser_ioc" + ], + [ + "matches.loser_name", + "games.loser_name" + ], + [ + "matches.loser_name", + "contests.loser_name" + ], + [ + "games.loser_name", + "contests.loser_name" + ], + [ + "matches.loser_rank", + "games.loser_rank" + ], + [ + "matches.loser_rank", + "contests.loser_rank" + ], + [ + "games.loser_rank", + "contests.loser_rank" + ], + [ + "matches.loser_rank_points", + "games.loser_rank_points" + ], + [ + "matches.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "games.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "matches.loser_seed", + "games.loser_seed" + ], + [ + "matches.loser_seed", + "contests.loser_seed" + ], + [ + "games.loser_seed", + "contests.loser_seed" + ], + [ + "matches.match_num", + "games.match_num" + ], + [ + "matches.match_num", + "contests.match_num" + ], + [ + "games.match_num", + "contests.match_num" + ], + [ + "matches.minutes", + "games.minutes" + ], + [ + "matches.minutes", + "contests.minutes" + ], + [ + "games.minutes", + "contests.minutes" + ], + [ + "matches.round", + "games.round" + ], + [ + "matches.round", + "contests.round" + ], + [ + "games.round", + "contests.round" + ], + [ + "matches.score", + "games.score" + ], + [ + "matches.score", + "contests.score" + ], + [ + "games.score", + "contests.score" + ], + [ + "matches.surface", + "games.surface" + ], + [ + "matches.surface", + "contests.surface" + ], + [ + "games.surface", + "contests.surface" + ], + [ + "matches.tourney_date", + "games.tourney_date" + ], + [ + "matches.tourney_date", + "contests.tourney_date" + ], + [ + "games.tourney_date", + "contests.tourney_date" + ], + [ + "matches.tourney_id", + "games.tourney_id" + ], + [ + "matches.tourney_id", + "contests.tourney_id" + ], + [ + "games.tourney_id", + "contests.tourney_id" + ], + [ + "matches.tourney_level", + "games.tourney_level" + ], + [ + "matches.tourney_level", + "contests.tourney_level" + ], + [ + "games.tourney_level", + "contests.tourney_level" + ], + [ + "matches.tourney_name", + "games.tourney_name" + ], + [ + "matches.tourney_name", + "contests.tourney_name" + ], + [ + "games.tourney_name", + "contests.tourney_name" + ], + [ + "matches.winner_age", + "games.winner_age" + ], + [ + "matches.winner_age", + "contests.winner_age" + ], + [ + "games.winner_age", + "contests.winner_age" + ], + [ + "matches.winner_entry", + "games.winner_entry" + ], + [ + "matches.winner_entry", + "contests.winner_entry" + ], + [ + "games.winner_entry", + "contests.winner_entry" + ], + [ + "matches.winner_hand", + "games.winner_hand" + ], + [ + "matches.winner_hand", + "contests.winner_hand" + ], + [ + "games.winner_hand", + "contests.winner_hand" + ], + [ + "matches.winner_ht", + "games.winner_ht" + ], + [ + "matches.winner_ht", + "contests.winner_ht" + ], + [ + "games.winner_ht", + "contests.winner_ht" + ], + [ + "matches.winner_id", + "games.winner_id" + ], + [ + "matches.winner_id", + "contests.winner_id" + ], + [ + "games.winner_id", + "contests.winner_id" + ], + [ + "matches.winner_ioc", + "games.winner_ioc" + ], + [ + "matches.winner_ioc", + "contests.winner_ioc" + ], + [ + "games.winner_ioc", + "contests.winner_ioc" + ], + [ + "matches.winner_name", + "games.winner_name" + ], + [ + "matches.winner_name", + "contests.winner_name" + ], + [ + "games.winner_name", + "contests.winner_name" + ], + [ + "matches.winner_rank", + "games.winner_rank" + ], + [ + "matches.winner_rank", + "contests.winner_rank" + ], + [ + "games.winner_rank", + "contests.winner_rank" + ], + [ + "matches.winner_rank_points", + "games.winner_rank_points" + ], + [ + "matches.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "games.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "matches.winner_seed", + "games.winner_seed" + ], + [ + "matches.winner_seed", + "contests.winner_seed" + ], + [ + "games.winner_seed", + "contests.winner_seed" + ], + [ + "matches.year", + "games.year" + ], + [ + "matches.year", + "contests.year" + ], + [ + "games.year", + "contests.year" + ] + ] + }, + { + "question": "find the name of the winner who has the #highest rank points# and participated in the #australian open# tourney.", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "games": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "contests": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ] + }, + "linking_list": [ + [ + "highest rank points", + "matches.winner_rank_points" + ], + [ + "highest rank points", + "games.winner_rank_points" + ], + [ + "highest rank points", + "contests.winner_rank_points" + ], + [ + "Australian Open", + "matches.tourney_name" + ], + [ + "Australian Open", + "games.tourney_name" + ], + [ + "Australian Open", + "contests.tourney_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.winner_rank_points" + ], + [ + 0, + "games.winner_rank_points" + ], + [ + 0, + "contests.winner_rank_points" + ], + [ + 1, + "matches.tourney_name" + ], + [ + 1, + "games.tourney_name" + ], + [ + 1, + "contests.tourney_name" + ] + ], + "linking_list_col": [ + [ + "matches.best_of", + "games.best_of" + ], + [ + "matches.best_of", + "contests.best_of" + ], + [ + "games.best_of", + "contests.best_of" + ], + [ + "matches.draw_size", + "games.draw_size" + ], + [ + "matches.draw_size", + "contests.draw_size" + ], + [ + "games.draw_size", + "contests.draw_size" + ], + [ + "matches.loser_age", + "games.loser_age" + ], + [ + "matches.loser_age", + "contests.loser_age" + ], + [ + "games.loser_age", + "contests.loser_age" + ], + [ + "matches.loser_entry", + "games.loser_entry" + ], + [ + "matches.loser_entry", + "contests.loser_entry" + ], + [ + "games.loser_entry", + "contests.loser_entry" + ], + [ + "matches.loser_hand", + "games.loser_hand" + ], + [ + "matches.loser_hand", + "contests.loser_hand" + ], + [ + "games.loser_hand", + "contests.loser_hand" + ], + [ + "matches.loser_ht", + "games.loser_ht" + ], + [ + "matches.loser_ht", + "contests.loser_ht" + ], + [ + "games.loser_ht", + "contests.loser_ht" + ], + [ + "matches.loser_id", + "games.loser_id" + ], + [ + "matches.loser_id", + "contests.loser_id" + ], + [ + "games.loser_id", + "contests.loser_id" + ], + [ + "matches.loser_ioc", + "games.loser_ioc" + ], + [ + "matches.loser_ioc", + "contests.loser_ioc" + ], + [ + "games.loser_ioc", + "contests.loser_ioc" + ], + [ + "matches.loser_name", + "games.loser_name" + ], + [ + "matches.loser_name", + "contests.loser_name" + ], + [ + "games.loser_name", + "contests.loser_name" + ], + [ + "matches.loser_rank", + "games.loser_rank" + ], + [ + "matches.loser_rank", + "contests.loser_rank" + ], + [ + "games.loser_rank", + "contests.loser_rank" + ], + [ + "matches.loser_rank_points", + "games.loser_rank_points" + ], + [ + "matches.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "games.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "matches.loser_seed", + "games.loser_seed" + ], + [ + "matches.loser_seed", + "contests.loser_seed" + ], + [ + "games.loser_seed", + "contests.loser_seed" + ], + [ + "matches.match_num", + "games.match_num" + ], + [ + "matches.match_num", + "contests.match_num" + ], + [ + "games.match_num", + "contests.match_num" + ], + [ + "matches.minutes", + "games.minutes" + ], + [ + "matches.minutes", + "contests.minutes" + ], + [ + "games.minutes", + "contests.minutes" + ], + [ + "matches.round", + "games.round" + ], + [ + "matches.round", + "contests.round" + ], + [ + "games.round", + "contests.round" + ], + [ + "matches.score", + "games.score" + ], + [ + "matches.score", + "contests.score" + ], + [ + "games.score", + "contests.score" + ], + [ + "matches.surface", + "games.surface" + ], + [ + "matches.surface", + "contests.surface" + ], + [ + "games.surface", + "contests.surface" + ], + [ + "matches.tourney_date", + "games.tourney_date" + ], + [ + "matches.tourney_date", + "contests.tourney_date" + ], + [ + "games.tourney_date", + "contests.tourney_date" + ], + [ + "matches.tourney_id", + "games.tourney_id" + ], + [ + "matches.tourney_id", + "contests.tourney_id" + ], + [ + "games.tourney_id", + "contests.tourney_id" + ], + [ + "matches.tourney_level", + "games.tourney_level" + ], + [ + "matches.tourney_level", + "contests.tourney_level" + ], + [ + "games.tourney_level", + "contests.tourney_level" + ], + [ + "matches.tourney_name", + "games.tourney_name" + ], + [ + "matches.tourney_name", + "contests.tourney_name" + ], + [ + "games.tourney_name", + "contests.tourney_name" + ], + [ + "matches.winner_age", + "games.winner_age" + ], + [ + "matches.winner_age", + "contests.winner_age" + ], + [ + "games.winner_age", + "contests.winner_age" + ], + [ + "matches.winner_entry", + "games.winner_entry" + ], + [ + "matches.winner_entry", + "contests.winner_entry" + ], + [ + "games.winner_entry", + "contests.winner_entry" + ], + [ + "matches.winner_hand", + "games.winner_hand" + ], + [ + "matches.winner_hand", + "contests.winner_hand" + ], + [ + "games.winner_hand", + "contests.winner_hand" + ], + [ + "matches.winner_ht", + "games.winner_ht" + ], + [ + "matches.winner_ht", + "contests.winner_ht" + ], + [ + "games.winner_ht", + "contests.winner_ht" + ], + [ + "matches.winner_id", + "games.winner_id" + ], + [ + "matches.winner_id", + "contests.winner_id" + ], + [ + "games.winner_id", + "contests.winner_id" + ], + [ + "matches.winner_ioc", + "games.winner_ioc" + ], + [ + "matches.winner_ioc", + "contests.winner_ioc" + ], + [ + "games.winner_ioc", + "contests.winner_ioc" + ], + [ + "matches.winner_name", + "games.winner_name" + ], + [ + "matches.winner_name", + "contests.winner_name" + ], + [ + "games.winner_name", + "contests.winner_name" + ], + [ + "matches.winner_rank", + "games.winner_rank" + ], + [ + "matches.winner_rank", + "contests.winner_rank" + ], + [ + "games.winner_rank", + "contests.winner_rank" + ], + [ + "matches.winner_rank_points", + "games.winner_rank_points" + ], + [ + "matches.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "games.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "matches.winner_seed", + "games.winner_seed" + ], + [ + "matches.winner_seed", + "contests.winner_seed" + ], + [ + "games.winner_seed", + "contests.winner_seed" + ], + [ + "matches.year", + "games.year" + ], + [ + "matches.year", + "contests.year" + ], + [ + "games.year", + "contests.year" + ] + ] + }, + { + "question": "what is the name of the winner with the #most rank points# who participated in the #australian open# tournament?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "games": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "contests": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ] + }, + "linking_list": [ + [ + "most rank points", + "matches.winner_rank_points" + ], + [ + "most rank points", + "games.winner_rank_points" + ], + [ + "most rank points", + "contests.winner_rank_points" + ], + [ + "Australian Open", + "matches.tourney_name" + ], + [ + "Australian Open", + "games.tourney_name" + ], + [ + "Australian Open", + "contests.tourney_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.winner_rank_points" + ], + [ + 0, + "games.winner_rank_points" + ], + [ + 0, + "contests.winner_rank_points" + ], + [ + 1, + "matches.tourney_name" + ], + [ + 1, + "games.tourney_name" + ], + [ + 1, + "contests.tourney_name" + ] + ], + "linking_list_col": [ + [ + "matches.best_of", + "games.best_of" + ], + [ + "matches.best_of", + "contests.best_of" + ], + [ + "games.best_of", + "contests.best_of" + ], + [ + "matches.draw_size", + "games.draw_size" + ], + [ + "matches.draw_size", + "contests.draw_size" + ], + [ + "games.draw_size", + "contests.draw_size" + ], + [ + "matches.loser_age", + "games.loser_age" + ], + [ + "matches.loser_age", + "contests.loser_age" + ], + [ + "games.loser_age", + "contests.loser_age" + ], + [ + "matches.loser_entry", + "games.loser_entry" + ], + [ + "matches.loser_entry", + "contests.loser_entry" + ], + [ + "games.loser_entry", + "contests.loser_entry" + ], + [ + "matches.loser_hand", + "games.loser_hand" + ], + [ + "matches.loser_hand", + "contests.loser_hand" + ], + [ + "games.loser_hand", + "contests.loser_hand" + ], + [ + "matches.loser_ht", + "games.loser_ht" + ], + [ + "matches.loser_ht", + "contests.loser_ht" + ], + [ + "games.loser_ht", + "contests.loser_ht" + ], + [ + "matches.loser_id", + "games.loser_id" + ], + [ + "matches.loser_id", + "contests.loser_id" + ], + [ + "games.loser_id", + "contests.loser_id" + ], + [ + "matches.loser_ioc", + "games.loser_ioc" + ], + [ + "matches.loser_ioc", + "contests.loser_ioc" + ], + [ + "games.loser_ioc", + "contests.loser_ioc" + ], + [ + "matches.loser_name", + "games.loser_name" + ], + [ + "matches.loser_name", + "contests.loser_name" + ], + [ + "games.loser_name", + "contests.loser_name" + ], + [ + "matches.loser_rank", + "games.loser_rank" + ], + [ + "matches.loser_rank", + "contests.loser_rank" + ], + [ + "games.loser_rank", + "contests.loser_rank" + ], + [ + "matches.loser_rank_points", + "games.loser_rank_points" + ], + [ + "matches.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "games.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "matches.loser_seed", + "games.loser_seed" + ], + [ + "matches.loser_seed", + "contests.loser_seed" + ], + [ + "games.loser_seed", + "contests.loser_seed" + ], + [ + "matches.match_num", + "games.match_num" + ], + [ + "matches.match_num", + "contests.match_num" + ], + [ + "games.match_num", + "contests.match_num" + ], + [ + "matches.minutes", + "games.minutes" + ], + [ + "matches.minutes", + "contests.minutes" + ], + [ + "games.minutes", + "contests.minutes" + ], + [ + "matches.round", + "games.round" + ], + [ + "matches.round", + "contests.round" + ], + [ + "games.round", + "contests.round" + ], + [ + "matches.score", + "games.score" + ], + [ + "matches.score", + "contests.score" + ], + [ + "games.score", + "contests.score" + ], + [ + "matches.surface", + "games.surface" + ], + [ + "matches.surface", + "contests.surface" + ], + [ + "games.surface", + "contests.surface" + ], + [ + "matches.tourney_date", + "games.tourney_date" + ], + [ + "matches.tourney_date", + "contests.tourney_date" + ], + [ + "games.tourney_date", + "contests.tourney_date" + ], + [ + "matches.tourney_id", + "games.tourney_id" + ], + [ + "matches.tourney_id", + "contests.tourney_id" + ], + [ + "games.tourney_id", + "contests.tourney_id" + ], + [ + "matches.tourney_level", + "games.tourney_level" + ], + [ + "matches.tourney_level", + "contests.tourney_level" + ], + [ + "games.tourney_level", + "contests.tourney_level" + ], + [ + "matches.tourney_name", + "games.tourney_name" + ], + [ + "matches.tourney_name", + "contests.tourney_name" + ], + [ + "games.tourney_name", + "contests.tourney_name" + ], + [ + "matches.winner_age", + "games.winner_age" + ], + [ + "matches.winner_age", + "contests.winner_age" + ], + [ + "games.winner_age", + "contests.winner_age" + ], + [ + "matches.winner_entry", + "games.winner_entry" + ], + [ + "matches.winner_entry", + "contests.winner_entry" + ], + [ + "games.winner_entry", + "contests.winner_entry" + ], + [ + "matches.winner_hand", + "games.winner_hand" + ], + [ + "matches.winner_hand", + "contests.winner_hand" + ], + [ + "games.winner_hand", + "contests.winner_hand" + ], + [ + "matches.winner_ht", + "games.winner_ht" + ], + [ + "matches.winner_ht", + "contests.winner_ht" + ], + [ + "games.winner_ht", + "contests.winner_ht" + ], + [ + "matches.winner_id", + "games.winner_id" + ], + [ + "matches.winner_id", + "contests.winner_id" + ], + [ + "games.winner_id", + "contests.winner_id" + ], + [ + "matches.winner_ioc", + "games.winner_ioc" + ], + [ + "matches.winner_ioc", + "contests.winner_ioc" + ], + [ + "games.winner_ioc", + "contests.winner_ioc" + ], + [ + "matches.winner_name", + "games.winner_name" + ], + [ + "matches.winner_name", + "contests.winner_name" + ], + [ + "games.winner_name", + "contests.winner_name" + ], + [ + "matches.winner_rank", + "games.winner_rank" + ], + [ + "matches.winner_rank", + "contests.winner_rank" + ], + [ + "games.winner_rank", + "contests.winner_rank" + ], + [ + "matches.winner_rank_points", + "games.winner_rank_points" + ], + [ + "matches.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "games.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "matches.winner_seed", + "games.winner_seed" + ], + [ + "matches.winner_seed", + "contests.winner_seed" + ], + [ + "games.winner_seed", + "contests.winner_seed" + ], + [ + "matches.year", + "games.year" + ], + [ + "matches.year", + "contests.year" + ], + [ + "games.year", + "contests.year" + ] + ] + }, + { + "question": "find the #average ranking# for each player and their #first name# .", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "standings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "leaderboard": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "average ranking", + "rankings.ranking" + ], + [ + "average ranking", + "standings.ranking" + ], + [ + "average ranking", + "leaderboard.ranking" + ], + [ + "first name", + "players.first_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "rankings.ranking" + ], + [ + 0, + "standings.ranking" + ], + [ + 0, + "leaderboard.ranking" + ], + [ + 1, + "players.first_name" + ] + ], + "linking_list_col": [ + [ + "rankings.ranking_date", + "standings.ranking_date" + ], + [ + "rankings.ranking_date", + "leaderboard.ranking_date" + ], + [ + "standings.ranking_date", + "leaderboard.ranking_date" + ], + [ + "rankings.ranking", + "standings.ranking" + ], + [ + "rankings.ranking", + "leaderboard.ranking" + ], + [ + "standings.ranking", + "leaderboard.ranking" + ], + [ + "rankings.player_id", + "standings.player_id" + ], + [ + "rankings.player_id", + "leaderboard.player_id" + ], + [ + "standings.player_id", + "leaderboard.player_id" + ], + [ + "rankings.ranking_points", + "standings.ranking_points" + ], + [ + "rankings.ranking_points", + "leaderboard.ranking_points" + ], + [ + "standings.ranking_points", + "leaderboard.ranking_points" + ], + [ + "rankings.tours", + "standings.tours" + ], + [ + "rankings.tours", + "leaderboard.tours" + ], + [ + "standings.tours", + "leaderboard.tours" + ] + ] + }, + { + "question": "find the #total ranking points# for each player and their #first name# .", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "standings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "leaderboard": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "total ranking points", + "rankings.ranking_points" + ], + [ + "total ranking points", + "standings.ranking_points" + ], + [ + "total ranking points", + "leaderboard.ranking_points" + ], + [ + "first name", + "players.first_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "rankings.ranking_points" + ], + [ + 0, + "standings.ranking_points" + ], + [ + 0, + "leaderboard.ranking_points" + ], + [ + 1, + "players.first_name" + ] + ], + "linking_list_col": [ + [ + "rankings.ranking_date", + "standings.ranking_date" + ], + [ + "rankings.ranking_date", + "leaderboard.ranking_date" + ], + [ + "standings.ranking_date", + "leaderboard.ranking_date" + ], + [ + "rankings.ranking", + "standings.ranking" + ], + [ + "rankings.ranking", + "leaderboard.ranking" + ], + [ + "standings.ranking", + "leaderboard.ranking" + ], + [ + "rankings.player_id", + "standings.player_id" + ], + [ + "rankings.player_id", + "leaderboard.player_id" + ], + [ + "standings.player_id", + "leaderboard.player_id" + ], + [ + "rankings.ranking_points", + "standings.ranking_points" + ], + [ + "rankings.ranking_points", + "leaderboard.ranking_points" + ], + [ + "standings.ranking_points", + "leaderboard.ranking_points" + ], + [ + "rankings.tours", + "standings.tours" + ], + [ + "rankings.tours", + "leaderboard.tours" + ], + [ + "standings.tours", + "leaderboard.tours" + ] + ] + }, + { + "question": "find the #number of players for each country# .", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "athletes": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "competitors": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ] + }, + "linking_list": [ + [ + "number of players for each country", + "players.player_id" + ], + [ + "number of players for each country", + "athletes.player_id" + ], + [ + "number of players for each country", + "competitors.player_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.player_id" + ], + [ + 0, + "athletes.player_id" + ], + [ + 0, + "competitors.player_id" + ] + ], + "linking_list_col": [ + [ + "players.player_id", + "athletes.player_id" + ], + [ + "players.player_id", + "competitors.player_id" + ], + [ + "athletes.player_id", + "competitors.player_id" + ], + [ + "players.first_name", + "athletes.first_name" + ], + [ + "players.first_name", + "competitors.first_name" + ], + [ + "athletes.first_name", + "competitors.first_name" + ], + [ + "players.last_name", + "athletes.last_name" + ], + [ + "players.last_name", + "competitors.last_name" + ], + [ + "athletes.last_name", + "competitors.last_name" + ], + [ + "players.hand", + "athletes.hand" + ], + [ + "players.hand", + "competitors.hand" + ], + [ + "athletes.hand", + "competitors.hand" + ], + [ + "players.birth_date", + "athletes.birth_date" + ], + [ + "players.birth_date", + "competitors.birth_date" + ], + [ + "athletes.birth_date", + "competitors.birth_date" + ], + [ + "players.country_code", + "athletes.country_code" + ], + [ + "players.country_code", + "competitors.country_code" + ], + [ + "athletes.country_code", + "competitors.country_code" + ] + ] + }, + { + "question": "find the #total number of tours for each ranking date# .", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "standings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "leaderboard": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "total number of tours for each ranking date", + "rankings.tours" + ], + [ + "total number of tours for each ranking date", + "standings.tours" + ], + [ + "total number of tours for each ranking date", + "leaderboard.tours" + ] + ], + "linking_list_idx": [ + [ + 0, + "rankings.tours" + ], + [ + 0, + "standings.tours" + ], + [ + 0, + "leaderboard.tours" + ] + ], + "linking_list_col": [ + [ + "rankings.ranking_date", + "standings.ranking_date" + ], + [ + "rankings.ranking_date", + "leaderboard.ranking_date" + ], + [ + "standings.ranking_date", + "leaderboard.ranking_date" + ], + [ + "rankings.ranking", + "standings.ranking" + ], + [ + "rankings.ranking", + "leaderboard.ranking" + ], + [ + "standings.ranking", + "leaderboard.ranking" + ], + [ + "rankings.player_id", + "standings.player_id" + ], + [ + "rankings.player_id", + "leaderboard.player_id" + ], + [ + "standings.player_id", + "leaderboard.player_id" + ], + [ + "rankings.ranking_points", + "standings.ranking_points" + ], + [ + "rankings.ranking_points", + "leaderboard.ranking_points" + ], + [ + "standings.ranking_points", + "leaderboard.ranking_points" + ], + [ + "rankings.tours", + "standings.tours" + ], + [ + "rankings.tours", + "leaderboard.tours" + ], + [ + "standings.tours", + "leaderboard.tours" + ] + ] + }, + { + "question": "how many #total tours# were there for each ranking date?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "standings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "leaderboard": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ] + }, + "linking_list": [ + [ + "total tours", + "rankings.tours" + ], + [ + "total tours", + "standings.tours" + ], + [ + "total tours", + "leaderboard.tours" + ] + ], + "linking_list_idx": [ + [ + 0, + "rankings.tours" + ], + [ + 0, + "standings.tours" + ], + [ + 0, + "leaderboard.tours" + ] + ], + "linking_list_col": [ + [ + "rankings.ranking_date", + "standings.ranking_date" + ], + [ + "rankings.ranking_date", + "leaderboard.ranking_date" + ], + [ + "standings.ranking_date", + "leaderboard.ranking_date" + ], + [ + "rankings.ranking", + "standings.ranking" + ], + [ + "rankings.ranking", + "leaderboard.ranking" + ], + [ + "standings.ranking", + "leaderboard.ranking" + ], + [ + "rankings.player_id", + "standings.player_id" + ], + [ + "rankings.player_id", + "leaderboard.player_id" + ], + [ + "standings.player_id", + "leaderboard.player_id" + ], + [ + "rankings.ranking_points", + "standings.ranking_points" + ], + [ + "rankings.ranking_points", + "leaderboard.ranking_points" + ], + [ + "standings.ranking_points", + "leaderboard.ranking_points" + ], + [ + "rankings.tours", + "standings.tours" + ], + [ + "rankings.tours", + "leaderboard.tours" + ], + [ + "standings.tours", + "leaderboard.tours" + ] + ] + }, + { + "question": "find the #number of matches# happened in each #year# .", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "games": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "contests": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ] + }, + "linking_list": [ + [ + "number of matches", + "matches.match_num" + ], + [ + "number of matches", + "games.match_num" + ], + [ + "number of matches", + "contests.match_num" + ], + [ + "year", + "matches.year" + ], + [ + "year", + "games.year" + ], + [ + "year", + "contests.year" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.match_num" + ], + [ + 0, + "games.match_num" + ], + [ + 0, + "contests.match_num" + ], + [ + 1, + "matches.year" + ], + [ + 1, + "games.year" + ], + [ + 1, + "contests.year" + ] + ], + "linking_list_col": [ + [ + "matches.best_of", + "games.best_of" + ], + [ + "matches.best_of", + "contests.best_of" + ], + [ + "games.best_of", + "contests.best_of" + ], + [ + "matches.draw_size", + "games.draw_size" + ], + [ + "matches.draw_size", + "contests.draw_size" + ], + [ + "games.draw_size", + "contests.draw_size" + ], + [ + "matches.loser_age", + "games.loser_age" + ], + [ + "matches.loser_age", + "contests.loser_age" + ], + [ + "games.loser_age", + "contests.loser_age" + ], + [ + "matches.loser_entry", + "games.loser_entry" + ], + [ + "matches.loser_entry", + "contests.loser_entry" + ], + [ + "games.loser_entry", + "contests.loser_entry" + ], + [ + "matches.loser_hand", + "games.loser_hand" + ], + [ + "matches.loser_hand", + "contests.loser_hand" + ], + [ + "games.loser_hand", + "contests.loser_hand" + ], + [ + "matches.loser_ht", + "games.loser_ht" + ], + [ + "matches.loser_ht", + "contests.loser_ht" + ], + [ + "games.loser_ht", + "contests.loser_ht" + ], + [ + "matches.loser_id", + "games.loser_id" + ], + [ + "matches.loser_id", + "contests.loser_id" + ], + [ + "games.loser_id", + "contests.loser_id" + ], + [ + "matches.loser_ioc", + "games.loser_ioc" + ], + [ + "matches.loser_ioc", + "contests.loser_ioc" + ], + [ + "games.loser_ioc", + "contests.loser_ioc" + ], + [ + "matches.loser_name", + "games.loser_name" + ], + [ + "matches.loser_name", + "contests.loser_name" + ], + [ + "games.loser_name", + "contests.loser_name" + ], + [ + "matches.loser_rank", + "games.loser_rank" + ], + [ + "matches.loser_rank", + "contests.loser_rank" + ], + [ + "games.loser_rank", + "contests.loser_rank" + ], + [ + "matches.loser_rank_points", + "games.loser_rank_points" + ], + [ + "matches.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "games.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "matches.loser_seed", + "games.loser_seed" + ], + [ + "matches.loser_seed", + "contests.loser_seed" + ], + [ + "games.loser_seed", + "contests.loser_seed" + ], + [ + "matches.match_num", + "games.match_num" + ], + [ + "matches.match_num", + "contests.match_num" + ], + [ + "games.match_num", + "contests.match_num" + ], + [ + "matches.minutes", + "games.minutes" + ], + [ + "matches.minutes", + "contests.minutes" + ], + [ + "games.minutes", + "contests.minutes" + ], + [ + "matches.round", + "games.round" + ], + [ + "matches.round", + "contests.round" + ], + [ + "games.round", + "contests.round" + ], + [ + "matches.score", + "games.score" + ], + [ + "matches.score", + "contests.score" + ], + [ + "games.score", + "contests.score" + ], + [ + "matches.surface", + "games.surface" + ], + [ + "matches.surface", + "contests.surface" + ], + [ + "games.surface", + "contests.surface" + ], + [ + "matches.tourney_date", + "games.tourney_date" + ], + [ + "matches.tourney_date", + "contests.tourney_date" + ], + [ + "games.tourney_date", + "contests.tourney_date" + ], + [ + "matches.tourney_id", + "games.tourney_id" + ], + [ + "matches.tourney_id", + "contests.tourney_id" + ], + [ + "games.tourney_id", + "contests.tourney_id" + ], + [ + "matches.tourney_level", + "games.tourney_level" + ], + [ + "matches.tourney_level", + "contests.tourney_level" + ], + [ + "games.tourney_level", + "contests.tourney_level" + ], + [ + "matches.tourney_name", + "games.tourney_name" + ], + [ + "matches.tourney_name", + "contests.tourney_name" + ], + [ + "games.tourney_name", + "contests.tourney_name" + ], + [ + "matches.winner_age", + "games.winner_age" + ], + [ + "matches.winner_age", + "contests.winner_age" + ], + [ + "games.winner_age", + "contests.winner_age" + ], + [ + "matches.winner_entry", + "games.winner_entry" + ], + [ + "matches.winner_entry", + "contests.winner_entry" + ], + [ + "games.winner_entry", + "contests.winner_entry" + ], + [ + "matches.winner_hand", + "games.winner_hand" + ], + [ + "matches.winner_hand", + "contests.winner_hand" + ], + [ + "games.winner_hand", + "contests.winner_hand" + ], + [ + "matches.winner_ht", + "games.winner_ht" + ], + [ + "matches.winner_ht", + "contests.winner_ht" + ], + [ + "games.winner_ht", + "contests.winner_ht" + ], + [ + "matches.winner_id", + "games.winner_id" + ], + [ + "matches.winner_id", + "contests.winner_id" + ], + [ + "games.winner_id", + "contests.winner_id" + ], + [ + "matches.winner_ioc", + "games.winner_ioc" + ], + [ + "matches.winner_ioc", + "contests.winner_ioc" + ], + [ + "games.winner_ioc", + "contests.winner_ioc" + ], + [ + "matches.winner_name", + "games.winner_name" + ], + [ + "matches.winner_name", + "contests.winner_name" + ], + [ + "games.winner_name", + "contests.winner_name" + ], + [ + "matches.winner_rank", + "games.winner_rank" + ], + [ + "matches.winner_rank", + "contests.winner_rank" + ], + [ + "games.winner_rank", + "contests.winner_rank" + ], + [ + "matches.winner_rank_points", + "games.winner_rank_points" + ], + [ + "matches.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "games.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "matches.winner_seed", + "games.winner_seed" + ], + [ + "matches.winner_seed", + "contests.winner_seed" + ], + [ + "games.winner_seed", + "contests.winner_seed" + ], + [ + "matches.year", + "games.year" + ], + [ + "matches.year", + "contests.year" + ], + [ + "games.year", + "contests.year" + ] + ] + }, + { + "question": "how many #matches# were played in each year?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "games": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "contests": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ] + }, + "linking_list": [ + [ + "matches", + "matches.match_num" + ], + [ + "matches", + "games.match_num" + ], + [ + "matches", + "contests.match_num" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.match_num" + ], + [ + 0, + "games.match_num" + ], + [ + 0, + "contests.match_num" + ] + ], + "linking_list_col": [ + [ + "matches.best_of", + "games.best_of" + ], + [ + "matches.best_of", + "contests.best_of" + ], + [ + "games.best_of", + "contests.best_of" + ], + [ + "matches.draw_size", + "games.draw_size" + ], + [ + "matches.draw_size", + "contests.draw_size" + ], + [ + "games.draw_size", + "contests.draw_size" + ], + [ + "matches.loser_age", + "games.loser_age" + ], + [ + "matches.loser_age", + "contests.loser_age" + ], + [ + "games.loser_age", + "contests.loser_age" + ], + [ + "matches.loser_entry", + "games.loser_entry" + ], + [ + "matches.loser_entry", + "contests.loser_entry" + ], + [ + "games.loser_entry", + "contests.loser_entry" + ], + [ + "matches.loser_hand", + "games.loser_hand" + ], + [ + "matches.loser_hand", + "contests.loser_hand" + ], + [ + "games.loser_hand", + "contests.loser_hand" + ], + [ + "matches.loser_ht", + "games.loser_ht" + ], + [ + "matches.loser_ht", + "contests.loser_ht" + ], + [ + "games.loser_ht", + "contests.loser_ht" + ], + [ + "matches.loser_id", + "games.loser_id" + ], + [ + "matches.loser_id", + "contests.loser_id" + ], + [ + "games.loser_id", + "contests.loser_id" + ], + [ + "matches.loser_ioc", + "games.loser_ioc" + ], + [ + "matches.loser_ioc", + "contests.loser_ioc" + ], + [ + "games.loser_ioc", + "contests.loser_ioc" + ], + [ + "matches.loser_name", + "games.loser_name" + ], + [ + "matches.loser_name", + "contests.loser_name" + ], + [ + "games.loser_name", + "contests.loser_name" + ], + [ + "matches.loser_rank", + "games.loser_rank" + ], + [ + "matches.loser_rank", + "contests.loser_rank" + ], + [ + "games.loser_rank", + "contests.loser_rank" + ], + [ + "matches.loser_rank_points", + "games.loser_rank_points" + ], + [ + "matches.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "games.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "matches.loser_seed", + "games.loser_seed" + ], + [ + "matches.loser_seed", + "contests.loser_seed" + ], + [ + "games.loser_seed", + "contests.loser_seed" + ], + [ + "matches.match_num", + "games.match_num" + ], + [ + "matches.match_num", + "contests.match_num" + ], + [ + "games.match_num", + "contests.match_num" + ], + [ + "matches.minutes", + "games.minutes" + ], + [ + "matches.minutes", + "contests.minutes" + ], + [ + "games.minutes", + "contests.minutes" + ], + [ + "matches.round", + "games.round" + ], + [ + "matches.round", + "contests.round" + ], + [ + "games.round", + "contests.round" + ], + [ + "matches.score", + "games.score" + ], + [ + "matches.score", + "contests.score" + ], + [ + "games.score", + "contests.score" + ], + [ + "matches.surface", + "games.surface" + ], + [ + "matches.surface", + "contests.surface" + ], + [ + "games.surface", + "contests.surface" + ], + [ + "matches.tourney_date", + "games.tourney_date" + ], + [ + "matches.tourney_date", + "contests.tourney_date" + ], + [ + "games.tourney_date", + "contests.tourney_date" + ], + [ + "matches.tourney_id", + "games.tourney_id" + ], + [ + "matches.tourney_id", + "contests.tourney_id" + ], + [ + "games.tourney_id", + "contests.tourney_id" + ], + [ + "matches.tourney_level", + "games.tourney_level" + ], + [ + "matches.tourney_level", + "contests.tourney_level" + ], + [ + "games.tourney_level", + "contests.tourney_level" + ], + [ + "matches.tourney_name", + "games.tourney_name" + ], + [ + "matches.tourney_name", + "contests.tourney_name" + ], + [ + "games.tourney_name", + "contests.tourney_name" + ], + [ + "matches.winner_age", + "games.winner_age" + ], + [ + "matches.winner_age", + "contests.winner_age" + ], + [ + "games.winner_age", + "contests.winner_age" + ], + [ + "matches.winner_entry", + "games.winner_entry" + ], + [ + "matches.winner_entry", + "contests.winner_entry" + ], + [ + "games.winner_entry", + "contests.winner_entry" + ], + [ + "matches.winner_hand", + "games.winner_hand" + ], + [ + "matches.winner_hand", + "contests.winner_hand" + ], + [ + "games.winner_hand", + "contests.winner_hand" + ], + [ + "matches.winner_ht", + "games.winner_ht" + ], + [ + "matches.winner_ht", + "contests.winner_ht" + ], + [ + "games.winner_ht", + "contests.winner_ht" + ], + [ + "matches.winner_id", + "games.winner_id" + ], + [ + "matches.winner_id", + "contests.winner_id" + ], + [ + "games.winner_id", + "contests.winner_id" + ], + [ + "matches.winner_ioc", + "games.winner_ioc" + ], + [ + "matches.winner_ioc", + "contests.winner_ioc" + ], + [ + "games.winner_ioc", + "contests.winner_ioc" + ], + [ + "matches.winner_name", + "games.winner_name" + ], + [ + "matches.winner_name", + "contests.winner_name" + ], + [ + "games.winner_name", + "contests.winner_name" + ], + [ + "matches.winner_rank", + "games.winner_rank" + ], + [ + "matches.winner_rank", + "contests.winner_rank" + ], + [ + "games.winner_rank", + "contests.winner_rank" + ], + [ + "matches.winner_rank_points", + "games.winner_rank_points" + ], + [ + "matches.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "games.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "matches.winner_seed", + "games.winner_seed" + ], + [ + "matches.winner_seed", + "contests.winner_seed" + ], + [ + "games.winner_seed", + "contests.winner_seed" + ], + [ + "matches.year", + "games.year" + ], + [ + "matches.year", + "contests.year" + ], + [ + "games.year", + "contests.year" + ] + ] + }, + { + "question": "how many different winners both participated in the #wta championships# and were left handed?", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "games": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "contests": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ] + }, + "linking_list": [ + [ + "WTA Championships", + "matches.tourney_name" + ], + [ + "WTA Championships", + "games.tourney_name" + ], + [ + "WTA Championships", + "contests.tourney_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.tourney_name" + ], + [ + 0, + "games.tourney_name" + ], + [ + 0, + "contests.tourney_name" + ] + ], + "linking_list_col": [ + [ + "matches.best_of", + "games.best_of" + ], + [ + "matches.best_of", + "contests.best_of" + ], + [ + "games.best_of", + "contests.best_of" + ], + [ + "matches.draw_size", + "games.draw_size" + ], + [ + "matches.draw_size", + "contests.draw_size" + ], + [ + "games.draw_size", + "contests.draw_size" + ], + [ + "matches.loser_age", + "games.loser_age" + ], + [ + "matches.loser_age", + "contests.loser_age" + ], + [ + "games.loser_age", + "contests.loser_age" + ], + [ + "matches.loser_entry", + "games.loser_entry" + ], + [ + "matches.loser_entry", + "contests.loser_entry" + ], + [ + "games.loser_entry", + "contests.loser_entry" + ], + [ + "matches.loser_hand", + "games.loser_hand" + ], + [ + "matches.loser_hand", + "contests.loser_hand" + ], + [ + "games.loser_hand", + "contests.loser_hand" + ], + [ + "matches.loser_ht", + "games.loser_ht" + ], + [ + "matches.loser_ht", + "contests.loser_ht" + ], + [ + "games.loser_ht", + "contests.loser_ht" + ], + [ + "matches.loser_id", + "games.loser_id" + ], + [ + "matches.loser_id", + "contests.loser_id" + ], + [ + "games.loser_id", + "contests.loser_id" + ], + [ + "matches.loser_ioc", + "games.loser_ioc" + ], + [ + "matches.loser_ioc", + "contests.loser_ioc" + ], + [ + "games.loser_ioc", + "contests.loser_ioc" + ], + [ + "matches.loser_name", + "games.loser_name" + ], + [ + "matches.loser_name", + "contests.loser_name" + ], + [ + "games.loser_name", + "contests.loser_name" + ], + [ + "matches.loser_rank", + "games.loser_rank" + ], + [ + "matches.loser_rank", + "contests.loser_rank" + ], + [ + "games.loser_rank", + "contests.loser_rank" + ], + [ + "matches.loser_rank_points", + "games.loser_rank_points" + ], + [ + "matches.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "games.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "matches.loser_seed", + "games.loser_seed" + ], + [ + "matches.loser_seed", + "contests.loser_seed" + ], + [ + "games.loser_seed", + "contests.loser_seed" + ], + [ + "matches.match_num", + "games.match_num" + ], + [ + "matches.match_num", + "contests.match_num" + ], + [ + "games.match_num", + "contests.match_num" + ], + [ + "matches.minutes", + "games.minutes" + ], + [ + "matches.minutes", + "contests.minutes" + ], + [ + "games.minutes", + "contests.minutes" + ], + [ + "matches.round", + "games.round" + ], + [ + "matches.round", + "contests.round" + ], + [ + "games.round", + "contests.round" + ], + [ + "matches.score", + "games.score" + ], + [ + "matches.score", + "contests.score" + ], + [ + "games.score", + "contests.score" + ], + [ + "matches.surface", + "games.surface" + ], + [ + "matches.surface", + "contests.surface" + ], + [ + "games.surface", + "contests.surface" + ], + [ + "matches.tourney_date", + "games.tourney_date" + ], + [ + "matches.tourney_date", + "contests.tourney_date" + ], + [ + "games.tourney_date", + "contests.tourney_date" + ], + [ + "matches.tourney_id", + "games.tourney_id" + ], + [ + "matches.tourney_id", + "contests.tourney_id" + ], + [ + "games.tourney_id", + "contests.tourney_id" + ], + [ + "matches.tourney_level", + "games.tourney_level" + ], + [ + "matches.tourney_level", + "contests.tourney_level" + ], + [ + "games.tourney_level", + "contests.tourney_level" + ], + [ + "matches.tourney_name", + "games.tourney_name" + ], + [ + "matches.tourney_name", + "contests.tourney_name" + ], + [ + "games.tourney_name", + "contests.tourney_name" + ], + [ + "matches.winner_age", + "games.winner_age" + ], + [ + "matches.winner_age", + "contests.winner_age" + ], + [ + "games.winner_age", + "contests.winner_age" + ], + [ + "matches.winner_entry", + "games.winner_entry" + ], + [ + "matches.winner_entry", + "contests.winner_entry" + ], + [ + "games.winner_entry", + "contests.winner_entry" + ], + [ + "matches.winner_hand", + "games.winner_hand" + ], + [ + "matches.winner_hand", + "contests.winner_hand" + ], + [ + "games.winner_hand", + "contests.winner_hand" + ], + [ + "matches.winner_ht", + "games.winner_ht" + ], + [ + "matches.winner_ht", + "contests.winner_ht" + ], + [ + "games.winner_ht", + "contests.winner_ht" + ], + [ + "matches.winner_id", + "games.winner_id" + ], + [ + "matches.winner_id", + "contests.winner_id" + ], + [ + "games.winner_id", + "contests.winner_id" + ], + [ + "matches.winner_ioc", + "games.winner_ioc" + ], + [ + "matches.winner_ioc", + "contests.winner_ioc" + ], + [ + "games.winner_ioc", + "contests.winner_ioc" + ], + [ + "matches.winner_name", + "games.winner_name" + ], + [ + "matches.winner_name", + "contests.winner_name" + ], + [ + "games.winner_name", + "contests.winner_name" + ], + [ + "matches.winner_rank", + "games.winner_rank" + ], + [ + "matches.winner_rank", + "contests.winner_rank" + ], + [ + "games.winner_rank", + "contests.winner_rank" + ], + [ + "matches.winner_rank_points", + "games.winner_rank_points" + ], + [ + "matches.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "games.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "matches.winner_seed", + "games.winner_seed" + ], + [ + "matches.winner_seed", + "contests.winner_seed" + ], + [ + "games.winner_seed", + "contests.winner_seed" + ], + [ + "matches.year", + "games.year" + ], + [ + "matches.year", + "contests.year" + ], + [ + "games.year", + "contests.year" + ] + ] + }, + { + "question": "find the number of left handed winners who participated in the #wta championships# .", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "games": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "contests": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ] + }, + "linking_list": [ + [ + "WTA Championships", + "matches.tourney_name" + ], + [ + "WTA Championships", + "games.tourney_name" + ], + [ + "WTA Championships", + "contests.tourney_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "matches.tourney_name" + ], + [ + 0, + "games.tourney_name" + ], + [ + 0, + "contests.tourney_name" + ] + ], + "linking_list_col": [ + [ + "matches.best_of", + "games.best_of" + ], + [ + "matches.best_of", + "contests.best_of" + ], + [ + "games.best_of", + "contests.best_of" + ], + [ + "matches.draw_size", + "games.draw_size" + ], + [ + "matches.draw_size", + "contests.draw_size" + ], + [ + "games.draw_size", + "contests.draw_size" + ], + [ + "matches.loser_age", + "games.loser_age" + ], + [ + "matches.loser_age", + "contests.loser_age" + ], + [ + "games.loser_age", + "contests.loser_age" + ], + [ + "matches.loser_entry", + "games.loser_entry" + ], + [ + "matches.loser_entry", + "contests.loser_entry" + ], + [ + "games.loser_entry", + "contests.loser_entry" + ], + [ + "matches.loser_hand", + "games.loser_hand" + ], + [ + "matches.loser_hand", + "contests.loser_hand" + ], + [ + "games.loser_hand", + "contests.loser_hand" + ], + [ + "matches.loser_ht", + "games.loser_ht" + ], + [ + "matches.loser_ht", + "contests.loser_ht" + ], + [ + "games.loser_ht", + "contests.loser_ht" + ], + [ + "matches.loser_id", + "games.loser_id" + ], + [ + "matches.loser_id", + "contests.loser_id" + ], + [ + "games.loser_id", + "contests.loser_id" + ], + [ + "matches.loser_ioc", + "games.loser_ioc" + ], + [ + "matches.loser_ioc", + "contests.loser_ioc" + ], + [ + "games.loser_ioc", + "contests.loser_ioc" + ], + [ + "matches.loser_name", + "games.loser_name" + ], + [ + "matches.loser_name", + "contests.loser_name" + ], + [ + "games.loser_name", + "contests.loser_name" + ], + [ + "matches.loser_rank", + "games.loser_rank" + ], + [ + "matches.loser_rank", + "contests.loser_rank" + ], + [ + "games.loser_rank", + "contests.loser_rank" + ], + [ + "matches.loser_rank_points", + "games.loser_rank_points" + ], + [ + "matches.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "games.loser_rank_points", + "contests.loser_rank_points" + ], + [ + "matches.loser_seed", + "games.loser_seed" + ], + [ + "matches.loser_seed", + "contests.loser_seed" + ], + [ + "games.loser_seed", + "contests.loser_seed" + ], + [ + "matches.match_num", + "games.match_num" + ], + [ + "matches.match_num", + "contests.match_num" + ], + [ + "games.match_num", + "contests.match_num" + ], + [ + "matches.minutes", + "games.minutes" + ], + [ + "matches.minutes", + "contests.minutes" + ], + [ + "games.minutes", + "contests.minutes" + ], + [ + "matches.round", + "games.round" + ], + [ + "matches.round", + "contests.round" + ], + [ + "games.round", + "contests.round" + ], + [ + "matches.score", + "games.score" + ], + [ + "matches.score", + "contests.score" + ], + [ + "games.score", + "contests.score" + ], + [ + "matches.surface", + "games.surface" + ], + [ + "matches.surface", + "contests.surface" + ], + [ + "games.surface", + "contests.surface" + ], + [ + "matches.tourney_date", + "games.tourney_date" + ], + [ + "matches.tourney_date", + "contests.tourney_date" + ], + [ + "games.tourney_date", + "contests.tourney_date" + ], + [ + "matches.tourney_id", + "games.tourney_id" + ], + [ + "matches.tourney_id", + "contests.tourney_id" + ], + [ + "games.tourney_id", + "contests.tourney_id" + ], + [ + "matches.tourney_level", + "games.tourney_level" + ], + [ + "matches.tourney_level", + "contests.tourney_level" + ], + [ + "games.tourney_level", + "contests.tourney_level" + ], + [ + "matches.tourney_name", + "games.tourney_name" + ], + [ + "matches.tourney_name", + "contests.tourney_name" + ], + [ + "games.tourney_name", + "contests.tourney_name" + ], + [ + "matches.winner_age", + "games.winner_age" + ], + [ + "matches.winner_age", + "contests.winner_age" + ], + [ + "games.winner_age", + "contests.winner_age" + ], + [ + "matches.winner_entry", + "games.winner_entry" + ], + [ + "matches.winner_entry", + "contests.winner_entry" + ], + [ + "games.winner_entry", + "contests.winner_entry" + ], + [ + "matches.winner_hand", + "games.winner_hand" + ], + [ + "matches.winner_hand", + "contests.winner_hand" + ], + [ + "games.winner_hand", + "contests.winner_hand" + ], + [ + "matches.winner_ht", + "games.winner_ht" + ], + [ + "matches.winner_ht", + "contests.winner_ht" + ], + [ + "games.winner_ht", + "contests.winner_ht" + ], + [ + "matches.winner_id", + "games.winner_id" + ], + [ + "matches.winner_id", + "contests.winner_id" + ], + [ + "games.winner_id", + "contests.winner_id" + ], + [ + "matches.winner_ioc", + "games.winner_ioc" + ], + [ + "matches.winner_ioc", + "contests.winner_ioc" + ], + [ + "games.winner_ioc", + "contests.winner_ioc" + ], + [ + "matches.winner_name", + "games.winner_name" + ], + [ + "matches.winner_name", + "contests.winner_name" + ], + [ + "games.winner_name", + "contests.winner_name" + ], + [ + "matches.winner_rank", + "games.winner_rank" + ], + [ + "matches.winner_rank", + "contests.winner_rank" + ], + [ + "games.winner_rank", + "contests.winner_rank" + ], + [ + "matches.winner_rank_points", + "games.winner_rank_points" + ], + [ + "matches.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "games.winner_rank_points", + "contests.winner_rank_points" + ], + [ + "matches.winner_seed", + "games.winner_seed" + ], + [ + "matches.winner_seed", + "contests.winner_seed" + ], + [ + "games.winner_seed", + "contests.winner_seed" + ], + [ + "matches.year", + "games.year" + ], + [ + "matches.year", + "contests.year" + ], + [ + "games.year", + "contests.year" + ] + ] + }, + { + "question": "find the #number of players for each hand type# .", + "db_schema": { + "players": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "matches": [ + "best_of", + "draw_size", + "loser_age", + "loser_entry", + "loser_hand", + "loser_ht", + "loser_id", + "loser_ioc", + "loser_name", + "loser_rank", + "loser_rank_points", + "loser_seed", + "match_num", + "minutes", + "round", + "score", + "surface", + "tourney_date", + "tourney_id", + "tourney_level", + "tourney_name", + "winner_age", + "winner_entry", + "winner_hand", + "winner_ht", + "winner_id", + "winner_ioc", + "winner_name", + "winner_rank", + "winner_rank_points", + "winner_seed", + "year" + ], + "rankings": [ + "ranking_date", + "ranking", + "player_id", + "ranking_points", + "tours" + ], + "athletes": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ], + "competitors": [ + "player_id", + "first_name", + "last_name", + "hand", + "birth_date", + "country_code" + ] + }, + "linking_list": [ + [ + "number of players for each hand type", + "players.player_id" + ], + [ + "number of players for each hand type", + "athletes.player_id" + ], + [ + "number of players for each hand type", + "competitors.player_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "players.player_id" + ], + [ + 0, + "athletes.player_id" + ], + [ + 0, + "competitors.player_id" + ] + ], + "linking_list_col": [ + [ + "players.player_id", + "athletes.player_id" + ], + [ + "players.player_id", + "competitors.player_id" + ], + [ + "athletes.player_id", + "competitors.player_id" + ], + [ + "players.first_name", + "athletes.first_name" + ], + [ + "players.first_name", + "competitors.first_name" + ], + [ + "athletes.first_name", + "competitors.first_name" + ], + [ + "players.last_name", + "athletes.last_name" + ], + [ + "players.last_name", + "competitors.last_name" + ], + [ + "athletes.last_name", + "competitors.last_name" + ], + [ + "players.hand", + "athletes.hand" + ], + [ + "players.hand", + "competitors.hand" + ], + [ + "athletes.hand", + "competitors.hand" + ], + [ + "players.birth_date", + "athletes.birth_date" + ], + [ + "players.birth_date", + "competitors.birth_date" + ], + [ + "athletes.birth_date", + "competitors.birth_date" + ], + [ + "players.country_code", + "athletes.country_code" + ], + [ + "players.country_code", + "competitors.country_code" + ], + [ + "athletes.country_code", + "competitors.country_code" + ] + ] + }, + { + "question": "list the #name# and #tonnage# ordered by in descending alphaetical order for the names.", + "db_schema": { + "battle": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result" + ], + "ship": [ + "lost_in_battle", + "id", + "name", + "tonnage", + "ship_type", + "location", + "disposition_of_ship" + ], + "death": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured" + ], + "vessel": [ + "lost_in_battle", + "id", + "name", + "tonnage", + "ship_type", + "location", + "disposition_of_ship" + ], + "navy": [ + "lost_in_battle", + "id", + "name", + "tonnage", + "ship_type", + "location", + "disposition_of_ship" + ] + }, + "linking_list": [ + [ + "name", + "ship.name" + ], + [ + "name", + "vessel.name" + ], + [ + "name", + "navy.name" + ], + [ + "tonnage", + "ship.tonnage" + ], + [ + "tonnage", + "vessel.tonnage" + ], + [ + "tonnage", + "navy.tonnage" + ] + ], + "linking_list_idx": [ + [ + 0, + "ship.name" + ], + [ + 0, + "vessel.name" + ], + [ + 0, + "navy.name" + ], + [ + 1, + "ship.tonnage" + ], + [ + 1, + "vessel.tonnage" + ], + [ + 1, + "navy.tonnage" + ] + ], + "linking_list_col": [ + [ + "ship.lost_in_battle", + "vessel.lost_in_battle" + ], + [ + "ship.lost_in_battle", + "navy.lost_in_battle" + ], + [ + "vessel.lost_in_battle", + "navy.lost_in_battle" + ], + [ + "ship.id", + "vessel.id" + ], + [ + "ship.id", + "navy.id" + ], + [ + "vessel.id", + "navy.id" + ], + [ + "ship.name", + "vessel.name" + ], + [ + "ship.name", + "navy.name" + ], + [ + "vessel.name", + "navy.name" + ], + [ + "ship.tonnage", + "vessel.tonnage" + ], + [ + "ship.tonnage", + "navy.tonnage" + ], + [ + "vessel.tonnage", + "navy.tonnage" + ], + [ + "ship.ship_type", + "vessel.ship_type" + ], + [ + "ship.ship_type", + "navy.ship_type" + ], + [ + "vessel.ship_type", + "navy.ship_type" + ], + [ + "ship.location", + "vessel.location" + ], + [ + "ship.location", + "navy.location" + ], + [ + "vessel.location", + "navy.location" + ], + [ + "ship.disposition_of_ship", + "vessel.disposition_of_ship" + ], + [ + "ship.disposition_of_ship", + "navy.disposition_of_ship" + ], + [ + "vessel.disposition_of_ship", + "navy.disposition_of_ship" + ] + ] + }, + { + "question": "what are the #name# and results of the battles when the #bulgarian commander# is not 'boril'", + "db_schema": { + "battle": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result" + ], + "ship": [ + "lost_in_battle", + "id", + "name", + "tonnage", + "ship_type", + "location", + "disposition_of_ship" + ], + "death": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured" + ], + "warfare": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result" + ], + "conflict": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result" + ] + }, + "linking_list": [ + [ + "name", + "battle.name" + ], + [ + "name", + "warfare.name" + ], + [ + "name", + "conflict.name" + ], + [ + "bulgarian commander", + "battle.bulgarian_commander" + ], + [ + "bulgarian commander", + "warfare.bulgarian_commander" + ], + [ + "bulgarian commander", + "conflict.bulgarian_commander" + ] + ], + "linking_list_idx": [ + [ + 0, + "battle.name" + ], + [ + 0, + "warfare.name" + ], + [ + 0, + "conflict.name" + ], + [ + 1, + "battle.bulgarian_commander" + ], + [ + 1, + "warfare.bulgarian_commander" + ], + [ + 1, + "conflict.bulgarian_commander" + ] + ], + "linking_list_col": [ + [ + "battle.id", + "warfare.id" + ], + [ + "battle.id", + "conflict.id" + ], + [ + "warfare.id", + "conflict.id" + ], + [ + "battle.name", + "warfare.name" + ], + [ + "battle.name", + "conflict.name" + ], + [ + "warfare.name", + "conflict.name" + ], + [ + "battle.date", + "warfare.date" + ], + [ + "battle.date", + "conflict.date" + ], + [ + "warfare.date", + "conflict.date" + ], + [ + "battle.bulgarian_commander", + "warfare.bulgarian_commander" + ], + [ + "battle.bulgarian_commander", + "conflict.bulgarian_commander" + ], + [ + "warfare.bulgarian_commander", + "conflict.bulgarian_commander" + ], + [ + "battle.latin_commander", + "warfare.latin_commander" + ], + [ + "battle.latin_commander", + "conflict.latin_commander" + ], + [ + "warfare.latin_commander", + "conflict.latin_commander" + ], + [ + "battle.result", + "warfare.result" + ], + [ + "battle.result", + "conflict.result" + ], + [ + "warfare.result", + "conflict.result" + ] + ] + }, + { + "question": "what are the ids and names of the battles that led to more than 10 #people killed# in total.", + "db_schema": { + "battle": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result" + ], + "ship": [ + "lost_in_battle", + "id", + "name", + "tonnage", + "ship_type", + "location", + "disposition_of_ship" + ], + "death": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured" + ], + "fatality": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured" + ], + "mortality": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured" + ] + }, + "linking_list": [ + [ + "people killed", + "death.killed" + ], + [ + "people killed", + "fatality.killed" + ], + [ + "people killed", + "mortality.killed" + ] + ], + "linking_list_idx": [ + [ + 0, + "death.killed" + ], + [ + 0, + "fatality.killed" + ], + [ + 0, + "mortality.killed" + ] + ], + "linking_list_col": [ + [ + "death.caused_by_ship_id", + "fatality.caused_by_ship_id" + ], + [ + "death.caused_by_ship_id", + "mortality.caused_by_ship_id" + ], + [ + "fatality.caused_by_ship_id", + "mortality.caused_by_ship_id" + ], + [ + "death.id", + "fatality.id" + ], + [ + "death.id", + "mortality.id" + ], + [ + "fatality.id", + "mortality.id" + ], + [ + "death.note", + "fatality.note" + ], + [ + "death.note", + "mortality.note" + ], + [ + "fatality.note", + "mortality.note" + ], + [ + "death.killed", + "fatality.killed" + ], + [ + "death.killed", + "mortality.killed" + ], + [ + "fatality.killed", + "mortality.killed" + ], + [ + "death.injured", + "fatality.injured" + ], + [ + "death.injured", + "mortality.injured" + ], + [ + "fatality.injured", + "mortality.injured" + ] + ] + }, + { + "question": "what are the distinct battle names which are between #bulgarian commander# 'kaloyan' and #latin commander# 'baldwin i'?", + "db_schema": { + "battle": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result" + ], + "ship": [ + "lost_in_battle", + "id", + "name", + "tonnage", + "ship_type", + "location", + "disposition_of_ship" + ], + "death": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured" + ], + "warfare": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result" + ], + "conflict": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result" + ] + }, + "linking_list": [ + [ + "bulgarian commander", + "battle.bulgarian_commander" + ], + [ + "bulgarian commander", + "warfare.bulgarian_commander" + ], + [ + "bulgarian commander", + "conflict.bulgarian_commander" + ], + [ + "latin commander", + "battle.latin_commander" + ], + [ + "latin commander", + "warfare.latin_commander" + ], + [ + "latin commander", + "conflict.latin_commander" + ] + ], + "linking_list_idx": [ + [ + 0, + "battle.bulgarian_commander" + ], + [ + 0, + "warfare.bulgarian_commander" + ], + [ + 0, + "conflict.bulgarian_commander" + ], + [ + 1, + "battle.latin_commander" + ], + [ + 1, + "warfare.latin_commander" + ], + [ + 1, + "conflict.latin_commander" + ] + ], + "linking_list_col": [ + [ + "battle.id", + "warfare.id" + ], + [ + "battle.id", + "conflict.id" + ], + [ + "warfare.id", + "conflict.id" + ], + [ + "battle.name", + "warfare.name" + ], + [ + "battle.name", + "conflict.name" + ], + [ + "warfare.name", + "conflict.name" + ], + [ + "battle.date", + "warfare.date" + ], + [ + "battle.date", + "conflict.date" + ], + [ + "warfare.date", + "conflict.date" + ], + [ + "battle.bulgarian_commander", + "warfare.bulgarian_commander" + ], + [ + "battle.bulgarian_commander", + "conflict.bulgarian_commander" + ], + [ + "warfare.bulgarian_commander", + "conflict.bulgarian_commander" + ], + [ + "battle.latin_commander", + "warfare.latin_commander" + ], + [ + "battle.latin_commander", + "conflict.latin_commander" + ], + [ + "warfare.latin_commander", + "conflict.latin_commander" + ], + [ + "battle.result", + "warfare.result" + ], + [ + "battle.result", + "conflict.result" + ], + [ + "warfare.result", + "conflict.result" + ] + ] + }, + { + "question": "how many #battles# did not lose any ship with #tonnage# '225'?", + "db_schema": { + "battle": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result" + ], + "ship": [ + "lost_in_battle", + "id", + "name", + "tonnage", + "ship_type", + "location", + "disposition_of_ship" + ], + "death": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured" + ], + "vessel": [ + "lost_in_battle", + "id", + "name", + "tonnage", + "ship_type", + "location", + "disposition_of_ship" + ], + "navy": [ + "lost_in_battle", + "id", + "name", + "tonnage", + "ship_type", + "location", + "disposition_of_ship" + ] + }, + "linking_list": [ + [ + "battles", + "battle.id" + ], + [ + "tonnage", + "ship.tonnage" + ], + [ + "tonnage", + "vessel.tonnage" + ], + [ + "tonnage", + "navy.tonnage" + ] + ], + "linking_list_idx": [ + [ + 0, + "battle.id" + ], + [ + 1, + "ship.tonnage" + ], + [ + 1, + "vessel.tonnage" + ], + [ + 1, + "navy.tonnage" + ] + ], + "linking_list_col": [ + [ + "ship.lost_in_battle", + "vessel.lost_in_battle" + ], + [ + "ship.lost_in_battle", + "navy.lost_in_battle" + ], + [ + "vessel.lost_in_battle", + "navy.lost_in_battle" + ], + [ + "ship.id", + "vessel.id" + ], + [ + "ship.id", + "navy.id" + ], + [ + "vessel.id", + "navy.id" + ], + [ + "ship.name", + "vessel.name" + ], + [ + "ship.name", + "navy.name" + ], + [ + "vessel.name", + "navy.name" + ], + [ + "ship.tonnage", + "vessel.tonnage" + ], + [ + "ship.tonnage", + "navy.tonnage" + ], + [ + "vessel.tonnage", + "navy.tonnage" + ], + [ + "ship.ship_type", + "vessel.ship_type" + ], + [ + "ship.ship_type", + "navy.ship_type" + ], + [ + "vessel.ship_type", + "navy.ship_type" + ], + [ + "ship.location", + "vessel.location" + ], + [ + "ship.location", + "navy.location" + ], + [ + "vessel.location", + "navy.location" + ], + [ + "ship.disposition_of_ship", + "vessel.disposition_of_ship" + ], + [ + "ship.disposition_of_ship", + "navy.disposition_of_ship" + ], + [ + "vessel.disposition_of_ship", + "navy.disposition_of_ship" + ] + ] + }, + { + "question": "show names, results and bulgarian commanders of the battles with no #ships lost# in the 'english channel'.", + "db_schema": { + "battle": [ + "id", + "name", + "date", + "bulgarian_commander", + "latin_commander", + "result" + ], + "ship": [ + "lost_in_battle", + "id", + "name", + "tonnage", + "ship_type", + "location", + "disposition_of_ship" + ], + "death": [ + "caused_by_ship_id", + "id", + "note", + "killed", + "injured" + ], + "vessel": [ + "lost_in_battle", + "id", + "name", + "tonnage", + "ship_type", + "location", + "disposition_of_ship" + ], + "navy": [ + "lost_in_battle", + "id", + "name", + "tonnage", + "ship_type", + "location", + "disposition_of_ship" + ] + }, + "linking_list": [ + [ + "ships lost", + "ship.lost_in_battle" + ], + [ + "ships lost", + "vessel.lost_in_battle" + ], + [ + "ships lost", + "navy.lost_in_battle" + ] + ], + "linking_list_idx": [ + [ + 0, + "ship.lost_in_battle" + ], + [ + 0, + "vessel.lost_in_battle" + ], + [ + 0, + "navy.lost_in_battle" + ] + ], + "linking_list_col": [ + [ + "ship.lost_in_battle", + "vessel.lost_in_battle" + ], + [ + "ship.lost_in_battle", + "navy.lost_in_battle" + ], + [ + "vessel.lost_in_battle", + "navy.lost_in_battle" + ], + [ + "ship.id", + "vessel.id" + ], + [ + "ship.id", + "navy.id" + ], + [ + "vessel.id", + "navy.id" + ], + [ + "ship.name", + "vessel.name" + ], + [ + "ship.name", + "navy.name" + ], + [ + "vessel.name", + "navy.name" + ], + [ + "ship.tonnage", + "vessel.tonnage" + ], + [ + "ship.tonnage", + "navy.tonnage" + ], + [ + "vessel.tonnage", + "navy.tonnage" + ], + [ + "ship.ship_type", + "vessel.ship_type" + ], + [ + "ship.ship_type", + "navy.ship_type" + ], + [ + "vessel.ship_type", + "navy.ship_type" + ], + [ + "ship.location", + "vessel.location" + ], + [ + "ship.location", + "navy.location" + ], + [ + "vessel.location", + "navy.location" + ], + [ + "ship.disposition_of_ship", + "vessel.disposition_of_ship" + ], + [ + "ship.disposition_of_ship", + "navy.disposition_of_ship" + ], + [ + "vessel.disposition_of_ship", + "navy.disposition_of_ship" + ] + ] + }, + { + "question": "how is the #math course# described?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "Subjects": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "Modules": [ + "course_id", + "course_name", + "course_description", + "other_details" + ] + }, + "linking_list": [ + [ + "math course", + "courses.course_name" + ], + [ + "math course", + "Subjects.course_name" + ], + [ + "math course", + "Modules.course_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "courses.course_name" + ], + [ + 0, + "Subjects.course_name" + ], + [ + 0, + "Modules.course_name" + ] + ], + "linking_list_col": [ + [ + "courses.course_id", + "subjects.course_id" + ], + [ + "courses.course_id", + "modules.course_id" + ], + [ + "subjects.course_id", + "modules.course_id" + ], + [ + "courses.course_name", + "subjects.course_name" + ], + [ + "courses.course_name", + "modules.course_name" + ], + [ + "subjects.course_name", + "modules.course_name" + ], + [ + "courses.course_description", + "subjects.course_description" + ], + [ + "courses.course_description", + "modules.course_description" + ], + [ + "subjects.course_description", + "modules.course_description" + ], + [ + "courses.other_details", + "subjects.other_details" + ], + [ + "courses.other_details", + "modules.other_details" + ], + [ + "subjects.other_details", + "modules.other_details" + ] + ] + }, + { + "question": "what are the descriptions for all the #math# courses?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "Subjects": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "Modules": [ + "course_id", + "course_name", + "course_description", + "other_details" + ] + }, + "linking_list": [ + [ + "math", + "courses.course_name" + ], + [ + "math", + "Subjects.course_name" + ], + [ + "math", + "Modules.course_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "courses.course_name" + ], + [ + 0, + "Subjects.course_name" + ], + [ + 0, + "Modules.course_name" + ] + ], + "linking_list_col": [ + [ + "courses.course_id", + "subjects.course_id" + ], + [ + "courses.course_id", + "modules.course_id" + ], + [ + "subjects.course_id", + "modules.course_id" + ], + [ + "courses.course_name", + "subjects.course_name" + ], + [ + "courses.course_name", + "modules.course_name" + ], + [ + "subjects.course_name", + "modules.course_name" + ], + [ + "courses.course_description", + "subjects.course_description" + ], + [ + "courses.course_description", + "modules.course_description" + ], + [ + "subjects.course_description", + "modules.course_description" + ], + [ + "courses.other_details", + "subjects.other_details" + ], + [ + "courses.other_details", + "modules.other_details" + ], + [ + "subjects.other_details", + "modules.other_details" + ] + ] + }, + { + "question": "what is the #zip code# of the address in the #city# port chelsea?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "Locations": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "Residences": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ] + }, + "linking_list": [ + [ + "zip code", + "addresses.zip_postcode" + ], + [ + "zip code", + "Locations.zip_postcode" + ], + [ + "zip code", + "Residences.zip_postcode" + ], + [ + "city", + "addresses.city" + ], + [ + "city", + "Locations.city" + ], + [ + "city", + "Residences.city" + ] + ], + "linking_list_idx": [ + [ + 0, + "addresses.zip_postcode" + ], + [ + 0, + "Locations.zip_postcode" + ], + [ + 0, + "Residences.zip_postcode" + ], + [ + 1, + "addresses.city" + ], + [ + 1, + "Locations.city" + ], + [ + 1, + "Residences.city" + ] + ], + "linking_list_col": [ + [ + "addresses.address_id", + "locations.address_id" + ], + [ + "addresses.address_id", + "residences.address_id" + ], + [ + "locations.address_id", + "residences.address_id" + ], + [ + "addresses.line_1", + "locations.line_1" + ], + [ + "addresses.line_1", + "residences.line_1" + ], + [ + "locations.line_1", + "residences.line_1" + ], + [ + "addresses.line_2", + "locations.line_2" + ], + [ + "addresses.line_2", + "residences.line_2" + ], + [ + "locations.line_2", + "residences.line_2" + ], + [ + "addresses.line_3", + "locations.line_3" + ], + [ + "addresses.line_3", + "residences.line_3" + ], + [ + "locations.line_3", + "residences.line_3" + ], + [ + "addresses.city", + "locations.city" + ], + [ + "addresses.city", + "residences.city" + ], + [ + "locations.city", + "residences.city" + ], + [ + "addresses.zip_postcode", + "locations.zip_postcode" + ], + [ + "addresses.zip_postcode", + "residences.zip_postcode" + ], + [ + "locations.zip_postcode", + "residences.zip_postcode" + ], + [ + "addresses.state_province_county", + "locations.state_province_county" + ], + [ + "addresses.state_province_county", + "residences.state_province_county" + ], + [ + "locations.state_province_county", + "residences.state_province_county" + ], + [ + "addresses.country", + "locations.country" + ], + [ + "addresses.country", + "residences.country" + ], + [ + "locations.country", + "residences.country" + ], + [ + "addresses.other_address_details", + "locations.other_address_details" + ], + [ + "addresses.other_address_details", + "residences.other_address_details" + ], + [ + "locations.other_address_details", + "residences.other_address_details" + ] + ] + }, + { + "question": "how many #degrees# does the #engineering department# offer?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "Majors": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "Academic_Programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ] + }, + "linking_list": [ + [ + "degrees", + "degree_programs.degree_program_id" + ], + [ + "degrees", + "Majors.degree_program_id" + ], + [ + "degrees", + "Academic_Programs.degree_program_id" + ], + [ + "engineering department", + "departments.department_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "degree_programs.degree_program_id" + ], + [ + 0, + "Majors.degree_program_id" + ], + [ + 0, + "Academic_Programs.degree_program_id" + ], + [ + 1, + "departments.department_name" + ] + ], + "linking_list_col": [ + [ + "degree_programs.degree_program_id", + "majors.degree_program_id" + ], + [ + "degree_programs.degree_program_id", + "academic_programs.degree_program_id" + ], + [ + "majors.degree_program_id", + "academic_programs.degree_program_id" + ], + [ + "degree_programs.department_id", + "majors.department_id" + ], + [ + "degree_programs.department_id", + "academic_programs.department_id" + ], + [ + "majors.department_id", + "academic_programs.department_id" + ], + [ + "degree_programs.degree_summary_name", + "majors.degree_summary_name" + ], + [ + "degree_programs.degree_summary_name", + "academic_programs.degree_summary_name" + ], + [ + "majors.degree_summary_name", + "academic_programs.degree_summary_name" + ], + [ + "degree_programs.degree_summary_description", + "majors.degree_summary_description" + ], + [ + "degree_programs.degree_summary_description", + "academic_programs.degree_summary_description" + ], + [ + "majors.degree_summary_description", + "academic_programs.degree_summary_description" + ], + [ + "degree_programs.other_details", + "majors.other_details" + ], + [ + "degree_programs.other_details", + "academic_programs.other_details" + ], + [ + "majors.other_details", + "academic_programs.other_details" + ] + ] + }, + { + "question": "list the #section_name# in reversed lexicographical order.", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "Classes": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "Sessions": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ] + }, + "linking_list": [ + [ + "section_name", + "sections.section_name" + ], + [ + "section_name", + "Classes.section_name" + ], + [ + "section_name", + "Sessions.section_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "sections.section_name" + ], + [ + 0, + "Classes.section_name" + ], + [ + 0, + "Sessions.section_name" + ] + ], + "linking_list_col": [ + [ + "sections.section_id", + "classes.section_id" + ], + [ + "sections.section_id", + "sessions.section_id" + ], + [ + "classes.section_id", + "sessions.section_id" + ], + [ + "sections.course_id", + "classes.course_id" + ], + [ + "sections.course_id", + "sessions.course_id" + ], + [ + "classes.course_id", + "sessions.course_id" + ], + [ + "sections.section_name", + "classes.section_name" + ], + [ + "sections.section_name", + "sessions.section_name" + ], + [ + "classes.section_name", + "sessions.section_name" + ], + [ + "sections.section_description", + "classes.section_description" + ], + [ + "sections.section_description", + "sessions.section_description" + ], + [ + "classes.section_description", + "sessions.section_description" + ], + [ + "sections.other_details", + "classes.other_details" + ], + [ + "sections.other_details", + "sessions.other_details" + ], + [ + "classes.other_details", + "sessions.other_details" + ] + ] + }, + { + "question": "what is the #department description# for the one whose #name# has the word computer?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "faculties": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "schools": [ + "department_id", + "department_name", + "department_description", + "other_details" + ] + }, + "linking_list": [ + [ + "department description", + "departments.department_description" + ], + [ + "department description", + "faculties.department_description" + ], + [ + "department description", + "schools.department_description" + ], + [ + "name", + "departments.department_name" + ], + [ + "name", + "faculties.department_name" + ], + [ + "name", + "schools.department_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "departments.department_description" + ], + [ + 0, + "faculties.department_description" + ], + [ + 0, + "schools.department_description" + ], + [ + 1, + "departments.department_name" + ], + [ + 1, + "faculties.department_name" + ], + [ + 1, + "schools.department_name" + ] + ], + "linking_list_col": [ + [ + "departments.department_id", + "faculties.department_id" + ], + [ + "departments.department_id", + "schools.department_id" + ], + [ + "faculties.department_id", + "schools.department_id" + ], + [ + "departments.department_name", + "faculties.department_name" + ], + [ + "departments.department_name", + "schools.department_name" + ], + [ + "faculties.department_name", + "schools.department_name" + ], + [ + "departments.department_description", + "faculties.department_description" + ], + [ + "departments.department_description", + "schools.department_description" + ], + [ + "faculties.department_description", + "schools.department_description" + ], + [ + "departments.other_details", + "faculties.other_details" + ], + [ + "departments.other_details", + "schools.other_details" + ], + [ + "faculties.other_details", + "schools.other_details" + ] + ] + }, + { + "question": "which student has enrolled for the most times in any program? list the id, #first name# , #middle name# , #last name# , the #number of enrollments# and #student id# .", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "Student_Registration": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "Enrolment_Tracking": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ] + }, + "linking_list": [ + [ + "first name", + "students.first_name" + ], + [ + "middle name", + "students.middle_name" + ], + [ + "last name", + "students.last_name" + ], + [ + "number of enrollments", + "student_enrolment.student_enrolment_id" + ], + [ + "number of enrollments", + "Student_Registration.student_enrolment_id" + ], + [ + "number of enrollments", + "Enrolment_Tracking.student_enrolment_id" + ], + [ + "student id", + "students.student_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.first_name" + ], + [ + 1, + "students.middle_name" + ], + [ + 2, + "students.last_name" + ], + [ + 3, + "student_enrolment.student_enrolment_id" + ], + [ + 3, + "Student_Registration.student_enrolment_id" + ], + [ + 3, + "Enrolment_Tracking.student_enrolment_id" + ], + [ + 4, + "students.student_id" + ] + ], + "linking_list_col": [ + [ + "student_enrolment.student_enrolment_id", + "student_registration.student_enrolment_id" + ], + [ + "student_enrolment.student_enrolment_id", + "enrolment_tracking.student_enrolment_id" + ], + [ + "student_registration.student_enrolment_id", + "enrolment_tracking.student_enrolment_id" + ], + [ + "student_enrolment.degree_program_id", + "student_registration.degree_program_id" + ], + [ + "student_enrolment.degree_program_id", + "enrolment_tracking.degree_program_id" + ], + [ + "student_registration.degree_program_id", + "enrolment_tracking.degree_program_id" + ], + [ + "student_enrolment.semester_id", + "student_registration.semester_id" + ], + [ + "student_enrolment.semester_id", + "enrolment_tracking.semester_id" + ], + [ + "student_registration.semester_id", + "enrolment_tracking.semester_id" + ], + [ + "student_enrolment.student_id", + "student_registration.student_id" + ], + [ + "student_enrolment.student_id", + "enrolment_tracking.student_id" + ], + [ + "student_registration.student_id", + "enrolment_tracking.student_id" + ], + [ + "student_enrolment.other_details", + "student_registration.other_details" + ], + [ + "student_enrolment.other_details", + "enrolment_tracking.other_details" + ], + [ + "student_registration.other_details", + "enrolment_tracking.other_details" + ] + ] + }, + { + "question": "what is the first, middle, and #last name# , along with the id and #number of enrollments# , for the student who enrolled the most in any program?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "Student_Registration": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "Enrolment_Tracking": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ] + }, + "linking_list": [ + [ + "last name", + "students.last_name" + ], + [ + "number of enrollments", + "student_enrolment.student_enrolment_id" + ], + [ + "number of enrollments", + "Student_Registration.student_enrolment_id" + ], + [ + "number of enrollments", + "Enrolment_Tracking.student_enrolment_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.last_name" + ], + [ + 1, + "student_enrolment.student_enrolment_id" + ], + [ + 1, + "Student_Registration.student_enrolment_id" + ], + [ + 1, + "Enrolment_Tracking.student_enrolment_id" + ] + ], + "linking_list_col": [ + [ + "student_enrolment.student_enrolment_id", + "student_registration.student_enrolment_id" + ], + [ + "student_enrolment.student_enrolment_id", + "enrolment_tracking.student_enrolment_id" + ], + [ + "student_registration.student_enrolment_id", + "enrolment_tracking.student_enrolment_id" + ], + [ + "student_enrolment.degree_program_id", + "student_registration.degree_program_id" + ], + [ + "student_enrolment.degree_program_id", + "enrolment_tracking.degree_program_id" + ], + [ + "student_registration.degree_program_id", + "enrolment_tracking.degree_program_id" + ], + [ + "student_enrolment.semester_id", + "student_registration.semester_id" + ], + [ + "student_enrolment.semester_id", + "enrolment_tracking.semester_id" + ], + [ + "student_registration.semester_id", + "enrolment_tracking.semester_id" + ], + [ + "student_enrolment.student_id", + "student_registration.student_id" + ], + [ + "student_enrolment.student_id", + "enrolment_tracking.student_id" + ], + [ + "student_registration.student_id", + "enrolment_tracking.student_id" + ], + [ + "student_enrolment.other_details", + "student_registration.other_details" + ], + [ + "student_enrolment.other_details", + "enrolment_tracking.other_details" + ], + [ + "student_registration.other_details", + "enrolment_tracking.other_details" + ] + ] + }, + { + "question": "what is the #phone number# of the man with the #first name# timmothy and the #last name# ward?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "Learners": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "Pupils": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ] + }, + "linking_list": [ + [ + "phone number", + "students.cell_mobile_number" + ], + [ + "phone number", + "Learners.cell_mobile_number" + ], + [ + "phone number", + "Pupils.cell_mobile_number" + ], + [ + "first name", + "students.first_name" + ], + [ + "first name", + "Learners.first_name" + ], + [ + "first name", + "Pupils.first_name" + ], + [ + "last name", + "students.last_name" + ], + [ + "last name", + "Learners.last_name" + ], + [ + "last name", + "Pupils.last_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.cell_mobile_number" + ], + [ + 0, + "Learners.cell_mobile_number" + ], + [ + 0, + "Pupils.cell_mobile_number" + ], + [ + 1, + "students.first_name" + ], + [ + 1, + "Learners.first_name" + ], + [ + 1, + "Pupils.first_name" + ], + [ + 2, + "students.last_name" + ], + [ + 2, + "Learners.last_name" + ], + [ + 2, + "Pupils.last_name" + ] + ], + "linking_list_col": [ + [ + "students.student_id", + "learners.student_id" + ], + [ + "students.student_id", + "pupils.student_id" + ], + [ + "learners.student_id", + "pupils.student_id" + ], + [ + "students.current_address_id", + "learners.current_address_id" + ], + [ + "students.current_address_id", + "pupils.current_address_id" + ], + [ + "learners.current_address_id", + "pupils.current_address_id" + ], + [ + "students.permanent_address_id", + "learners.permanent_address_id" + ], + [ + "students.permanent_address_id", + "pupils.permanent_address_id" + ], + [ + "learners.permanent_address_id", + "pupils.permanent_address_id" + ], + [ + "students.first_name", + "learners.first_name" + ], + [ + "students.first_name", + "pupils.first_name" + ], + [ + "learners.first_name", + "pupils.first_name" + ], + [ + "students.middle_name", + "learners.middle_name" + ], + [ + "students.middle_name", + "pupils.middle_name" + ], + [ + "learners.middle_name", + "pupils.middle_name" + ], + [ + "students.last_name", + "learners.last_name" + ], + [ + "students.last_name", + "pupils.last_name" + ], + [ + "learners.last_name", + "pupils.last_name" + ], + [ + "students.cell_mobile_number", + "learners.cell_mobile_number" + ], + [ + "students.cell_mobile_number", + "pupils.cell_mobile_number" + ], + [ + "learners.cell_mobile_number", + "pupils.cell_mobile_number" + ], + [ + "students.email_address", + "learners.email_address" + ], + [ + "students.email_address", + "pupils.email_address" + ], + [ + "learners.email_address", + "pupils.email_address" + ], + [ + "students.ssn", + "learners.ssn" + ], + [ + "students.ssn", + "pupils.ssn" + ], + [ + "learners.ssn", + "pupils.ssn" + ], + [ + "students.date_first_registered", + "learners.date_first_registered" + ], + [ + "students.date_first_registered", + "pupils.date_first_registered" + ], + [ + "learners.date_first_registered", + "pupils.date_first_registered" + ], + [ + "students.date_left", + "learners.date_left" + ], + [ + "students.date_left", + "pupils.date_left" + ], + [ + "learners.date_left", + "pupils.date_left" + ], + [ + "students.other_student_details", + "learners.other_student_details" + ], + [ + "students.other_student_details", + "pupils.other_student_details" + ], + [ + "learners.other_student_details", + "pupils.other_student_details" + ] + ] + }, + { + "question": "who is the first student to register? list the #first name# , #middle name# and #last name# .", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "Learners": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "Pupils": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ] + }, + "linking_list": [ + [ + "first name", + "students.first_name" + ], + [ + "first name", + "Learners.first_name" + ], + [ + "first name", + "Pupils.first_name" + ], + [ + "middle name", + "students.middle_name" + ], + [ + "middle name", + "Learners.middle_name" + ], + [ + "middle name", + "Pupils.middle_name" + ], + [ + "last name", + "students.last_name" + ], + [ + "last name", + "Learners.last_name" + ], + [ + "last name", + "Pupils.last_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.first_name" + ], + [ + 0, + "Learners.first_name" + ], + [ + 0, + "Pupils.first_name" + ], + [ + 1, + "students.middle_name" + ], + [ + 1, + "Learners.middle_name" + ], + [ + 1, + "Pupils.middle_name" + ], + [ + 2, + "students.last_name" + ], + [ + 2, + "Learners.last_name" + ], + [ + 2, + "Pupils.last_name" + ] + ], + "linking_list_col": [ + [ + "students.student_id", + "learners.student_id" + ], + [ + "students.student_id", + "pupils.student_id" + ], + [ + "learners.student_id", + "pupils.student_id" + ], + [ + "students.current_address_id", + "learners.current_address_id" + ], + [ + "students.current_address_id", + "pupils.current_address_id" + ], + [ + "learners.current_address_id", + "pupils.current_address_id" + ], + [ + "students.permanent_address_id", + "learners.permanent_address_id" + ], + [ + "students.permanent_address_id", + "pupils.permanent_address_id" + ], + [ + "learners.permanent_address_id", + "pupils.permanent_address_id" + ], + [ + "students.first_name", + "learners.first_name" + ], + [ + "students.first_name", + "pupils.first_name" + ], + [ + "learners.first_name", + "pupils.first_name" + ], + [ + "students.middle_name", + "learners.middle_name" + ], + [ + "students.middle_name", + "pupils.middle_name" + ], + [ + "learners.middle_name", + "pupils.middle_name" + ], + [ + "students.last_name", + "learners.last_name" + ], + [ + "students.last_name", + "pupils.last_name" + ], + [ + "learners.last_name", + "pupils.last_name" + ], + [ + "students.cell_mobile_number", + "learners.cell_mobile_number" + ], + [ + "students.cell_mobile_number", + "pupils.cell_mobile_number" + ], + [ + "learners.cell_mobile_number", + "pupils.cell_mobile_number" + ], + [ + "students.email_address", + "learners.email_address" + ], + [ + "students.email_address", + "pupils.email_address" + ], + [ + "learners.email_address", + "pupils.email_address" + ], + [ + "students.ssn", + "learners.ssn" + ], + [ + "students.ssn", + "pupils.ssn" + ], + [ + "learners.ssn", + "pupils.ssn" + ], + [ + "students.date_first_registered", + "learners.date_first_registered" + ], + [ + "students.date_first_registered", + "pupils.date_first_registered" + ], + [ + "learners.date_first_registered", + "pupils.date_first_registered" + ], + [ + "students.date_left", + "learners.date_left" + ], + [ + "students.date_left", + "pupils.date_left" + ], + [ + "learners.date_left", + "pupils.date_left" + ], + [ + "students.other_student_details", + "learners.other_student_details" + ], + [ + "students.other_student_details", + "pupils.other_student_details" + ], + [ + "learners.other_student_details", + "pupils.other_student_details" + ] + ] + }, + { + "question": "what is the first, middle, and #last name# of the first student to register?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "Learners": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "Pupils": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ] + }, + "linking_list": [ + [ + "last name", + "students.last_name" + ], + [ + "last name", + "Learners.last_name" + ], + [ + "last name", + "Pupils.last_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.last_name" + ], + [ + 0, + "Learners.last_name" + ], + [ + 0, + "Pupils.last_name" + ] + ], + "linking_list_col": [ + [ + "students.student_id", + "learners.student_id" + ], + [ + "students.student_id", + "pupils.student_id" + ], + [ + "learners.student_id", + "pupils.student_id" + ], + [ + "students.current_address_id", + "learners.current_address_id" + ], + [ + "students.current_address_id", + "pupils.current_address_id" + ], + [ + "learners.current_address_id", + "pupils.current_address_id" + ], + [ + "students.permanent_address_id", + "learners.permanent_address_id" + ], + [ + "students.permanent_address_id", + "pupils.permanent_address_id" + ], + [ + "learners.permanent_address_id", + "pupils.permanent_address_id" + ], + [ + "students.first_name", + "learners.first_name" + ], + [ + "students.first_name", + "pupils.first_name" + ], + [ + "learners.first_name", + "pupils.first_name" + ], + [ + "students.middle_name", + "learners.middle_name" + ], + [ + "students.middle_name", + "pupils.middle_name" + ], + [ + "learners.middle_name", + "pupils.middle_name" + ], + [ + "students.last_name", + "learners.last_name" + ], + [ + "students.last_name", + "pupils.last_name" + ], + [ + "learners.last_name", + "pupils.last_name" + ], + [ + "students.cell_mobile_number", + "learners.cell_mobile_number" + ], + [ + "students.cell_mobile_number", + "pupils.cell_mobile_number" + ], + [ + "learners.cell_mobile_number", + "pupils.cell_mobile_number" + ], + [ + "students.email_address", + "learners.email_address" + ], + [ + "students.email_address", + "pupils.email_address" + ], + [ + "learners.email_address", + "pupils.email_address" + ], + [ + "students.ssn", + "learners.ssn" + ], + [ + "students.ssn", + "pupils.ssn" + ], + [ + "learners.ssn", + "pupils.ssn" + ], + [ + "students.date_first_registered", + "learners.date_first_registered" + ], + [ + "students.date_first_registered", + "pupils.date_first_registered" + ], + [ + "learners.date_first_registered", + "pupils.date_first_registered" + ], + [ + "students.date_left", + "learners.date_left" + ], + [ + "students.date_left", + "pupils.date_left" + ], + [ + "learners.date_left", + "pupils.date_left" + ], + [ + "students.other_student_details", + "learners.other_student_details" + ], + [ + "students.other_student_details", + "pupils.other_student_details" + ], + [ + "learners.other_student_details", + "pupils.other_student_details" + ] + ] + }, + { + "question": "who is the earliest graduate of the school? list the #first name# , #middle name# and #last name# .", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "Learners": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "Pupils": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ] + }, + "linking_list": [ + [ + "first name", + "students.first_name" + ], + [ + "first name", + "Learners.first_name" + ], + [ + "first name", + "Pupils.first_name" + ], + [ + "middle name", + "students.middle_name" + ], + [ + "middle name", + "Learners.middle_name" + ], + [ + "middle name", + "Pupils.middle_name" + ], + [ + "last name", + "students.last_name" + ], + [ + "last name", + "Learners.last_name" + ], + [ + "last name", + "Pupils.last_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.first_name" + ], + [ + 0, + "Learners.first_name" + ], + [ + 0, + "Pupils.first_name" + ], + [ + 1, + "students.middle_name" + ], + [ + 1, + "Learners.middle_name" + ], + [ + 1, + "Pupils.middle_name" + ], + [ + 2, + "students.last_name" + ], + [ + 2, + "Learners.last_name" + ], + [ + 2, + "Pupils.last_name" + ] + ], + "linking_list_col": [ + [ + "students.student_id", + "learners.student_id" + ], + [ + "students.student_id", + "pupils.student_id" + ], + [ + "learners.student_id", + "pupils.student_id" + ], + [ + "students.current_address_id", + "learners.current_address_id" + ], + [ + "students.current_address_id", + "pupils.current_address_id" + ], + [ + "learners.current_address_id", + "pupils.current_address_id" + ], + [ + "students.permanent_address_id", + "learners.permanent_address_id" + ], + [ + "students.permanent_address_id", + "pupils.permanent_address_id" + ], + [ + "learners.permanent_address_id", + "pupils.permanent_address_id" + ], + [ + "students.first_name", + "learners.first_name" + ], + [ + "students.first_name", + "pupils.first_name" + ], + [ + "learners.first_name", + "pupils.first_name" + ], + [ + "students.middle_name", + "learners.middle_name" + ], + [ + "students.middle_name", + "pupils.middle_name" + ], + [ + "learners.middle_name", + "pupils.middle_name" + ], + [ + "students.last_name", + "learners.last_name" + ], + [ + "students.last_name", + "pupils.last_name" + ], + [ + "learners.last_name", + "pupils.last_name" + ], + [ + "students.cell_mobile_number", + "learners.cell_mobile_number" + ], + [ + "students.cell_mobile_number", + "pupils.cell_mobile_number" + ], + [ + "learners.cell_mobile_number", + "pupils.cell_mobile_number" + ], + [ + "students.email_address", + "learners.email_address" + ], + [ + "students.email_address", + "pupils.email_address" + ], + [ + "learners.email_address", + "pupils.email_address" + ], + [ + "students.ssn", + "learners.ssn" + ], + [ + "students.ssn", + "pupils.ssn" + ], + [ + "learners.ssn", + "pupils.ssn" + ], + [ + "students.date_first_registered", + "learners.date_first_registered" + ], + [ + "students.date_first_registered", + "pupils.date_first_registered" + ], + [ + "learners.date_first_registered", + "pupils.date_first_registered" + ], + [ + "students.date_left", + "learners.date_left" + ], + [ + "students.date_left", + "pupils.date_left" + ], + [ + "learners.date_left", + "pupils.date_left" + ], + [ + "students.other_student_details", + "learners.other_student_details" + ], + [ + "students.other_student_details", + "pupils.other_student_details" + ], + [ + "learners.other_student_details", + "pupils.other_student_details" + ] + ] + }, + { + "question": "what is the first, middle, and #last name# of the earliest school graduate?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "Learners": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "Pupils": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ] + }, + "linking_list": [ + [ + "last name", + "students.last_name" + ], + [ + "last name", + "Learners.last_name" + ], + [ + "last name", + "Pupils.last_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.last_name" + ], + [ + 0, + "Learners.last_name" + ], + [ + 0, + "Pupils.last_name" + ] + ], + "linking_list_col": [ + [ + "students.student_id", + "learners.student_id" + ], + [ + "students.student_id", + "pupils.student_id" + ], + [ + "learners.student_id", + "pupils.student_id" + ], + [ + "students.current_address_id", + "learners.current_address_id" + ], + [ + "students.current_address_id", + "pupils.current_address_id" + ], + [ + "learners.current_address_id", + "pupils.current_address_id" + ], + [ + "students.permanent_address_id", + "learners.permanent_address_id" + ], + [ + "students.permanent_address_id", + "pupils.permanent_address_id" + ], + [ + "learners.permanent_address_id", + "pupils.permanent_address_id" + ], + [ + "students.first_name", + "learners.first_name" + ], + [ + "students.first_name", + "pupils.first_name" + ], + [ + "learners.first_name", + "pupils.first_name" + ], + [ + "students.middle_name", + "learners.middle_name" + ], + [ + "students.middle_name", + "pupils.middle_name" + ], + [ + "learners.middle_name", + "pupils.middle_name" + ], + [ + "students.last_name", + "learners.last_name" + ], + [ + "students.last_name", + "pupils.last_name" + ], + [ + "learners.last_name", + "pupils.last_name" + ], + [ + "students.cell_mobile_number", + "learners.cell_mobile_number" + ], + [ + "students.cell_mobile_number", + "pupils.cell_mobile_number" + ], + [ + "learners.cell_mobile_number", + "pupils.cell_mobile_number" + ], + [ + "students.email_address", + "learners.email_address" + ], + [ + "students.email_address", + "pupils.email_address" + ], + [ + "learners.email_address", + "pupils.email_address" + ], + [ + "students.ssn", + "learners.ssn" + ], + [ + "students.ssn", + "pupils.ssn" + ], + [ + "learners.ssn", + "pupils.ssn" + ], + [ + "students.date_first_registered", + "learners.date_first_registered" + ], + [ + "students.date_first_registered", + "pupils.date_first_registered" + ], + [ + "learners.date_first_registered", + "pupils.date_first_registered" + ], + [ + "students.date_left", + "learners.date_left" + ], + [ + "students.date_left", + "pupils.date_left" + ], + [ + "learners.date_left", + "pupils.date_left" + ], + [ + "students.other_student_details", + "learners.other_student_details" + ], + [ + "students.other_student_details", + "pupils.other_student_details" + ], + [ + "learners.other_student_details", + "pupils.other_student_details" + ] + ] + }, + { + "question": "whose permanent address is different from his or her current address? list his or her #first name# .", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "Learners": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "Pupils": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ] + }, + "linking_list": [ + [ + "first name", + "students.first_name" + ], + [ + "first name", + "Learners.first_name" + ], + [ + "first name", + "Pupils.first_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.first_name" + ], + [ + 0, + "Learners.first_name" + ], + [ + 0, + "Pupils.first_name" + ] + ], + "linking_list_col": [ + [ + "students.student_id", + "learners.student_id" + ], + [ + "students.student_id", + "pupils.student_id" + ], + [ + "learners.student_id", + "pupils.student_id" + ], + [ + "students.current_address_id", + "learners.current_address_id" + ], + [ + "students.current_address_id", + "pupils.current_address_id" + ], + [ + "learners.current_address_id", + "pupils.current_address_id" + ], + [ + "students.permanent_address_id", + "learners.permanent_address_id" + ], + [ + "students.permanent_address_id", + "pupils.permanent_address_id" + ], + [ + "learners.permanent_address_id", + "pupils.permanent_address_id" + ], + [ + "students.first_name", + "learners.first_name" + ], + [ + "students.first_name", + "pupils.first_name" + ], + [ + "learners.first_name", + "pupils.first_name" + ], + [ + "students.middle_name", + "learners.middle_name" + ], + [ + "students.middle_name", + "pupils.middle_name" + ], + [ + "learners.middle_name", + "pupils.middle_name" + ], + [ + "students.last_name", + "learners.last_name" + ], + [ + "students.last_name", + "pupils.last_name" + ], + [ + "learners.last_name", + "pupils.last_name" + ], + [ + "students.cell_mobile_number", + "learners.cell_mobile_number" + ], + [ + "students.cell_mobile_number", + "pupils.cell_mobile_number" + ], + [ + "learners.cell_mobile_number", + "pupils.cell_mobile_number" + ], + [ + "students.email_address", + "learners.email_address" + ], + [ + "students.email_address", + "pupils.email_address" + ], + [ + "learners.email_address", + "pupils.email_address" + ], + [ + "students.ssn", + "learners.ssn" + ], + [ + "students.ssn", + "pupils.ssn" + ], + [ + "learners.ssn", + "pupils.ssn" + ], + [ + "students.date_first_registered", + "learners.date_first_registered" + ], + [ + "students.date_first_registered", + "pupils.date_first_registered" + ], + [ + "learners.date_first_registered", + "pupils.date_first_registered" + ], + [ + "students.date_left", + "learners.date_left" + ], + [ + "students.date_left", + "pupils.date_left" + ], + [ + "learners.date_left", + "pupils.date_left" + ], + [ + "students.other_student_details", + "learners.other_student_details" + ], + [ + "students.other_student_details", + "pupils.other_student_details" + ], + [ + "learners.other_student_details", + "pupils.other_student_details" + ] + ] + }, + { + "question": "what is the #first name# of the student whose permanent address is different from his or her current one?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "Learners": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "Pupils": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ] + }, + "linking_list": [ + [ + "first name", + "students.first_name" + ], + [ + "first name", + "Learners.first_name" + ], + [ + "first name", + "Pupils.first_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.first_name" + ], + [ + 0, + "Learners.first_name" + ], + [ + 0, + "Pupils.first_name" + ] + ], + "linking_list_col": [ + [ + "students.student_id", + "learners.student_id" + ], + [ + "students.student_id", + "pupils.student_id" + ], + [ + "learners.student_id", + "pupils.student_id" + ], + [ + "students.current_address_id", + "learners.current_address_id" + ], + [ + "students.current_address_id", + "pupils.current_address_id" + ], + [ + "learners.current_address_id", + "pupils.current_address_id" + ], + [ + "students.permanent_address_id", + "learners.permanent_address_id" + ], + [ + "students.permanent_address_id", + "pupils.permanent_address_id" + ], + [ + "learners.permanent_address_id", + "pupils.permanent_address_id" + ], + [ + "students.first_name", + "learners.first_name" + ], + [ + "students.first_name", + "pupils.first_name" + ], + [ + "learners.first_name", + "pupils.first_name" + ], + [ + "students.middle_name", + "learners.middle_name" + ], + [ + "students.middle_name", + "pupils.middle_name" + ], + [ + "learners.middle_name", + "pupils.middle_name" + ], + [ + "students.last_name", + "learners.last_name" + ], + [ + "students.last_name", + "pupils.last_name" + ], + [ + "learners.last_name", + "pupils.last_name" + ], + [ + "students.cell_mobile_number", + "learners.cell_mobile_number" + ], + [ + "students.cell_mobile_number", + "pupils.cell_mobile_number" + ], + [ + "learners.cell_mobile_number", + "pupils.cell_mobile_number" + ], + [ + "students.email_address", + "learners.email_address" + ], + [ + "students.email_address", + "pupils.email_address" + ], + [ + "learners.email_address", + "pupils.email_address" + ], + [ + "students.ssn", + "learners.ssn" + ], + [ + "students.ssn", + "pupils.ssn" + ], + [ + "learners.ssn", + "pupils.ssn" + ], + [ + "students.date_first_registered", + "learners.date_first_registered" + ], + [ + "students.date_first_registered", + "pupils.date_first_registered" + ], + [ + "learners.date_first_registered", + "pupils.date_first_registered" + ], + [ + "students.date_left", + "learners.date_left" + ], + [ + "students.date_left", + "pupils.date_left" + ], + [ + "learners.date_left", + "pupils.date_left" + ], + [ + "students.other_student_details", + "learners.other_student_details" + ], + [ + "students.other_student_details", + "pupils.other_student_details" + ], + [ + "learners.other_student_details", + "pupils.other_student_details" + ] + ] + }, + { + "question": "when is the first transcript released? list the date and #details# .", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "Academic_History": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "Grade_Report": [ + "transcript_id", + "transcript_date", + "other_details" + ] + }, + "linking_list": [ + [ + "details", + "transcripts.other_details" + ], + [ + "details", + "Academic_History.other_details" + ], + [ + "details", + "Grade_Report.other_details" + ] + ], + "linking_list_idx": [ + [ + 0, + "transcripts.other_details" + ], + [ + 0, + "Academic_History.other_details" + ], + [ + 0, + "Grade_Report.other_details" + ] + ], + "linking_list_col": [ + [ + "transcripts.transcript_id", + "academic_history.transcript_id" + ], + [ + "transcripts.transcript_id", + "grade_report.transcript_id" + ], + [ + "academic_history.transcript_id", + "grade_report.transcript_id" + ], + [ + "transcripts.transcript_date", + "academic_history.transcript_date" + ], + [ + "transcripts.transcript_date", + "grade_report.transcript_date" + ], + [ + "academic_history.transcript_date", + "grade_report.transcript_date" + ], + [ + "transcripts.other_details", + "academic_history.other_details" + ], + [ + "transcripts.other_details", + "grade_report.other_details" + ], + [ + "academic_history.other_details", + "grade_report.other_details" + ] + ] + }, + { + "question": "what is the earliest date of a transcript release, and what #details# can you tell me?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "Academic_History": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "Grade_Report": [ + "transcript_id", + "transcript_date", + "other_details" + ] + }, + "linking_list": [ + [ + "details", + "transcripts.other_details" + ], + [ + "details", + "Academic_History.other_details" + ], + [ + "details", + "Grade_Report.other_details" + ] + ], + "linking_list_idx": [ + [ + 0, + "transcripts.other_details" + ], + [ + 0, + "Academic_History.other_details" + ], + [ + 0, + "Grade_Report.other_details" + ] + ], + "linking_list_col": [ + [ + "transcripts.transcript_id", + "academic_history.transcript_id" + ], + [ + "transcripts.transcript_id", + "grade_report.transcript_id" + ], + [ + "academic_history.transcript_id", + "grade_report.transcript_id" + ], + [ + "transcripts.transcript_date", + "academic_history.transcript_date" + ], + [ + "transcripts.transcript_date", + "grade_report.transcript_date" + ], + [ + "academic_history.transcript_date", + "grade_report.transcript_date" + ], + [ + "transcripts.other_details", + "academic_history.other_details" + ], + [ + "transcripts.other_details", + "grade_report.other_details" + ], + [ + "academic_history.other_details", + "grade_report.other_details" + ] + ] + }, + { + "question": "what is the #maximum number of times# that a course shows up in different transcripts and what is that course's enrollment id?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "Grades": [ + "student_course_id", + "transcript_id" + ], + "Academic_Record": [ + "student_course_id", + "transcript_id" + ] + }, + "linking_list": [ + [ + "maximum number of times", + "transcript_contents.student_course_id" + ], + [ + "maximum number of times", + "Grades.student_course_id" + ], + [ + "maximum number of times", + "Academic_Record.student_course_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "transcript_contents.student_course_id" + ], + [ + 0, + "Grades.student_course_id" + ], + [ + 0, + "Academic_Record.student_course_id" + ] + ], + "linking_list_col": [ + [ + "transcript_contents.student_course_id", + "grades.student_course_id" + ], + [ + "transcript_contents.student_course_id", + "academic_record.student_course_id" + ], + [ + "grades.student_course_id", + "academic_record.student_course_id" + ], + [ + "transcript_contents.transcript_id", + "grades.transcript_id" + ], + [ + "transcript_contents.transcript_id", + "academic_record.transcript_id" + ], + [ + "grades.transcript_id", + "academic_record.transcript_id" + ] + ] + }, + { + "question": "list all the #student details# in reversed lexicographical order.", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "Learners": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "Pupils": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ] + }, + "linking_list": [ + [ + "student details", + "students.other_student_details" + ], + [ + "student details", + "Learners.other_student_details" + ], + [ + "student details", + "Pupils.other_student_details" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.other_student_details" + ], + [ + 0, + "Learners.other_student_details" + ], + [ + 0, + "Pupils.other_student_details" + ] + ], + "linking_list_col": [ + [ + "students.student_id", + "learners.student_id" + ], + [ + "students.student_id", + "pupils.student_id" + ], + [ + "learners.student_id", + "pupils.student_id" + ], + [ + "students.current_address_id", + "learners.current_address_id" + ], + [ + "students.current_address_id", + "pupils.current_address_id" + ], + [ + "learners.current_address_id", + "pupils.current_address_id" + ], + [ + "students.permanent_address_id", + "learners.permanent_address_id" + ], + [ + "students.permanent_address_id", + "pupils.permanent_address_id" + ], + [ + "learners.permanent_address_id", + "pupils.permanent_address_id" + ], + [ + "students.first_name", + "learners.first_name" + ], + [ + "students.first_name", + "pupils.first_name" + ], + [ + "learners.first_name", + "pupils.first_name" + ], + [ + "students.middle_name", + "learners.middle_name" + ], + [ + "students.middle_name", + "pupils.middle_name" + ], + [ + "learners.middle_name", + "pupils.middle_name" + ], + [ + "students.last_name", + "learners.last_name" + ], + [ + "students.last_name", + "pupils.last_name" + ], + [ + "learners.last_name", + "pupils.last_name" + ], + [ + "students.cell_mobile_number", + "learners.cell_mobile_number" + ], + [ + "students.cell_mobile_number", + "pupils.cell_mobile_number" + ], + [ + "learners.cell_mobile_number", + "pupils.cell_mobile_number" + ], + [ + "students.email_address", + "learners.email_address" + ], + [ + "students.email_address", + "pupils.email_address" + ], + [ + "learners.email_address", + "pupils.email_address" + ], + [ + "students.ssn", + "learners.ssn" + ], + [ + "students.ssn", + "pupils.ssn" + ], + [ + "learners.ssn", + "pupils.ssn" + ], + [ + "students.date_first_registered", + "learners.date_first_registered" + ], + [ + "students.date_first_registered", + "pupils.date_first_registered" + ], + [ + "learners.date_first_registered", + "pupils.date_first_registered" + ], + [ + "students.date_left", + "learners.date_left" + ], + [ + "students.date_left", + "pupils.date_left" + ], + [ + "learners.date_left", + "pupils.date_left" + ], + [ + "students.other_student_details", + "learners.other_student_details" + ], + [ + "students.other_student_details", + "pupils.other_student_details" + ], + [ + "learners.other_student_details", + "pupils.other_student_details" + ] + ] + }, + { + "question": "what #other details# can you tell me about students in reverse alphabetical order?", + "db_schema": { + "addresses": [ + "address_id", + "line_1", + "line_2", + "line_3", + "city", + "zip_postcode", + "state_province_county", + "country", + "other_address_details" + ], + "courses": [ + "course_id", + "course_name", + "course_description", + "other_details" + ], + "departments": [ + "department_id", + "department_name", + "department_description", + "other_details" + ], + "degree_programs": [ + "degree_program_id", + "department_id", + "degree_summary_name", + "degree_summary_description", + "other_details" + ], + "sections": [ + "section_id", + "course_id", + "section_name", + "section_description", + "other_details" + ], + "semesters": [ + "semester_id", + "semester_name", + "semester_description", + "other_details" + ], + "students": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "student_enrolment": [ + "student_enrolment_id", + "degree_program_id", + "semester_id", + "student_id", + "other_details" + ], + "student_enrolment_courses": [ + "student_course_id", + "course_id", + "student_enrolment_id" + ], + "transcripts": [ + "transcript_id", + "transcript_date", + "other_details" + ], + "transcript_contents": [ + "student_course_id", + "transcript_id" + ], + "Learners": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ], + "Pupils": [ + "student_id", + "current_address_id", + "permanent_address_id", + "first_name", + "middle_name", + "last_name", + "cell_mobile_number", + "email_address", + "ssn", + "date_first_registered", + "date_left", + "other_student_details" + ] + }, + "linking_list": [ + [ + "other details", + "students.other_student_details" + ], + [ + "other details", + "Learners.other_student_details" + ], + [ + "other details", + "Pupils.other_student_details" + ] + ], + "linking_list_idx": [ + [ + 0, + "students.other_student_details" + ], + [ + 0, + "Learners.other_student_details" + ], + [ + 0, + "Pupils.other_student_details" + ] + ], + "linking_list_col": [ + [ + "students.student_id", + "learners.student_id" + ], + [ + "students.student_id", + "pupils.student_id" + ], + [ + "learners.student_id", + "pupils.student_id" + ], + [ + "students.current_address_id", + "learners.current_address_id" + ], + [ + "students.current_address_id", + "pupils.current_address_id" + ], + [ + "learners.current_address_id", + "pupils.current_address_id" + ], + [ + "students.permanent_address_id", + "learners.permanent_address_id" + ], + [ + "students.permanent_address_id", + "pupils.permanent_address_id" + ], + [ + "learners.permanent_address_id", + "pupils.permanent_address_id" + ], + [ + "students.first_name", + "learners.first_name" + ], + [ + "students.first_name", + "pupils.first_name" + ], + [ + "learners.first_name", + "pupils.first_name" + ], + [ + "students.middle_name", + "learners.middle_name" + ], + [ + "students.middle_name", + "pupils.middle_name" + ], + [ + "learners.middle_name", + "pupils.middle_name" + ], + [ + "students.last_name", + "learners.last_name" + ], + [ + "students.last_name", + "pupils.last_name" + ], + [ + "learners.last_name", + "pupils.last_name" + ], + [ + "students.cell_mobile_number", + "learners.cell_mobile_number" + ], + [ + "students.cell_mobile_number", + "pupils.cell_mobile_number" + ], + [ + "learners.cell_mobile_number", + "pupils.cell_mobile_number" + ], + [ + "students.email_address", + "learners.email_address" + ], + [ + "students.email_address", + "pupils.email_address" + ], + [ + "learners.email_address", + "pupils.email_address" + ], + [ + "students.ssn", + "learners.ssn" + ], + [ + "students.ssn", + "pupils.ssn" + ], + [ + "learners.ssn", + "pupils.ssn" + ], + [ + "students.date_first_registered", + "learners.date_first_registered" + ], + [ + "students.date_first_registered", + "pupils.date_first_registered" + ], + [ + "learners.date_first_registered", + "pupils.date_first_registered" + ], + [ + "students.date_left", + "learners.date_left" + ], + [ + "students.date_left", + "pupils.date_left" + ], + [ + "learners.date_left", + "pupils.date_left" + ], + [ + "students.other_student_details", + "learners.other_student_details" + ], + [ + "students.other_student_details", + "pupils.other_student_details" + ], + [ + "learners.other_student_details", + "pupils.other_student_details" + ] + ] + }, + { + "question": "list the #title# of all cartoons in alphabetical order.", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "animated_series": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "toons": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "title", + "cartoon.title" + ], + [ + "title", + "animated_series.title" + ], + [ + "title", + "toons.title" + ] + ], + "linking_list_idx": [ + [ + 0, + "cartoon.title" + ], + [ + 0, + "animated_series.title" + ], + [ + 0, + "toons.title" + ] + ], + "linking_list_col": [ + [ + "cartoon.id", + "animated_series.id" + ], + [ + "cartoon.id", + "toons.id" + ], + [ + "animated_series.id", + "toons.id" + ], + [ + "cartoon.title", + "animated_series.title" + ], + [ + "cartoon.title", + "toons.title" + ], + [ + "animated_series.title", + "toons.title" + ], + [ + "cartoon.directed_by", + "animated_series.directed_by" + ], + [ + "cartoon.directed_by", + "toons.directed_by" + ], + [ + "animated_series.directed_by", + "toons.directed_by" + ], + [ + "cartoon.written_by", + "animated_series.written_by" + ], + [ + "cartoon.written_by", + "toons.written_by" + ], + [ + "animated_series.written_by", + "toons.written_by" + ], + [ + "cartoon.original_air_date", + "animated_series.original_air_date" + ], + [ + "cartoon.original_air_date", + "toons.original_air_date" + ], + [ + "animated_series.original_air_date", + "toons.original_air_date" + ], + [ + "cartoon.production_code", + "animated_series.production_code" + ], + [ + "cartoon.production_code", + "toons.production_code" + ], + [ + "animated_series.production_code", + "toons.production_code" + ], + [ + "cartoon.channel", + "animated_series.channel" + ], + [ + "cartoon.channel", + "toons.channel" + ], + [ + "animated_series.channel", + "toons.channel" + ] + ] + }, + { + "question": "what are the #titles# of the cartoons sorted alphabetically?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "animated_series": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "toons": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "titles", + "cartoon.title" + ], + [ + "titles", + "animated_series.title" + ], + [ + "titles", + "toons.title" + ] + ], + "linking_list_idx": [ + [ + 0, + "cartoon.title" + ], + [ + 0, + "animated_series.title" + ], + [ + 0, + "toons.title" + ] + ], + "linking_list_col": [ + [ + "cartoon.id", + "animated_series.id" + ], + [ + "cartoon.id", + "toons.id" + ], + [ + "animated_series.id", + "toons.id" + ], + [ + "cartoon.title", + "animated_series.title" + ], + [ + "cartoon.title", + "toons.title" + ], + [ + "animated_series.title", + "toons.title" + ], + [ + "cartoon.directed_by", + "animated_series.directed_by" + ], + [ + "cartoon.directed_by", + "toons.directed_by" + ], + [ + "animated_series.directed_by", + "toons.directed_by" + ], + [ + "cartoon.written_by", + "animated_series.written_by" + ], + [ + "cartoon.written_by", + "toons.written_by" + ], + [ + "animated_series.written_by", + "toons.written_by" + ], + [ + "cartoon.original_air_date", + "animated_series.original_air_date" + ], + [ + "cartoon.original_air_date", + "toons.original_air_date" + ], + [ + "animated_series.original_air_date", + "toons.original_air_date" + ], + [ + "cartoon.production_code", + "animated_series.production_code" + ], + [ + "cartoon.production_code", + "toons.production_code" + ], + [ + "animated_series.production_code", + "toons.production_code" + ], + [ + "cartoon.channel", + "animated_series.channel" + ], + [ + "cartoon.channel", + "toons.channel" + ], + [ + "animated_series.channel", + "toons.channel" + ] + ] + }, + { + "question": "list all cartoon #directed by# \"ben jones\".", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "animated_series": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "toons": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "directed by", + "cartoon.directed_by" + ], + [ + "directed by", + "animated_series.directed_by" + ], + [ + "directed by", + "toons.directed_by" + ] + ], + "linking_list_idx": [ + [ + 0, + "cartoon.directed_by" + ], + [ + 0, + "animated_series.directed_by" + ], + [ + 0, + "toons.directed_by" + ] + ], + "linking_list_col": [ + [ + "cartoon.id", + "animated_series.id" + ], + [ + "cartoon.id", + "toons.id" + ], + [ + "animated_series.id", + "toons.id" + ], + [ + "cartoon.title", + "animated_series.title" + ], + [ + "cartoon.title", + "toons.title" + ], + [ + "animated_series.title", + "toons.title" + ], + [ + "cartoon.directed_by", + "animated_series.directed_by" + ], + [ + "cartoon.directed_by", + "toons.directed_by" + ], + [ + "animated_series.directed_by", + "toons.directed_by" + ], + [ + "cartoon.written_by", + "animated_series.written_by" + ], + [ + "cartoon.written_by", + "toons.written_by" + ], + [ + "animated_series.written_by", + "toons.written_by" + ], + [ + "cartoon.original_air_date", + "animated_series.original_air_date" + ], + [ + "cartoon.original_air_date", + "toons.original_air_date" + ], + [ + "animated_series.original_air_date", + "toons.original_air_date" + ], + [ + "cartoon.production_code", + "animated_series.production_code" + ], + [ + "cartoon.production_code", + "toons.production_code" + ], + [ + "animated_series.production_code", + "toons.production_code" + ], + [ + "cartoon.channel", + "animated_series.channel" + ], + [ + "cartoon.channel", + "toons.channel" + ], + [ + "animated_series.channel", + "toons.channel" + ] + ] + }, + { + "question": "what are the names of all cartoons #directed by# ben jones?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "animated_series": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "toons": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "directed by", + "cartoon.directed_by" + ], + [ + "directed by", + "animated_series.directed_by" + ], + [ + "directed by", + "toons.directed_by" + ] + ], + "linking_list_idx": [ + [ + 0, + "cartoon.directed_by" + ], + [ + 0, + "animated_series.directed_by" + ], + [ + 0, + "toons.directed_by" + ] + ], + "linking_list_col": [ + [ + "cartoon.id", + "animated_series.id" + ], + [ + "cartoon.id", + "toons.id" + ], + [ + "animated_series.id", + "toons.id" + ], + [ + "cartoon.title", + "animated_series.title" + ], + [ + "cartoon.title", + "toons.title" + ], + [ + "animated_series.title", + "toons.title" + ], + [ + "cartoon.directed_by", + "animated_series.directed_by" + ], + [ + "cartoon.directed_by", + "toons.directed_by" + ], + [ + "animated_series.directed_by", + "toons.directed_by" + ], + [ + "cartoon.written_by", + "animated_series.written_by" + ], + [ + "cartoon.written_by", + "toons.written_by" + ], + [ + "animated_series.written_by", + "toons.written_by" + ], + [ + "cartoon.original_air_date", + "animated_series.original_air_date" + ], + [ + "cartoon.original_air_date", + "toons.original_air_date" + ], + [ + "animated_series.original_air_date", + "toons.original_air_date" + ], + [ + "cartoon.production_code", + "animated_series.production_code" + ], + [ + "cartoon.production_code", + "toons.production_code" + ], + [ + "animated_series.production_code", + "toons.production_code" + ], + [ + "cartoon.channel", + "animated_series.channel" + ], + [ + "cartoon.channel", + "toons.channel" + ], + [ + "animated_series.channel", + "toons.channel" + ] + ] + }, + { + "question": "how many #cartoons# were #written by# \"joseph kuhr\"?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "animated_series": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "toons": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "cartoons", + "cartoon.id" + ], + [ + "cartoons", + "animated_series.id" + ], + [ + "cartoons", + "toons.id" + ], + [ + "written by", + "cartoon.written_by" + ], + [ + "written by", + "animated_series.written_by" + ], + [ + "written by", + "toons.written_by" + ] + ], + "linking_list_idx": [ + [ + 0, + "cartoon.id" + ], + [ + 0, + "animated_series.id" + ], + [ + 0, + "toons.id" + ], + [ + 1, + "cartoon.written_by" + ], + [ + 1, + "animated_series.written_by" + ], + [ + 1, + "toons.written_by" + ] + ], + "linking_list_col": [ + [ + "cartoon.id", + "animated_series.id" + ], + [ + "cartoon.id", + "toons.id" + ], + [ + "animated_series.id", + "toons.id" + ], + [ + "cartoon.title", + "animated_series.title" + ], + [ + "cartoon.title", + "toons.title" + ], + [ + "animated_series.title", + "toons.title" + ], + [ + "cartoon.directed_by", + "animated_series.directed_by" + ], + [ + "cartoon.directed_by", + "toons.directed_by" + ], + [ + "animated_series.directed_by", + "toons.directed_by" + ], + [ + "cartoon.written_by", + "animated_series.written_by" + ], + [ + "cartoon.written_by", + "toons.written_by" + ], + [ + "animated_series.written_by", + "toons.written_by" + ], + [ + "cartoon.original_air_date", + "animated_series.original_air_date" + ], + [ + "cartoon.original_air_date", + "toons.original_air_date" + ], + [ + "animated_series.original_air_date", + "toons.original_air_date" + ], + [ + "cartoon.production_code", + "animated_series.production_code" + ], + [ + "cartoon.production_code", + "toons.production_code" + ], + [ + "animated_series.production_code", + "toons.production_code" + ], + [ + "cartoon.channel", + "animated_series.channel" + ], + [ + "cartoon.channel", + "toons.channel" + ], + [ + "animated_series.channel", + "toons.channel" + ] + ] + }, + { + "question": "what is the number of cartoones #written by# joseph kuhr?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "animated_series": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "toons": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "written by", + "cartoon.written_by" + ], + [ + "written by", + "animated_series.written_by" + ], + [ + "written by", + "toons.written_by" + ] + ], + "linking_list_idx": [ + [ + 0, + "cartoon.written_by" + ], + [ + 0, + "animated_series.written_by" + ], + [ + 0, + "toons.written_by" + ] + ], + "linking_list_col": [ + [ + "cartoon.id", + "animated_series.id" + ], + [ + "cartoon.id", + "toons.id" + ], + [ + "animated_series.id", + "toons.id" + ], + [ + "cartoon.title", + "animated_series.title" + ], + [ + "cartoon.title", + "toons.title" + ], + [ + "animated_series.title", + "toons.title" + ], + [ + "cartoon.directed_by", + "animated_series.directed_by" + ], + [ + "cartoon.directed_by", + "toons.directed_by" + ], + [ + "animated_series.directed_by", + "toons.directed_by" + ], + [ + "cartoon.written_by", + "animated_series.written_by" + ], + [ + "cartoon.written_by", + "toons.written_by" + ], + [ + "animated_series.written_by", + "toons.written_by" + ], + [ + "cartoon.original_air_date", + "animated_series.original_air_date" + ], + [ + "cartoon.original_air_date", + "toons.original_air_date" + ], + [ + "animated_series.original_air_date", + "toons.original_air_date" + ], + [ + "cartoon.production_code", + "animated_series.production_code" + ], + [ + "cartoon.production_code", + "toons.production_code" + ], + [ + "animated_series.production_code", + "toons.production_code" + ], + [ + "cartoon.channel", + "animated_series.channel" + ], + [ + "cartoon.channel", + "toons.channel" + ], + [ + "animated_series.channel", + "toons.channel" + ] + ] + }, + { + "question": "list all #cartoon titles# and their #directors# ordered by their air date", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "animated_series": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "toons": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "cartoon titles", + "cartoon.title" + ], + [ + "cartoon titles", + "animated_series.title" + ], + [ + "cartoon titles", + "toons.title" + ], + [ + "directors", + "cartoon.directed_by" + ], + [ + "directors", + "animated_series.directed_by" + ], + [ + "directors", + "toons.directed_by" + ] + ], + "linking_list_idx": [ + [ + 0, + "cartoon.title" + ], + [ + 0, + "animated_series.title" + ], + [ + 0, + "toons.title" + ], + [ + 1, + "cartoon.directed_by" + ], + [ + 1, + "animated_series.directed_by" + ], + [ + 1, + "toons.directed_by" + ] + ], + "linking_list_col": [ + [ + "cartoon.id", + "animated_series.id" + ], + [ + "cartoon.id", + "toons.id" + ], + [ + "animated_series.id", + "toons.id" + ], + [ + "cartoon.title", + "animated_series.title" + ], + [ + "cartoon.title", + "toons.title" + ], + [ + "animated_series.title", + "toons.title" + ], + [ + "cartoon.directed_by", + "animated_series.directed_by" + ], + [ + "cartoon.directed_by", + "toons.directed_by" + ], + [ + "animated_series.directed_by", + "toons.directed_by" + ], + [ + "cartoon.written_by", + "animated_series.written_by" + ], + [ + "cartoon.written_by", + "toons.written_by" + ], + [ + "animated_series.written_by", + "toons.written_by" + ], + [ + "cartoon.original_air_date", + "animated_series.original_air_date" + ], + [ + "cartoon.original_air_date", + "toons.original_air_date" + ], + [ + "animated_series.original_air_date", + "toons.original_air_date" + ], + [ + "cartoon.production_code", + "animated_series.production_code" + ], + [ + "cartoon.production_code", + "toons.production_code" + ], + [ + "animated_series.production_code", + "toons.production_code" + ], + [ + "cartoon.channel", + "animated_series.channel" + ], + [ + "cartoon.channel", + "toons.channel" + ], + [ + "animated_series.channel", + "toons.channel" + ] + ] + }, + { + "question": "list the #title# of all cartoon #directed by# \"ben jones\" or \"brandon vietti\".", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "animated_series": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "toons": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "title", + "cartoon.title" + ], + [ + "title", + "animated_series.title" + ], + [ + "title", + "toons.title" + ], + [ + "directed by", + "cartoon.directed_by" + ], + [ + "directed by", + "animated_series.directed_by" + ], + [ + "directed by", + "toons.directed_by" + ] + ], + "linking_list_idx": [ + [ + 0, + "cartoon.title" + ], + [ + 0, + "animated_series.title" + ], + [ + 0, + "toons.title" + ], + [ + 1, + "cartoon.directed_by" + ], + [ + 1, + "animated_series.directed_by" + ], + [ + 1, + "toons.directed_by" + ] + ], + "linking_list_col": [ + [ + "cartoon.id", + "animated_series.id" + ], + [ + "cartoon.id", + "toons.id" + ], + [ + "animated_series.id", + "toons.id" + ], + [ + "cartoon.title", + "animated_series.title" + ], + [ + "cartoon.title", + "toons.title" + ], + [ + "animated_series.title", + "toons.title" + ], + [ + "cartoon.directed_by", + "animated_series.directed_by" + ], + [ + "cartoon.directed_by", + "toons.directed_by" + ], + [ + "animated_series.directed_by", + "toons.directed_by" + ], + [ + "cartoon.written_by", + "animated_series.written_by" + ], + [ + "cartoon.written_by", + "toons.written_by" + ], + [ + "animated_series.written_by", + "toons.written_by" + ], + [ + "cartoon.original_air_date", + "animated_series.original_air_date" + ], + [ + "cartoon.original_air_date", + "toons.original_air_date" + ], + [ + "animated_series.original_air_date", + "toons.original_air_date" + ], + [ + "cartoon.production_code", + "animated_series.production_code" + ], + [ + "cartoon.production_code", + "toons.production_code" + ], + [ + "animated_series.production_code", + "toons.production_code" + ], + [ + "cartoon.channel", + "animated_series.channel" + ], + [ + "cartoon.channel", + "toons.channel" + ], + [ + "animated_series.channel", + "toons.channel" + ] + ] + }, + { + "question": "what are the #titles# of all cartoons #directed by# ben jones or brandon vietti?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "animated_series": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "toons": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "titles", + "cartoon.title" + ], + [ + "titles", + "animated_series.title" + ], + [ + "titles", + "toons.title" + ], + [ + "directed by", + "cartoon.directed_by" + ], + [ + "directed by", + "animated_series.directed_by" + ], + [ + "directed by", + "toons.directed_by" + ] + ], + "linking_list_idx": [ + [ + 0, + "cartoon.title" + ], + [ + 0, + "animated_series.title" + ], + [ + 0, + "toons.title" + ], + [ + 1, + "cartoon.directed_by" + ], + [ + 1, + "animated_series.directed_by" + ], + [ + 1, + "toons.directed_by" + ] + ], + "linking_list_col": [ + [ + "cartoon.id", + "animated_series.id" + ], + [ + "cartoon.id", + "toons.id" + ], + [ + "animated_series.id", + "toons.id" + ], + [ + "cartoon.title", + "animated_series.title" + ], + [ + "cartoon.title", + "toons.title" + ], + [ + "animated_series.title", + "toons.title" + ], + [ + "cartoon.directed_by", + "animated_series.directed_by" + ], + [ + "cartoon.directed_by", + "toons.directed_by" + ], + [ + "animated_series.directed_by", + "toons.directed_by" + ], + [ + "cartoon.written_by", + "animated_series.written_by" + ], + [ + "cartoon.written_by", + "toons.written_by" + ], + [ + "animated_series.written_by", + "toons.written_by" + ], + [ + "cartoon.original_air_date", + "animated_series.original_air_date" + ], + [ + "cartoon.original_air_date", + "toons.original_air_date" + ], + [ + "animated_series.original_air_date", + "toons.original_air_date" + ], + [ + "cartoon.production_code", + "animated_series.production_code" + ], + [ + "cartoon.production_code", + "toons.production_code" + ], + [ + "animated_series.production_code", + "toons.production_code" + ], + [ + "cartoon.channel", + "animated_series.channel" + ], + [ + "cartoon.channel", + "toons.channel" + ], + [ + "animated_series.channel", + "toons.channel" + ] + ] + }, + { + "question": "which #country# has the most of tv channels? list the country and number of tv channels it has.", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "Broadcasting_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "Television_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ] + }, + "linking_list": [ + [ + "country", + "tv_channel.country" + ], + [ + "country", + "Broadcasting_Channel.country" + ], + [ + "country", + "Television_Channel.country" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.country" + ], + [ + 0, + "Broadcasting_Channel.country" + ], + [ + 0, + "Television_Channel.country" + ] + ], + "linking_list_col": [ + [ + "tv_channel.id", + "broadcasting_channel.id" + ], + [ + "tv_channel.id", + "television_channel.id" + ], + [ + "broadcasting_channel.id", + "television_channel.id" + ], + [ + "tv_channel.series_name", + "broadcasting_channel.series_name" + ], + [ + "tv_channel.series_name", + "television_channel.series_name" + ], + [ + "broadcasting_channel.series_name", + "television_channel.series_name" + ], + [ + "tv_channel.country", + "broadcasting_channel.country" + ], + [ + "tv_channel.country", + "television_channel.country" + ], + [ + "broadcasting_channel.country", + "television_channel.country" + ], + [ + "tv_channel.language", + "broadcasting_channel.language" + ], + [ + "tv_channel.language", + "television_channel.language" + ], + [ + "broadcasting_channel.language", + "television_channel.language" + ], + [ + "tv_channel.content", + "broadcasting_channel.content" + ], + [ + "tv_channel.content", + "television_channel.content" + ], + [ + "broadcasting_channel.content", + "television_channel.content" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "broadcasting_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "broadcasting_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.hight_definition_tv", + "broadcasting_channel.hight_definition_tv" + ], + [ + "tv_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "broadcasting_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "tv_channel.pay_per_view_ppv", + "broadcasting_channel.pay_per_view_ppv" + ], + [ + "tv_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "broadcasting_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "tv_channel.package_option", + "broadcasting_channel.package_option" + ], + [ + "tv_channel.package_option", + "television_channel.package_option" + ], + [ + "broadcasting_channel.package_option", + "television_channel.package_option" + ] + ] + }, + { + "question": "what is the #country# with the most number of tv channels and how many does it have?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "Broadcasting_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "Television_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ] + }, + "linking_list": [ + [ + "country", + "tv_channel.country" + ], + [ + "country", + "Broadcasting_Channel.country" + ], + [ + "country", + "Television_Channel.country" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.country" + ], + [ + 0, + "Broadcasting_Channel.country" + ], + [ + 0, + "Television_Channel.country" + ] + ], + "linking_list_col": [ + [ + "tv_channel.id", + "broadcasting_channel.id" + ], + [ + "tv_channel.id", + "television_channel.id" + ], + [ + "broadcasting_channel.id", + "television_channel.id" + ], + [ + "tv_channel.series_name", + "broadcasting_channel.series_name" + ], + [ + "tv_channel.series_name", + "television_channel.series_name" + ], + [ + "broadcasting_channel.series_name", + "television_channel.series_name" + ], + [ + "tv_channel.country", + "broadcasting_channel.country" + ], + [ + "tv_channel.country", + "television_channel.country" + ], + [ + "broadcasting_channel.country", + "television_channel.country" + ], + [ + "tv_channel.language", + "broadcasting_channel.language" + ], + [ + "tv_channel.language", + "television_channel.language" + ], + [ + "broadcasting_channel.language", + "television_channel.language" + ], + [ + "tv_channel.content", + "broadcasting_channel.content" + ], + [ + "tv_channel.content", + "television_channel.content" + ], + [ + "broadcasting_channel.content", + "television_channel.content" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "broadcasting_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "broadcasting_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.hight_definition_tv", + "broadcasting_channel.hight_definition_tv" + ], + [ + "tv_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "broadcasting_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "tv_channel.pay_per_view_ppv", + "broadcasting_channel.pay_per_view_ppv" + ], + [ + "tv_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "broadcasting_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "tv_channel.package_option", + "broadcasting_channel.package_option" + ], + [ + "tv_channel.package_option", + "television_channel.package_option" + ], + [ + "broadcasting_channel.package_option", + "television_channel.package_option" + ] + ] + }, + { + "question": "what is the #content# of tv channel with #serial name# \"sky radio\"?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "Broadcasting_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "Television_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ] + }, + "linking_list": [ + [ + "content", + "tv_channel.content" + ], + [ + "content", + "Broadcasting_Channel.content" + ], + [ + "content", + "Television_Channel.content" + ], + [ + "serial name", + "tv_channel.series_name" + ], + [ + "serial name", + "Broadcasting_Channel.series_name" + ], + [ + "serial name", + "Television_Channel.series_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.content" + ], + [ + 0, + "Broadcasting_Channel.content" + ], + [ + 0, + "Television_Channel.content" + ], + [ + 1, + "tv_channel.series_name" + ], + [ + 1, + "Broadcasting_Channel.series_name" + ], + [ + 1, + "Television_Channel.series_name" + ] + ], + "linking_list_col": [ + [ + "tv_channel.id", + "broadcasting_channel.id" + ], + [ + "tv_channel.id", + "television_channel.id" + ], + [ + "broadcasting_channel.id", + "television_channel.id" + ], + [ + "tv_channel.series_name", + "broadcasting_channel.series_name" + ], + [ + "tv_channel.series_name", + "television_channel.series_name" + ], + [ + "broadcasting_channel.series_name", + "television_channel.series_name" + ], + [ + "tv_channel.country", + "broadcasting_channel.country" + ], + [ + "tv_channel.country", + "television_channel.country" + ], + [ + "broadcasting_channel.country", + "television_channel.country" + ], + [ + "tv_channel.language", + "broadcasting_channel.language" + ], + [ + "tv_channel.language", + "television_channel.language" + ], + [ + "broadcasting_channel.language", + "television_channel.language" + ], + [ + "tv_channel.content", + "broadcasting_channel.content" + ], + [ + "tv_channel.content", + "television_channel.content" + ], + [ + "broadcasting_channel.content", + "television_channel.content" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "broadcasting_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "broadcasting_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.hight_definition_tv", + "broadcasting_channel.hight_definition_tv" + ], + [ + "tv_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "broadcasting_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "tv_channel.pay_per_view_ppv", + "broadcasting_channel.pay_per_view_ppv" + ], + [ + "tv_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "broadcasting_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "tv_channel.package_option", + "broadcasting_channel.package_option" + ], + [ + "tv_channel.package_option", + "television_channel.package_option" + ], + [ + "broadcasting_channel.package_option", + "television_channel.package_option" + ] + ] + }, + { + "question": "what is the #content# of the series sky radio?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "Broadcasting_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "Television_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ] + }, + "linking_list": [ + [ + "content", + "tv_channel.content" + ], + [ + "content", + "Broadcasting_Channel.content" + ], + [ + "content", + "Television_Channel.content" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.content" + ], + [ + 0, + "Broadcasting_Channel.content" + ], + [ + 0, + "Television_Channel.content" + ] + ], + "linking_list_col": [ + [ + "tv_channel.id", + "broadcasting_channel.id" + ], + [ + "tv_channel.id", + "television_channel.id" + ], + [ + "broadcasting_channel.id", + "television_channel.id" + ], + [ + "tv_channel.series_name", + "broadcasting_channel.series_name" + ], + [ + "tv_channel.series_name", + "television_channel.series_name" + ], + [ + "broadcasting_channel.series_name", + "television_channel.series_name" + ], + [ + "tv_channel.country", + "broadcasting_channel.country" + ], + [ + "tv_channel.country", + "television_channel.country" + ], + [ + "broadcasting_channel.country", + "television_channel.country" + ], + [ + "tv_channel.language", + "broadcasting_channel.language" + ], + [ + "tv_channel.language", + "television_channel.language" + ], + [ + "broadcasting_channel.language", + "television_channel.language" + ], + [ + "tv_channel.content", + "broadcasting_channel.content" + ], + [ + "tv_channel.content", + "television_channel.content" + ], + [ + "broadcasting_channel.content", + "television_channel.content" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "broadcasting_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "broadcasting_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.hight_definition_tv", + "broadcasting_channel.hight_definition_tv" + ], + [ + "tv_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "broadcasting_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "tv_channel.pay_per_view_ppv", + "broadcasting_channel.pay_per_view_ppv" + ], + [ + "tv_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "broadcasting_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "tv_channel.package_option", + "broadcasting_channel.package_option" + ], + [ + "tv_channel.package_option", + "television_channel.package_option" + ], + [ + "broadcasting_channel.package_option", + "television_channel.package_option" + ] + ] + }, + { + "question": "what is the #package option# of tv channel with #serial name# \"sky radio\"?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "Broadcasting_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "Television_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ] + }, + "linking_list": [ + [ + "Package Option", + "tv_channel.package_option" + ], + [ + "Package Option", + "Broadcasting_Channel.package_option" + ], + [ + "Package Option", + "Television_Channel.package_option" + ], + [ + "serial name", + "tv_channel.series_name" + ], + [ + "serial name", + "Broadcasting_Channel.series_name" + ], + [ + "serial name", + "Television_Channel.series_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.package_option" + ], + [ + 0, + "Broadcasting_Channel.package_option" + ], + [ + 0, + "Television_Channel.package_option" + ], + [ + 1, + "tv_channel.series_name" + ], + [ + 1, + "Broadcasting_Channel.series_name" + ], + [ + 1, + "Television_Channel.series_name" + ] + ], + "linking_list_col": [ + [ + "tv_channel.id", + "broadcasting_channel.id" + ], + [ + "tv_channel.id", + "television_channel.id" + ], + [ + "broadcasting_channel.id", + "television_channel.id" + ], + [ + "tv_channel.series_name", + "broadcasting_channel.series_name" + ], + [ + "tv_channel.series_name", + "television_channel.series_name" + ], + [ + "broadcasting_channel.series_name", + "television_channel.series_name" + ], + [ + "tv_channel.country", + "broadcasting_channel.country" + ], + [ + "tv_channel.country", + "television_channel.country" + ], + [ + "broadcasting_channel.country", + "television_channel.country" + ], + [ + "tv_channel.language", + "broadcasting_channel.language" + ], + [ + "tv_channel.language", + "television_channel.language" + ], + [ + "broadcasting_channel.language", + "television_channel.language" + ], + [ + "tv_channel.content", + "broadcasting_channel.content" + ], + [ + "tv_channel.content", + "television_channel.content" + ], + [ + "broadcasting_channel.content", + "television_channel.content" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "broadcasting_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "broadcasting_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.hight_definition_tv", + "broadcasting_channel.hight_definition_tv" + ], + [ + "tv_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "broadcasting_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "tv_channel.pay_per_view_ppv", + "broadcasting_channel.pay_per_view_ppv" + ], + [ + "tv_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "broadcasting_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "tv_channel.package_option", + "broadcasting_channel.package_option" + ], + [ + "tv_channel.package_option", + "television_channel.package_option" + ], + [ + "broadcasting_channel.package_option", + "television_channel.package_option" + ] + ] + }, + { + "question": "what are the #package options# of the tv channels whose #series names# are sky radio?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "Broadcasting_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "Television_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ] + }, + "linking_list": [ + [ + "Package Options", + "tv_channel.package_option" + ], + [ + "Package Options", + "Broadcasting_Channel.package_option" + ], + [ + "Package Options", + "Television_Channel.package_option" + ], + [ + "series names", + "tv_channel.series_name" + ], + [ + "series names", + "Broadcasting_Channel.series_name" + ], + [ + "series names", + "Television_Channel.series_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.package_option" + ], + [ + 0, + "Broadcasting_Channel.package_option" + ], + [ + 0, + "Television_Channel.package_option" + ], + [ + 1, + "tv_channel.series_name" + ], + [ + 1, + "Broadcasting_Channel.series_name" + ], + [ + 1, + "Television_Channel.series_name" + ] + ], + "linking_list_col": [ + [ + "tv_channel.id", + "broadcasting_channel.id" + ], + [ + "tv_channel.id", + "television_channel.id" + ], + [ + "broadcasting_channel.id", + "television_channel.id" + ], + [ + "tv_channel.series_name", + "broadcasting_channel.series_name" + ], + [ + "tv_channel.series_name", + "television_channel.series_name" + ], + [ + "broadcasting_channel.series_name", + "television_channel.series_name" + ], + [ + "tv_channel.country", + "broadcasting_channel.country" + ], + [ + "tv_channel.country", + "television_channel.country" + ], + [ + "broadcasting_channel.country", + "television_channel.country" + ], + [ + "tv_channel.language", + "broadcasting_channel.language" + ], + [ + "tv_channel.language", + "television_channel.language" + ], + [ + "broadcasting_channel.language", + "television_channel.language" + ], + [ + "tv_channel.content", + "broadcasting_channel.content" + ], + [ + "tv_channel.content", + "television_channel.content" + ], + [ + "broadcasting_channel.content", + "television_channel.content" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "broadcasting_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "broadcasting_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.hight_definition_tv", + "broadcasting_channel.hight_definition_tv" + ], + [ + "tv_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "broadcasting_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "tv_channel.pay_per_view_ppv", + "broadcasting_channel.pay_per_view_ppv" + ], + [ + "tv_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "broadcasting_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "tv_channel.package_option", + "broadcasting_channel.package_option" + ], + [ + "tv_channel.package_option", + "television_channel.package_option" + ], + [ + "broadcasting_channel.package_option", + "television_channel.package_option" + ] + ] + }, + { + "question": "how many #tv channels# use the english language?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "Broadcasting_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "Television_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ] + }, + "linking_list": [ + [ + "TV Channels", + "tv_channel.language" + ], + [ + "TV Channels", + "Broadcasting_Channel.language" + ], + [ + "TV Channels", + "Television_Channel.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.language" + ], + [ + 0, + "Broadcasting_Channel.language" + ], + [ + 0, + "Television_Channel.language" + ] + ], + "linking_list_col": [ + [ + "tv_channel.id", + "broadcasting_channel.id" + ], + [ + "tv_channel.id", + "television_channel.id" + ], + [ + "broadcasting_channel.id", + "television_channel.id" + ], + [ + "tv_channel.series_name", + "broadcasting_channel.series_name" + ], + [ + "tv_channel.series_name", + "television_channel.series_name" + ], + [ + "broadcasting_channel.series_name", + "television_channel.series_name" + ], + [ + "tv_channel.country", + "broadcasting_channel.country" + ], + [ + "tv_channel.country", + "television_channel.country" + ], + [ + "broadcasting_channel.country", + "television_channel.country" + ], + [ + "tv_channel.language", + "broadcasting_channel.language" + ], + [ + "tv_channel.language", + "television_channel.language" + ], + [ + "broadcasting_channel.language", + "television_channel.language" + ], + [ + "tv_channel.content", + "broadcasting_channel.content" + ], + [ + "tv_channel.content", + "television_channel.content" + ], + [ + "broadcasting_channel.content", + "television_channel.content" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "broadcasting_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "broadcasting_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.hight_definition_tv", + "broadcasting_channel.hight_definition_tv" + ], + [ + "tv_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "broadcasting_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "tv_channel.pay_per_view_ppv", + "broadcasting_channel.pay_per_view_ppv" + ], + [ + "tv_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "broadcasting_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "tv_channel.package_option", + "broadcasting_channel.package_option" + ], + [ + "tv_channel.package_option", + "television_channel.package_option" + ], + [ + "broadcasting_channel.package_option", + "television_channel.package_option" + ] + ] + }, + { + "question": "list the #language# used least number of tv channel. list language and number of tv channel.", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "Broadcasting_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "Television_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ] + }, + "linking_list": [ + [ + "language", + "tv_channel.language" + ], + [ + "language", + "Broadcasting_Channel.language" + ], + [ + "language", + "Television_Channel.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.language" + ], + [ + 0, + "Broadcasting_Channel.language" + ], + [ + 0, + "Television_Channel.language" + ] + ], + "linking_list_col": [ + [ + "tv_channel.id", + "broadcasting_channel.id" + ], + [ + "tv_channel.id", + "television_channel.id" + ], + [ + "broadcasting_channel.id", + "television_channel.id" + ], + [ + "tv_channel.series_name", + "broadcasting_channel.series_name" + ], + [ + "tv_channel.series_name", + "television_channel.series_name" + ], + [ + "broadcasting_channel.series_name", + "television_channel.series_name" + ], + [ + "tv_channel.country", + "broadcasting_channel.country" + ], + [ + "tv_channel.country", + "television_channel.country" + ], + [ + "broadcasting_channel.country", + "television_channel.country" + ], + [ + "tv_channel.language", + "broadcasting_channel.language" + ], + [ + "tv_channel.language", + "television_channel.language" + ], + [ + "broadcasting_channel.language", + "television_channel.language" + ], + [ + "tv_channel.content", + "broadcasting_channel.content" + ], + [ + "tv_channel.content", + "television_channel.content" + ], + [ + "broadcasting_channel.content", + "television_channel.content" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "broadcasting_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "broadcasting_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.hight_definition_tv", + "broadcasting_channel.hight_definition_tv" + ], + [ + "tv_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "broadcasting_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "tv_channel.pay_per_view_ppv", + "broadcasting_channel.pay_per_view_ppv" + ], + [ + "tv_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "broadcasting_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "tv_channel.package_option", + "broadcasting_channel.package_option" + ], + [ + "tv_channel.package_option", + "television_channel.package_option" + ], + [ + "broadcasting_channel.package_option", + "television_channel.package_option" + ] + ] + }, + { + "question": "list each #language# and the number of tv channels using it.", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "Broadcasting_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "Television_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ] + }, + "linking_list": [ + [ + "language", + "tv_channel.language" + ], + [ + "language", + "Broadcasting_Channel.language" + ], + [ + "language", + "Television_Channel.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.language" + ], + [ + 0, + "Broadcasting_Channel.language" + ], + [ + 0, + "Television_Channel.language" + ] + ], + "linking_list_col": [ + [ + "tv_channel.id", + "broadcasting_channel.id" + ], + [ + "tv_channel.id", + "television_channel.id" + ], + [ + "broadcasting_channel.id", + "television_channel.id" + ], + [ + "tv_channel.series_name", + "broadcasting_channel.series_name" + ], + [ + "tv_channel.series_name", + "television_channel.series_name" + ], + [ + "broadcasting_channel.series_name", + "television_channel.series_name" + ], + [ + "tv_channel.country", + "broadcasting_channel.country" + ], + [ + "tv_channel.country", + "television_channel.country" + ], + [ + "broadcasting_channel.country", + "television_channel.country" + ], + [ + "tv_channel.language", + "broadcasting_channel.language" + ], + [ + "tv_channel.language", + "television_channel.language" + ], + [ + "broadcasting_channel.language", + "television_channel.language" + ], + [ + "tv_channel.content", + "broadcasting_channel.content" + ], + [ + "tv_channel.content", + "television_channel.content" + ], + [ + "broadcasting_channel.content", + "television_channel.content" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "broadcasting_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "broadcasting_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.hight_definition_tv", + "broadcasting_channel.hight_definition_tv" + ], + [ + "tv_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "broadcasting_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "tv_channel.pay_per_view_ppv", + "broadcasting_channel.pay_per_view_ppv" + ], + [ + "tv_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "broadcasting_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "tv_channel.package_option", + "broadcasting_channel.package_option" + ], + [ + "tv_channel.package_option", + "television_channel.package_option" + ], + [ + "broadcasting_channel.package_option", + "television_channel.package_option" + ] + ] + }, + { + "question": "for each #language# , list the number of tv channels that use it.", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "Broadcasting_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "Television_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ] + }, + "linking_list": [ + [ + "language", + "tv_channel.language" + ], + [ + "language", + "Broadcasting_Channel.language" + ], + [ + "language", + "Television_Channel.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.language" + ], + [ + 0, + "Broadcasting_Channel.language" + ], + [ + 0, + "Television_Channel.language" + ] + ], + "linking_list_col": [ + [ + "tv_channel.id", + "broadcasting_channel.id" + ], + [ + "tv_channel.id", + "television_channel.id" + ], + [ + "broadcasting_channel.id", + "television_channel.id" + ], + [ + "tv_channel.series_name", + "broadcasting_channel.series_name" + ], + [ + "tv_channel.series_name", + "television_channel.series_name" + ], + [ + "broadcasting_channel.series_name", + "television_channel.series_name" + ], + [ + "tv_channel.country", + "broadcasting_channel.country" + ], + [ + "tv_channel.country", + "television_channel.country" + ], + [ + "broadcasting_channel.country", + "television_channel.country" + ], + [ + "tv_channel.language", + "broadcasting_channel.language" + ], + [ + "tv_channel.language", + "television_channel.language" + ], + [ + "broadcasting_channel.language", + "television_channel.language" + ], + [ + "tv_channel.content", + "broadcasting_channel.content" + ], + [ + "tv_channel.content", + "television_channel.content" + ], + [ + "broadcasting_channel.content", + "television_channel.content" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "broadcasting_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "broadcasting_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.hight_definition_tv", + "broadcasting_channel.hight_definition_tv" + ], + [ + "tv_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "broadcasting_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "tv_channel.pay_per_view_ppv", + "broadcasting_channel.pay_per_view_ppv" + ], + [ + "tv_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "broadcasting_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "tv_channel.package_option", + "broadcasting_channel.package_option" + ], + [ + "tv_channel.package_option", + "television_channel.package_option" + ], + [ + "broadcasting_channel.package_option", + "television_channel.package_option" + ] + ] + }, + { + "question": "list the #title# of all cartoons showed on tv channel with series name \"sky radio\".", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "animated_series": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "toons": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "title", + "cartoon.title" + ], + [ + "title", + "animated_series.title" + ], + [ + "title", + "toons.title" + ] + ], + "linking_list_idx": [ + [ + 0, + "cartoon.title" + ], + [ + 0, + "animated_series.title" + ], + [ + 0, + "toons.title" + ] + ], + "linking_list_col": [ + [ + "cartoon.id", + "animated_series.id" + ], + [ + "cartoon.id", + "toons.id" + ], + [ + "animated_series.id", + "toons.id" + ], + [ + "cartoon.title", + "animated_series.title" + ], + [ + "cartoon.title", + "toons.title" + ], + [ + "animated_series.title", + "toons.title" + ], + [ + "cartoon.directed_by", + "animated_series.directed_by" + ], + [ + "cartoon.directed_by", + "toons.directed_by" + ], + [ + "animated_series.directed_by", + "toons.directed_by" + ], + [ + "cartoon.written_by", + "animated_series.written_by" + ], + [ + "cartoon.written_by", + "toons.written_by" + ], + [ + "animated_series.written_by", + "toons.written_by" + ], + [ + "cartoon.original_air_date", + "animated_series.original_air_date" + ], + [ + "cartoon.original_air_date", + "toons.original_air_date" + ], + [ + "animated_series.original_air_date", + "toons.original_air_date" + ], + [ + "cartoon.production_code", + "animated_series.production_code" + ], + [ + "cartoon.production_code", + "toons.production_code" + ], + [ + "animated_series.production_code", + "toons.production_code" + ], + [ + "cartoon.channel", + "animated_series.channel" + ], + [ + "cartoon.channel", + "toons.channel" + ], + [ + "animated_series.channel", + "toons.channel" + ] + ] + }, + { + "question": "what is the #title# of all the cartools that are on the tv channel with the series name \"sky radio\"?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "animated_series": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "toons": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "title", + "cartoon.title" + ], + [ + "title", + "animated_series.title" + ], + [ + "title", + "toons.title" + ] + ], + "linking_list_idx": [ + [ + 0, + "cartoon.title" + ], + [ + 0, + "animated_series.title" + ], + [ + 0, + "toons.title" + ] + ], + "linking_list_col": [ + [ + "cartoon.id", + "animated_series.id" + ], + [ + "cartoon.id", + "toons.id" + ], + [ + "animated_series.id", + "toons.id" + ], + [ + "cartoon.title", + "animated_series.title" + ], + [ + "cartoon.title", + "toons.title" + ], + [ + "animated_series.title", + "toons.title" + ], + [ + "cartoon.directed_by", + "animated_series.directed_by" + ], + [ + "cartoon.directed_by", + "toons.directed_by" + ], + [ + "animated_series.directed_by", + "toons.directed_by" + ], + [ + "cartoon.written_by", + "animated_series.written_by" + ], + [ + "cartoon.written_by", + "toons.written_by" + ], + [ + "animated_series.written_by", + "toons.written_by" + ], + [ + "cartoon.original_air_date", + "animated_series.original_air_date" + ], + [ + "cartoon.original_air_date", + "toons.original_air_date" + ], + [ + "animated_series.original_air_date", + "toons.original_air_date" + ], + [ + "cartoon.production_code", + "animated_series.production_code" + ], + [ + "cartoon.production_code", + "toons.production_code" + ], + [ + "animated_series.production_code", + "toons.production_code" + ], + [ + "cartoon.channel", + "animated_series.channel" + ], + [ + "cartoon.channel", + "toons.channel" + ], + [ + "animated_series.channel", + "toons.channel" + ] + ] + }, + { + "question": "list the #episode# of all tv series sorted by rating.", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "TV_show": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "TV_program": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ] + }, + "linking_list": [ + [ + "Episode", + "tv_series.episode" + ], + [ + "Episode", + "TV_show.episode" + ], + [ + "Episode", + "TV_program.episode" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_series.episode" + ], + [ + 0, + "TV_show.episode" + ], + [ + 0, + "TV_program.episode" + ] + ], + "linking_list_col": [ + [ + "tv_series.id", + "tv_show.id" + ], + [ + "tv_series.id", + "tv_program.id" + ], + [ + "tv_show.id", + "tv_program.id" + ], + [ + "tv_series.episode", + "tv_show.episode" + ], + [ + "tv_series.episode", + "tv_program.episode" + ], + [ + "tv_show.episode", + "tv_program.episode" + ], + [ + "tv_series.air_date", + "tv_show.air_date" + ], + [ + "tv_series.air_date", + "tv_program.air_date" + ], + [ + "tv_show.air_date", + "tv_program.air_date" + ], + [ + "tv_series.rating", + "tv_show.rating" + ], + [ + "tv_series.rating", + "tv_program.rating" + ], + [ + "tv_show.rating", + "tv_program.rating" + ], + [ + "tv_series.share", + "tv_show.share" + ], + [ + "tv_series.share", + "tv_program.share" + ], + [ + "tv_show.share", + "tv_program.share" + ], + [ + "tv_series.18_49_rating_share", + "tv_show.18_49_rating_share" + ], + [ + "tv_series.18_49_rating_share", + "tv_program.18_49_rating_share" + ], + [ + "tv_show.18_49_rating_share", + "tv_program.18_49_rating_share" + ], + [ + "tv_series.viewers_m", + "tv_show.viewers_m" + ], + [ + "tv_series.viewers_m", + "tv_program.viewers_m" + ], + [ + "tv_show.viewers_m", + "tv_program.viewers_m" + ], + [ + "tv_series.weekly_rank", + "tv_show.weekly_rank" + ], + [ + "tv_series.weekly_rank", + "tv_program.weekly_rank" + ], + [ + "tv_show.weekly_rank", + "tv_program.weekly_rank" + ], + [ + "tv_series.channel", + "tv_show.channel" + ], + [ + "tv_series.channel", + "tv_program.channel" + ], + [ + "tv_show.channel", + "tv_program.channel" + ] + ] + }, + { + "question": "what are all of the #episodes# ordered by ratings?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "TV_show": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "TV_program": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ] + }, + "linking_list": [ + [ + "episodes", + "tv_series.episode" + ], + [ + "episodes", + "TV_show.episode" + ], + [ + "episodes", + "TV_program.episode" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_series.episode" + ], + [ + 0, + "TV_show.episode" + ], + [ + 0, + "TV_program.episode" + ] + ], + "linking_list_col": [ + [ + "tv_series.id", + "tv_show.id" + ], + [ + "tv_series.id", + "tv_program.id" + ], + [ + "tv_show.id", + "tv_program.id" + ], + [ + "tv_series.episode", + "tv_show.episode" + ], + [ + "tv_series.episode", + "tv_program.episode" + ], + [ + "tv_show.episode", + "tv_program.episode" + ], + [ + "tv_series.air_date", + "tv_show.air_date" + ], + [ + "tv_series.air_date", + "tv_program.air_date" + ], + [ + "tv_show.air_date", + "tv_program.air_date" + ], + [ + "tv_series.rating", + "tv_show.rating" + ], + [ + "tv_series.rating", + "tv_program.rating" + ], + [ + "tv_show.rating", + "tv_program.rating" + ], + [ + "tv_series.share", + "tv_show.share" + ], + [ + "tv_series.share", + "tv_program.share" + ], + [ + "tv_show.share", + "tv_program.share" + ], + [ + "tv_series.18_49_rating_share", + "tv_show.18_49_rating_share" + ], + [ + "tv_series.18_49_rating_share", + "tv_program.18_49_rating_share" + ], + [ + "tv_show.18_49_rating_share", + "tv_program.18_49_rating_share" + ], + [ + "tv_series.viewers_m", + "tv_show.viewers_m" + ], + [ + "tv_series.viewers_m", + "tv_program.viewers_m" + ], + [ + "tv_show.viewers_m", + "tv_program.viewers_m" + ], + [ + "tv_series.weekly_rank", + "tv_show.weekly_rank" + ], + [ + "tv_series.weekly_rank", + "tv_program.weekly_rank" + ], + [ + "tv_show.weekly_rank", + "tv_program.weekly_rank" + ], + [ + "tv_series.channel", + "tv_show.channel" + ], + [ + "tv_series.channel", + "tv_program.channel" + ], + [ + "tv_show.channel", + "tv_program.channel" + ] + ] + }, + { + "question": "list top 3 highest #rating# tv series. list the tv series's #episode# and rating.", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "TV_show": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "TV_program": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ] + }, + "linking_list": [ + [ + "Rating", + "tv_series.rating" + ], + [ + "Rating", + "TV_show.rating" + ], + [ + "Rating", + "TV_program.rating" + ], + [ + "Episode", + "tv_series.episode" + ], + [ + "Episode", + "TV_show.episode" + ], + [ + "Episode", + "TV_program.episode" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_series.rating" + ], + [ + 0, + "TV_show.rating" + ], + [ + 0, + "TV_program.rating" + ], + [ + 1, + "tv_series.episode" + ], + [ + 1, + "TV_show.episode" + ], + [ + 1, + "TV_program.episode" + ] + ], + "linking_list_col": [ + [ + "tv_series.id", + "tv_show.id" + ], + [ + "tv_series.id", + "tv_program.id" + ], + [ + "tv_show.id", + "tv_program.id" + ], + [ + "tv_series.episode", + "tv_show.episode" + ], + [ + "tv_series.episode", + "tv_program.episode" + ], + [ + "tv_show.episode", + "tv_program.episode" + ], + [ + "tv_series.air_date", + "tv_show.air_date" + ], + [ + "tv_series.air_date", + "tv_program.air_date" + ], + [ + "tv_show.air_date", + "tv_program.air_date" + ], + [ + "tv_series.rating", + "tv_show.rating" + ], + [ + "tv_series.rating", + "tv_program.rating" + ], + [ + "tv_show.rating", + "tv_program.rating" + ], + [ + "tv_series.share", + "tv_show.share" + ], + [ + "tv_series.share", + "tv_program.share" + ], + [ + "tv_show.share", + "tv_program.share" + ], + [ + "tv_series.18_49_rating_share", + "tv_show.18_49_rating_share" + ], + [ + "tv_series.18_49_rating_share", + "tv_program.18_49_rating_share" + ], + [ + "tv_show.18_49_rating_share", + "tv_program.18_49_rating_share" + ], + [ + "tv_series.viewers_m", + "tv_show.viewers_m" + ], + [ + "tv_series.viewers_m", + "tv_program.viewers_m" + ], + [ + "tv_show.viewers_m", + "tv_program.viewers_m" + ], + [ + "tv_series.weekly_rank", + "tv_show.weekly_rank" + ], + [ + "tv_series.weekly_rank", + "tv_program.weekly_rank" + ], + [ + "tv_show.weekly_rank", + "tv_program.weekly_rank" + ], + [ + "tv_series.channel", + "tv_show.channel" + ], + [ + "tv_series.channel", + "tv_program.channel" + ], + [ + "tv_show.channel", + "tv_program.channel" + ] + ] + }, + { + "question": "what is the #air date# of tv series with #episode# \"a love of a lifetime\"?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "TV_show": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "TV_program": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ] + }, + "linking_list": [ + [ + "air date", + "tv_series.air_date" + ], + [ + "air date", + "TV_show.air_date" + ], + [ + "air date", + "TV_program.air_date" + ], + [ + "Episode", + "tv_series.episode" + ], + [ + "Episode", + "TV_show.episode" + ], + [ + "Episode", + "TV_program.episode" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_series.air_date" + ], + [ + 0, + "TV_show.air_date" + ], + [ + 0, + "TV_program.air_date" + ], + [ + 1, + "tv_series.episode" + ], + [ + 1, + "TV_show.episode" + ], + [ + 1, + "TV_program.episode" + ] + ], + "linking_list_col": [ + [ + "tv_series.id", + "tv_show.id" + ], + [ + "tv_series.id", + "tv_program.id" + ], + [ + "tv_show.id", + "tv_program.id" + ], + [ + "tv_series.episode", + "tv_show.episode" + ], + [ + "tv_series.episode", + "tv_program.episode" + ], + [ + "tv_show.episode", + "tv_program.episode" + ], + [ + "tv_series.air_date", + "tv_show.air_date" + ], + [ + "tv_series.air_date", + "tv_program.air_date" + ], + [ + "tv_show.air_date", + "tv_program.air_date" + ], + [ + "tv_series.rating", + "tv_show.rating" + ], + [ + "tv_series.rating", + "tv_program.rating" + ], + [ + "tv_show.rating", + "tv_program.rating" + ], + [ + "tv_series.share", + "tv_show.share" + ], + [ + "tv_series.share", + "tv_program.share" + ], + [ + "tv_show.share", + "tv_program.share" + ], + [ + "tv_series.18_49_rating_share", + "tv_show.18_49_rating_share" + ], + [ + "tv_series.18_49_rating_share", + "tv_program.18_49_rating_share" + ], + [ + "tv_show.18_49_rating_share", + "tv_program.18_49_rating_share" + ], + [ + "tv_series.viewers_m", + "tv_show.viewers_m" + ], + [ + "tv_series.viewers_m", + "tv_program.viewers_m" + ], + [ + "tv_show.viewers_m", + "tv_program.viewers_m" + ], + [ + "tv_series.weekly_rank", + "tv_show.weekly_rank" + ], + [ + "tv_series.weekly_rank", + "tv_program.weekly_rank" + ], + [ + "tv_show.weekly_rank", + "tv_program.weekly_rank" + ], + [ + "tv_series.channel", + "tv_show.channel" + ], + [ + "tv_series.channel", + "tv_program.channel" + ], + [ + "tv_show.channel", + "tv_program.channel" + ] + ] + }, + { + "question": "when did the #episode# \"a love of a lifetime\" air?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "TV_show": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "TV_program": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ] + }, + "linking_list": [ + [ + "episode", + "tv_series.episode" + ], + [ + "episode", + "TV_show.episode" + ], + [ + "episode", + "TV_program.episode" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_series.episode" + ], + [ + 0, + "TV_show.episode" + ], + [ + 0, + "TV_program.episode" + ] + ], + "linking_list_col": [ + [ + "tv_series.id", + "tv_show.id" + ], + [ + "tv_series.id", + "tv_program.id" + ], + [ + "tv_show.id", + "tv_program.id" + ], + [ + "tv_series.episode", + "tv_show.episode" + ], + [ + "tv_series.episode", + "tv_program.episode" + ], + [ + "tv_show.episode", + "tv_program.episode" + ], + [ + "tv_series.air_date", + "tv_show.air_date" + ], + [ + "tv_series.air_date", + "tv_program.air_date" + ], + [ + "tv_show.air_date", + "tv_program.air_date" + ], + [ + "tv_series.rating", + "tv_show.rating" + ], + [ + "tv_series.rating", + "tv_program.rating" + ], + [ + "tv_show.rating", + "tv_program.rating" + ], + [ + "tv_series.share", + "tv_show.share" + ], + [ + "tv_series.share", + "tv_program.share" + ], + [ + "tv_show.share", + "tv_program.share" + ], + [ + "tv_series.18_49_rating_share", + "tv_show.18_49_rating_share" + ], + [ + "tv_series.18_49_rating_share", + "tv_program.18_49_rating_share" + ], + [ + "tv_show.18_49_rating_share", + "tv_program.18_49_rating_share" + ], + [ + "tv_series.viewers_m", + "tv_show.viewers_m" + ], + [ + "tv_series.viewers_m", + "tv_program.viewers_m" + ], + [ + "tv_show.viewers_m", + "tv_program.viewers_m" + ], + [ + "tv_series.weekly_rank", + "tv_show.weekly_rank" + ], + [ + "tv_series.weekly_rank", + "tv_program.weekly_rank" + ], + [ + "tv_show.weekly_rank", + "tv_program.weekly_rank" + ], + [ + "tv_series.channel", + "tv_show.channel" + ], + [ + "tv_series.channel", + "tv_program.channel" + ], + [ + "tv_show.channel", + "tv_program.channel" + ] + ] + }, + { + "question": "what is #weekly rank# of tv series with #episode# \"a love of a lifetime\"?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "TV_show": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "TV_program": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ] + }, + "linking_list": [ + [ + "Weekly Rank", + "tv_series.weekly_rank" + ], + [ + "Weekly Rank", + "TV_show.weekly_rank" + ], + [ + "Weekly Rank", + "TV_program.weekly_rank" + ], + [ + "Episode", + "tv_series.episode" + ], + [ + "Episode", + "TV_show.episode" + ], + [ + "Episode", + "TV_program.episode" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_series.weekly_rank" + ], + [ + 0, + "TV_show.weekly_rank" + ], + [ + 0, + "TV_program.weekly_rank" + ], + [ + 1, + "tv_series.episode" + ], + [ + 1, + "TV_show.episode" + ], + [ + 1, + "TV_program.episode" + ] + ], + "linking_list_col": [ + [ + "tv_series.id", + "tv_show.id" + ], + [ + "tv_series.id", + "tv_program.id" + ], + [ + "tv_show.id", + "tv_program.id" + ], + [ + "tv_series.episode", + "tv_show.episode" + ], + [ + "tv_series.episode", + "tv_program.episode" + ], + [ + "tv_show.episode", + "tv_program.episode" + ], + [ + "tv_series.air_date", + "tv_show.air_date" + ], + [ + "tv_series.air_date", + "tv_program.air_date" + ], + [ + "tv_show.air_date", + "tv_program.air_date" + ], + [ + "tv_series.rating", + "tv_show.rating" + ], + [ + "tv_series.rating", + "tv_program.rating" + ], + [ + "tv_show.rating", + "tv_program.rating" + ], + [ + "tv_series.share", + "tv_show.share" + ], + [ + "tv_series.share", + "tv_program.share" + ], + [ + "tv_show.share", + "tv_program.share" + ], + [ + "tv_series.18_49_rating_share", + "tv_show.18_49_rating_share" + ], + [ + "tv_series.18_49_rating_share", + "tv_program.18_49_rating_share" + ], + [ + "tv_show.18_49_rating_share", + "tv_program.18_49_rating_share" + ], + [ + "tv_series.viewers_m", + "tv_show.viewers_m" + ], + [ + "tv_series.viewers_m", + "tv_program.viewers_m" + ], + [ + "tv_show.viewers_m", + "tv_program.viewers_m" + ], + [ + "tv_series.weekly_rank", + "tv_show.weekly_rank" + ], + [ + "tv_series.weekly_rank", + "tv_program.weekly_rank" + ], + [ + "tv_show.weekly_rank", + "tv_program.weekly_rank" + ], + [ + "tv_series.channel", + "tv_show.channel" + ], + [ + "tv_series.channel", + "tv_program.channel" + ], + [ + "tv_show.channel", + "tv_program.channel" + ] + ] + }, + { + "question": "what is the #weekly rank for the episode# \"a love of a lifetime\"?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "TV_show": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "TV_program": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ] + }, + "linking_list": [ + [ + "weekly rank for the episode", + "tv_series.weekly_rank" + ], + [ + "weekly rank for the episode", + "TV_show.weekly_rank" + ], + [ + "weekly rank for the episode", + "TV_program.weekly_rank" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_series.weekly_rank" + ], + [ + 0, + "TV_show.weekly_rank" + ], + [ + 0, + "TV_program.weekly_rank" + ] + ], + "linking_list_col": [ + [ + "tv_series.id", + "tv_show.id" + ], + [ + "tv_series.id", + "tv_program.id" + ], + [ + "tv_show.id", + "tv_program.id" + ], + [ + "tv_series.episode", + "tv_show.episode" + ], + [ + "tv_series.episode", + "tv_program.episode" + ], + [ + "tv_show.episode", + "tv_program.episode" + ], + [ + "tv_series.air_date", + "tv_show.air_date" + ], + [ + "tv_series.air_date", + "tv_program.air_date" + ], + [ + "tv_show.air_date", + "tv_program.air_date" + ], + [ + "tv_series.rating", + "tv_show.rating" + ], + [ + "tv_series.rating", + "tv_program.rating" + ], + [ + "tv_show.rating", + "tv_program.rating" + ], + [ + "tv_series.share", + "tv_show.share" + ], + [ + "tv_series.share", + "tv_program.share" + ], + [ + "tv_show.share", + "tv_program.share" + ], + [ + "tv_series.18_49_rating_share", + "tv_show.18_49_rating_share" + ], + [ + "tv_series.18_49_rating_share", + "tv_program.18_49_rating_share" + ], + [ + "tv_show.18_49_rating_share", + "tv_program.18_49_rating_share" + ], + [ + "tv_series.viewers_m", + "tv_show.viewers_m" + ], + [ + "tv_series.viewers_m", + "tv_program.viewers_m" + ], + [ + "tv_show.viewers_m", + "tv_program.viewers_m" + ], + [ + "tv_series.weekly_rank", + "tv_show.weekly_rank" + ], + [ + "tv_series.weekly_rank", + "tv_program.weekly_rank" + ], + [ + "tv_show.weekly_rank", + "tv_program.weekly_rank" + ], + [ + "tv_series.channel", + "tv_show.channel" + ], + [ + "tv_series.channel", + "tv_program.channel" + ], + [ + "tv_show.channel", + "tv_program.channel" + ] + ] + }, + { + "question": "what is the tv channel of tv series with #episode# \"a love of a lifetime\"? list the #tv channel's series name# .", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "TV_show": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "TV_program": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ] + }, + "linking_list": [ + [ + "Episode", + "tv_series.episode" + ], + [ + "Episode", + "TV_show.episode" + ], + [ + "Episode", + "TV_program.episode" + ], + [ + "TV Channel's series name", + "tv_channel.series_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_series.episode" + ], + [ + 0, + "TV_show.episode" + ], + [ + 0, + "TV_program.episode" + ], + [ + 1, + "tv_channel.series_name" + ] + ], + "linking_list_col": [ + [ + "tv_series.id", + "tv_show.id" + ], + [ + "tv_series.id", + "tv_program.id" + ], + [ + "tv_show.id", + "tv_program.id" + ], + [ + "tv_series.episode", + "tv_show.episode" + ], + [ + "tv_series.episode", + "tv_program.episode" + ], + [ + "tv_show.episode", + "tv_program.episode" + ], + [ + "tv_series.air_date", + "tv_show.air_date" + ], + [ + "tv_series.air_date", + "tv_program.air_date" + ], + [ + "tv_show.air_date", + "tv_program.air_date" + ], + [ + "tv_series.rating", + "tv_show.rating" + ], + [ + "tv_series.rating", + "tv_program.rating" + ], + [ + "tv_show.rating", + "tv_program.rating" + ], + [ + "tv_series.share", + "tv_show.share" + ], + [ + "tv_series.share", + "tv_program.share" + ], + [ + "tv_show.share", + "tv_program.share" + ], + [ + "tv_series.18_49_rating_share", + "tv_show.18_49_rating_share" + ], + [ + "tv_series.18_49_rating_share", + "tv_program.18_49_rating_share" + ], + [ + "tv_show.18_49_rating_share", + "tv_program.18_49_rating_share" + ], + [ + "tv_series.viewers_m", + "tv_show.viewers_m" + ], + [ + "tv_series.viewers_m", + "tv_program.viewers_m" + ], + [ + "tv_show.viewers_m", + "tv_program.viewers_m" + ], + [ + "tv_series.weekly_rank", + "tv_show.weekly_rank" + ], + [ + "tv_series.weekly_rank", + "tv_program.weekly_rank" + ], + [ + "tv_show.weekly_rank", + "tv_program.weekly_rank" + ], + [ + "tv_series.channel", + "tv_show.channel" + ], + [ + "tv_series.channel", + "tv_program.channel" + ], + [ + "tv_show.channel", + "tv_program.channel" + ] + ] + }, + { + "question": "what is the name of the series that has the #episode# \"a love of a lifetime\"?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "TV_show": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "TV_program": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ] + }, + "linking_list": [ + [ + "episode", + "tv_series.episode" + ], + [ + "episode", + "TV_show.episode" + ], + [ + "episode", + "TV_program.episode" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_series.episode" + ], + [ + 0, + "TV_show.episode" + ], + [ + 0, + "TV_program.episode" + ] + ], + "linking_list_col": [ + [ + "tv_series.id", + "tv_show.id" + ], + [ + "tv_series.id", + "tv_program.id" + ], + [ + "tv_show.id", + "tv_program.id" + ], + [ + "tv_series.episode", + "tv_show.episode" + ], + [ + "tv_series.episode", + "tv_program.episode" + ], + [ + "tv_show.episode", + "tv_program.episode" + ], + [ + "tv_series.air_date", + "tv_show.air_date" + ], + [ + "tv_series.air_date", + "tv_program.air_date" + ], + [ + "tv_show.air_date", + "tv_program.air_date" + ], + [ + "tv_series.rating", + "tv_show.rating" + ], + [ + "tv_series.rating", + "tv_program.rating" + ], + [ + "tv_show.rating", + "tv_program.rating" + ], + [ + "tv_series.share", + "tv_show.share" + ], + [ + "tv_series.share", + "tv_program.share" + ], + [ + "tv_show.share", + "tv_program.share" + ], + [ + "tv_series.18_49_rating_share", + "tv_show.18_49_rating_share" + ], + [ + "tv_series.18_49_rating_share", + "tv_program.18_49_rating_share" + ], + [ + "tv_show.18_49_rating_share", + "tv_program.18_49_rating_share" + ], + [ + "tv_series.viewers_m", + "tv_show.viewers_m" + ], + [ + "tv_series.viewers_m", + "tv_program.viewers_m" + ], + [ + "tv_show.viewers_m", + "tv_program.viewers_m" + ], + [ + "tv_series.weekly_rank", + "tv_show.weekly_rank" + ], + [ + "tv_series.weekly_rank", + "tv_program.weekly_rank" + ], + [ + "tv_show.weekly_rank", + "tv_program.weekly_rank" + ], + [ + "tv_series.channel", + "tv_show.channel" + ], + [ + "tv_series.channel", + "tv_program.channel" + ], + [ + "tv_show.channel", + "tv_program.channel" + ] + ] + }, + { + "question": "list the #episode# of all tv series showed on tv channel with #series name# \"sky radio\".", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "TV_show": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "TV_program": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ] + }, + "linking_list": [ + [ + "Episode", + "tv_series.episode" + ], + [ + "Episode", + "TV_show.episode" + ], + [ + "Episode", + "TV_program.episode" + ], + [ + "series name", + "tv_channel.series_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_series.episode" + ], + [ + 0, + "TV_show.episode" + ], + [ + 0, + "TV_program.episode" + ], + [ + 1, + "tv_channel.series_name" + ] + ], + "linking_list_col": [ + [ + "tv_series.id", + "tv_show.id" + ], + [ + "tv_series.id", + "tv_program.id" + ], + [ + "tv_show.id", + "tv_program.id" + ], + [ + "tv_series.episode", + "tv_show.episode" + ], + [ + "tv_series.episode", + "tv_program.episode" + ], + [ + "tv_show.episode", + "tv_program.episode" + ], + [ + "tv_series.air_date", + "tv_show.air_date" + ], + [ + "tv_series.air_date", + "tv_program.air_date" + ], + [ + "tv_show.air_date", + "tv_program.air_date" + ], + [ + "tv_series.rating", + "tv_show.rating" + ], + [ + "tv_series.rating", + "tv_program.rating" + ], + [ + "tv_show.rating", + "tv_program.rating" + ], + [ + "tv_series.share", + "tv_show.share" + ], + [ + "tv_series.share", + "tv_program.share" + ], + [ + "tv_show.share", + "tv_program.share" + ], + [ + "tv_series.18_49_rating_share", + "tv_show.18_49_rating_share" + ], + [ + "tv_series.18_49_rating_share", + "tv_program.18_49_rating_share" + ], + [ + "tv_show.18_49_rating_share", + "tv_program.18_49_rating_share" + ], + [ + "tv_series.viewers_m", + "tv_show.viewers_m" + ], + [ + "tv_series.viewers_m", + "tv_program.viewers_m" + ], + [ + "tv_show.viewers_m", + "tv_program.viewers_m" + ], + [ + "tv_series.weekly_rank", + "tv_show.weekly_rank" + ], + [ + "tv_series.weekly_rank", + "tv_program.weekly_rank" + ], + [ + "tv_show.weekly_rank", + "tv_program.weekly_rank" + ], + [ + "tv_series.channel", + "tv_show.channel" + ], + [ + "tv_series.channel", + "tv_program.channel" + ], + [ + "tv_show.channel", + "tv_program.channel" + ] + ] + }, + { + "question": "what is the #episode# for the tv series named \"sky radio\"?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "TV_show": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "TV_program": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ] + }, + "linking_list": [ + [ + "episode", + "tv_series.episode" + ], + [ + "episode", + "TV_show.episode" + ], + [ + "episode", + "TV_program.episode" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_series.episode" + ], + [ + 0, + "TV_show.episode" + ], + [ + 0, + "TV_program.episode" + ] + ], + "linking_list_col": [ + [ + "tv_series.id", + "tv_show.id" + ], + [ + "tv_series.id", + "tv_program.id" + ], + [ + "tv_show.id", + "tv_program.id" + ], + [ + "tv_series.episode", + "tv_show.episode" + ], + [ + "tv_series.episode", + "tv_program.episode" + ], + [ + "tv_show.episode", + "tv_program.episode" + ], + [ + "tv_series.air_date", + "tv_show.air_date" + ], + [ + "tv_series.air_date", + "tv_program.air_date" + ], + [ + "tv_show.air_date", + "tv_program.air_date" + ], + [ + "tv_series.rating", + "tv_show.rating" + ], + [ + "tv_series.rating", + "tv_program.rating" + ], + [ + "tv_show.rating", + "tv_program.rating" + ], + [ + "tv_series.share", + "tv_show.share" + ], + [ + "tv_series.share", + "tv_program.share" + ], + [ + "tv_show.share", + "tv_program.share" + ], + [ + "tv_series.18_49_rating_share", + "tv_show.18_49_rating_share" + ], + [ + "tv_series.18_49_rating_share", + "tv_program.18_49_rating_share" + ], + [ + "tv_show.18_49_rating_share", + "tv_program.18_49_rating_share" + ], + [ + "tv_series.viewers_m", + "tv_show.viewers_m" + ], + [ + "tv_series.viewers_m", + "tv_program.viewers_m" + ], + [ + "tv_show.viewers_m", + "tv_program.viewers_m" + ], + [ + "tv_series.weekly_rank", + "tv_show.weekly_rank" + ], + [ + "tv_series.weekly_rank", + "tv_program.weekly_rank" + ], + [ + "tv_show.weekly_rank", + "tv_program.weekly_rank" + ], + [ + "tv_series.channel", + "tv_show.channel" + ], + [ + "tv_series.channel", + "tv_program.channel" + ], + [ + "tv_show.channel", + "tv_program.channel" + ] + ] + }, + { + "question": "how many cartoons did each #director# create?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "animated_series": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "toons": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "director", + "cartoon.directed_by" + ], + [ + "director", + "animated_series.directed_by" + ], + [ + "director", + "toons.directed_by" + ] + ], + "linking_list_idx": [ + [ + 0, + "cartoon.directed_by" + ], + [ + 0, + "animated_series.directed_by" + ], + [ + 0, + "toons.directed_by" + ] + ], + "linking_list_col": [ + [ + "cartoon.id", + "animated_series.id" + ], + [ + "cartoon.id", + "toons.id" + ], + [ + "animated_series.id", + "toons.id" + ], + [ + "cartoon.title", + "animated_series.title" + ], + [ + "cartoon.title", + "toons.title" + ], + [ + "animated_series.title", + "toons.title" + ], + [ + "cartoon.directed_by", + "animated_series.directed_by" + ], + [ + "cartoon.directed_by", + "toons.directed_by" + ], + [ + "animated_series.directed_by", + "toons.directed_by" + ], + [ + "cartoon.written_by", + "animated_series.written_by" + ], + [ + "cartoon.written_by", + "toons.written_by" + ], + [ + "animated_series.written_by", + "toons.written_by" + ], + [ + "cartoon.original_air_date", + "animated_series.original_air_date" + ], + [ + "cartoon.original_air_date", + "toons.original_air_date" + ], + [ + "animated_series.original_air_date", + "toons.original_air_date" + ], + [ + "cartoon.production_code", + "animated_series.production_code" + ], + [ + "cartoon.production_code", + "toons.production_code" + ], + [ + "animated_series.production_code", + "toons.production_code" + ], + [ + "cartoon.channel", + "animated_series.channel" + ], + [ + "cartoon.channel", + "toons.channel" + ], + [ + "animated_series.channel", + "toons.channel" + ] + ] + }, + { + "question": "find the #package choice# and #series name# of the tv channel that has high definition tv.", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "Broadcasting_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "Television_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ] + }, + "linking_list": [ + [ + "package choice", + "tv_channel.package_option" + ], + [ + "package choice", + "Broadcasting_Channel.package_option" + ], + [ + "package choice", + "Television_Channel.package_option" + ], + [ + "series name", + "tv_channel.series_name" + ], + [ + "series name", + "Broadcasting_Channel.series_name" + ], + [ + "series name", + "Television_Channel.series_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.package_option" + ], + [ + 0, + "Broadcasting_Channel.package_option" + ], + [ + 0, + "Television_Channel.package_option" + ], + [ + 1, + "tv_channel.series_name" + ], + [ + 1, + "Broadcasting_Channel.series_name" + ], + [ + 1, + "Television_Channel.series_name" + ] + ], + "linking_list_col": [ + [ + "tv_channel.id", + "broadcasting_channel.id" + ], + [ + "tv_channel.id", + "television_channel.id" + ], + [ + "broadcasting_channel.id", + "television_channel.id" + ], + [ + "tv_channel.series_name", + "broadcasting_channel.series_name" + ], + [ + "tv_channel.series_name", + "television_channel.series_name" + ], + [ + "broadcasting_channel.series_name", + "television_channel.series_name" + ], + [ + "tv_channel.country", + "broadcasting_channel.country" + ], + [ + "tv_channel.country", + "television_channel.country" + ], + [ + "broadcasting_channel.country", + "television_channel.country" + ], + [ + "tv_channel.language", + "broadcasting_channel.language" + ], + [ + "tv_channel.language", + "television_channel.language" + ], + [ + "broadcasting_channel.language", + "television_channel.language" + ], + [ + "tv_channel.content", + "broadcasting_channel.content" + ], + [ + "tv_channel.content", + "television_channel.content" + ], + [ + "broadcasting_channel.content", + "television_channel.content" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "broadcasting_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "broadcasting_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.hight_definition_tv", + "broadcasting_channel.hight_definition_tv" + ], + [ + "tv_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "broadcasting_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "tv_channel.pay_per_view_ppv", + "broadcasting_channel.pay_per_view_ppv" + ], + [ + "tv_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "broadcasting_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "tv_channel.package_option", + "broadcasting_channel.package_option" + ], + [ + "tv_channel.package_option", + "television_channel.package_option" + ], + [ + "broadcasting_channel.package_option", + "television_channel.package_option" + ] + ] + }, + { + "question": "what are the #package options# and the #name of the series# for the tv channel that supports high definition tv?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "Broadcasting_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "Television_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ] + }, + "linking_list": [ + [ + "package options", + "tv_channel.package_option" + ], + [ + "package options", + "Broadcasting_Channel.package_option" + ], + [ + "package options", + "Television_Channel.package_option" + ], + [ + "name of the series", + "tv_channel.series_name" + ], + [ + "name of the series", + "Broadcasting_Channel.series_name" + ], + [ + "name of the series", + "Television_Channel.series_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.package_option" + ], + [ + 0, + "Broadcasting_Channel.package_option" + ], + [ + 0, + "Television_Channel.package_option" + ], + [ + 1, + "tv_channel.series_name" + ], + [ + 1, + "Broadcasting_Channel.series_name" + ], + [ + 1, + "Television_Channel.series_name" + ] + ], + "linking_list_col": [ + [ + "tv_channel.id", + "broadcasting_channel.id" + ], + [ + "tv_channel.id", + "television_channel.id" + ], + [ + "broadcasting_channel.id", + "television_channel.id" + ], + [ + "tv_channel.series_name", + "broadcasting_channel.series_name" + ], + [ + "tv_channel.series_name", + "television_channel.series_name" + ], + [ + "broadcasting_channel.series_name", + "television_channel.series_name" + ], + [ + "tv_channel.country", + "broadcasting_channel.country" + ], + [ + "tv_channel.country", + "television_channel.country" + ], + [ + "broadcasting_channel.country", + "television_channel.country" + ], + [ + "tv_channel.language", + "broadcasting_channel.language" + ], + [ + "tv_channel.language", + "television_channel.language" + ], + [ + "broadcasting_channel.language", + "television_channel.language" + ], + [ + "tv_channel.content", + "broadcasting_channel.content" + ], + [ + "tv_channel.content", + "television_channel.content" + ], + [ + "broadcasting_channel.content", + "television_channel.content" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "broadcasting_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "broadcasting_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.hight_definition_tv", + "broadcasting_channel.hight_definition_tv" + ], + [ + "tv_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "broadcasting_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "tv_channel.pay_per_view_ppv", + "broadcasting_channel.pay_per_view_ppv" + ], + [ + "tv_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "broadcasting_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "tv_channel.package_option", + "broadcasting_channel.package_option" + ], + [ + "tv_channel.package_option", + "television_channel.package_option" + ], + [ + "broadcasting_channel.package_option", + "television_channel.package_option" + ] + ] + }, + { + "question": "which countries' tv channels are playing some #cartoon# written by todd casey?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "animated_series": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "toons": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "cartoon", + "cartoon.written_by" + ], + [ + "cartoon", + "animated_series.written_by" + ], + [ + "cartoon", + "toons.written_by" + ] + ], + "linking_list_idx": [ + [ + 0, + "cartoon.written_by" + ], + [ + 0, + "animated_series.written_by" + ], + [ + 0, + "toons.written_by" + ] + ], + "linking_list_col": [ + [ + "cartoon.id", + "animated_series.id" + ], + [ + "cartoon.id", + "toons.id" + ], + [ + "animated_series.id", + "toons.id" + ], + [ + "cartoon.title", + "animated_series.title" + ], + [ + "cartoon.title", + "toons.title" + ], + [ + "animated_series.title", + "toons.title" + ], + [ + "cartoon.directed_by", + "animated_series.directed_by" + ], + [ + "cartoon.directed_by", + "toons.directed_by" + ], + [ + "animated_series.directed_by", + "toons.directed_by" + ], + [ + "cartoon.written_by", + "animated_series.written_by" + ], + [ + "cartoon.written_by", + "toons.written_by" + ], + [ + "animated_series.written_by", + "toons.written_by" + ], + [ + "cartoon.original_air_date", + "animated_series.original_air_date" + ], + [ + "cartoon.original_air_date", + "toons.original_air_date" + ], + [ + "animated_series.original_air_date", + "toons.original_air_date" + ], + [ + "cartoon.production_code", + "animated_series.production_code" + ], + [ + "cartoon.production_code", + "toons.production_code" + ], + [ + "animated_series.production_code", + "toons.production_code" + ], + [ + "cartoon.channel", + "animated_series.channel" + ], + [ + "cartoon.channel", + "toons.channel" + ], + [ + "animated_series.channel", + "toons.channel" + ] + ] + }, + { + "question": "what is the #series name# and #country# of all tv channels that are playing cartoons #directed by# ben jones and cartoons directed by michael chang?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "animated_series": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "toons": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "series name", + "tv_channel.series_name" + ], + [ + "country", + "tv_channel.country" + ], + [ + "directed by", + "cartoon.directed_by" + ], + [ + "directed by", + "animated_series.directed_by" + ], + [ + "directed by", + "toons.directed_by" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.series_name" + ], + [ + 1, + "tv_channel.country" + ], + [ + 2, + "cartoon.directed_by" + ], + [ + 2, + "animated_series.directed_by" + ], + [ + 2, + "toons.directed_by" + ] + ], + "linking_list_col": [ + [ + "cartoon.id", + "animated_series.id" + ], + [ + "cartoon.id", + "toons.id" + ], + [ + "animated_series.id", + "toons.id" + ], + [ + "cartoon.title", + "animated_series.title" + ], + [ + "cartoon.title", + "toons.title" + ], + [ + "animated_series.title", + "toons.title" + ], + [ + "cartoon.directed_by", + "animated_series.directed_by" + ], + [ + "cartoon.directed_by", + "toons.directed_by" + ], + [ + "animated_series.directed_by", + "toons.directed_by" + ], + [ + "cartoon.written_by", + "animated_series.written_by" + ], + [ + "cartoon.written_by", + "toons.written_by" + ], + [ + "animated_series.written_by", + "toons.written_by" + ], + [ + "cartoon.original_air_date", + "animated_series.original_air_date" + ], + [ + "cartoon.original_air_date", + "toons.original_air_date" + ], + [ + "animated_series.original_air_date", + "toons.original_air_date" + ], + [ + "cartoon.production_code", + "animated_series.production_code" + ], + [ + "cartoon.production_code", + "toons.production_code" + ], + [ + "animated_series.production_code", + "toons.production_code" + ], + [ + "cartoon.channel", + "animated_series.channel" + ], + [ + "cartoon.channel", + "toons.channel" + ], + [ + "animated_series.channel", + "toons.channel" + ] + ] + }, + { + "question": "find the #pixel aspect ratio# and #nation# of the tv channels that do not use english.", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "Broadcasting_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "Television_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ] + }, + "linking_list": [ + [ + "pixel aspect ratio", + "tv_channel.pixel_aspect_ratio_par" + ], + [ + "pixel aspect ratio", + "Broadcasting_Channel.pixel_aspect_ratio_par" + ], + [ + "pixel aspect ratio", + "Television_Channel.pixel_aspect_ratio_par" + ], + [ + "nation", + "tv_channel.country" + ], + [ + "nation", + "Broadcasting_Channel.country" + ], + [ + "nation", + "Television_Channel.country" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.pixel_aspect_ratio_par" + ], + [ + 0, + "Broadcasting_Channel.pixel_aspect_ratio_par" + ], + [ + 0, + "Television_Channel.pixel_aspect_ratio_par" + ], + [ + 1, + "tv_channel.country" + ], + [ + 1, + "Broadcasting_Channel.country" + ], + [ + 1, + "Television_Channel.country" + ] + ], + "linking_list_col": [ + [ + "tv_channel.id", + "broadcasting_channel.id" + ], + [ + "tv_channel.id", + "television_channel.id" + ], + [ + "broadcasting_channel.id", + "television_channel.id" + ], + [ + "tv_channel.series_name", + "broadcasting_channel.series_name" + ], + [ + "tv_channel.series_name", + "television_channel.series_name" + ], + [ + "broadcasting_channel.series_name", + "television_channel.series_name" + ], + [ + "tv_channel.country", + "broadcasting_channel.country" + ], + [ + "tv_channel.country", + "television_channel.country" + ], + [ + "broadcasting_channel.country", + "television_channel.country" + ], + [ + "tv_channel.language", + "broadcasting_channel.language" + ], + [ + "tv_channel.language", + "television_channel.language" + ], + [ + "broadcasting_channel.language", + "television_channel.language" + ], + [ + "tv_channel.content", + "broadcasting_channel.content" + ], + [ + "tv_channel.content", + "television_channel.content" + ], + [ + "broadcasting_channel.content", + "television_channel.content" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "broadcasting_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "broadcasting_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.hight_definition_tv", + "broadcasting_channel.hight_definition_tv" + ], + [ + "tv_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "broadcasting_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "tv_channel.pay_per_view_ppv", + "broadcasting_channel.pay_per_view_ppv" + ], + [ + "tv_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "broadcasting_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "tv_channel.package_option", + "broadcasting_channel.package_option" + ], + [ + "tv_channel.package_option", + "television_channel.package_option" + ], + [ + "broadcasting_channel.package_option", + "television_channel.package_option" + ] + ] + }, + { + "question": "what is the #pixel aspect ratio# and #country of origin# for all tv channels that do not use english?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "Broadcasting_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "Television_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ] + }, + "linking_list": [ + [ + "pixel aspect ratio", + "tv_channel.pixel_aspect_ratio_par" + ], + [ + "pixel aspect ratio", + "Broadcasting_Channel.pixel_aspect_ratio_par" + ], + [ + "pixel aspect ratio", + "Television_Channel.pixel_aspect_ratio_par" + ], + [ + "country of origin", + "tv_channel.country" + ], + [ + "country of origin", + "Broadcasting_Channel.country" + ], + [ + "country of origin", + "Television_Channel.country" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.pixel_aspect_ratio_par" + ], + [ + 0, + "Broadcasting_Channel.pixel_aspect_ratio_par" + ], + [ + 0, + "Television_Channel.pixel_aspect_ratio_par" + ], + [ + 1, + "tv_channel.country" + ], + [ + 1, + "Broadcasting_Channel.country" + ], + [ + 1, + "Television_Channel.country" + ] + ], + "linking_list_col": [ + [ + "tv_channel.id", + "broadcasting_channel.id" + ], + [ + "tv_channel.id", + "television_channel.id" + ], + [ + "broadcasting_channel.id", + "television_channel.id" + ], + [ + "tv_channel.series_name", + "broadcasting_channel.series_name" + ], + [ + "tv_channel.series_name", + "television_channel.series_name" + ], + [ + "broadcasting_channel.series_name", + "television_channel.series_name" + ], + [ + "tv_channel.country", + "broadcasting_channel.country" + ], + [ + "tv_channel.country", + "television_channel.country" + ], + [ + "broadcasting_channel.country", + "television_channel.country" + ], + [ + "tv_channel.language", + "broadcasting_channel.language" + ], + [ + "tv_channel.language", + "television_channel.language" + ], + [ + "broadcasting_channel.language", + "television_channel.language" + ], + [ + "tv_channel.content", + "broadcasting_channel.content" + ], + [ + "tv_channel.content", + "television_channel.content" + ], + [ + "broadcasting_channel.content", + "television_channel.content" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "broadcasting_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "broadcasting_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.hight_definition_tv", + "broadcasting_channel.hight_definition_tv" + ], + [ + "tv_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "broadcasting_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "tv_channel.pay_per_view_ppv", + "broadcasting_channel.pay_per_view_ppv" + ], + [ + "tv_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "broadcasting_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "tv_channel.package_option", + "broadcasting_channel.package_option" + ], + [ + "tv_channel.package_option", + "television_channel.package_option" + ], + [ + "broadcasting_channel.package_option", + "television_channel.package_option" + ] + ] + }, + { + "question": "find #id# of the tv channels that from the countries where have more than two tv channels.", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "Broadcasting_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "Television_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ] + }, + "linking_list": [ + [ + "id", + "tv_channel.id" + ], + [ + "id", + "Broadcasting_Channel.id" + ], + [ + "id", + "Television_Channel.id" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.id" + ], + [ + 0, + "Broadcasting_Channel.id" + ], + [ + 0, + "Television_Channel.id" + ] + ], + "linking_list_col": [ + [ + "tv_channel.id", + "broadcasting_channel.id" + ], + [ + "tv_channel.id", + "television_channel.id" + ], + [ + "broadcasting_channel.id", + "television_channel.id" + ], + [ + "tv_channel.series_name", + "broadcasting_channel.series_name" + ], + [ + "tv_channel.series_name", + "television_channel.series_name" + ], + [ + "broadcasting_channel.series_name", + "television_channel.series_name" + ], + [ + "tv_channel.country", + "broadcasting_channel.country" + ], + [ + "tv_channel.country", + "television_channel.country" + ], + [ + "broadcasting_channel.country", + "television_channel.country" + ], + [ + "tv_channel.language", + "broadcasting_channel.language" + ], + [ + "tv_channel.language", + "television_channel.language" + ], + [ + "broadcasting_channel.language", + "television_channel.language" + ], + [ + "tv_channel.content", + "broadcasting_channel.content" + ], + [ + "tv_channel.content", + "television_channel.content" + ], + [ + "broadcasting_channel.content", + "television_channel.content" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "broadcasting_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "broadcasting_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.hight_definition_tv", + "broadcasting_channel.hight_definition_tv" + ], + [ + "tv_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "broadcasting_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "tv_channel.pay_per_view_ppv", + "broadcasting_channel.pay_per_view_ppv" + ], + [ + "tv_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "broadcasting_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "tv_channel.package_option", + "broadcasting_channel.package_option" + ], + [ + "tv_channel.package_option", + "television_channel.package_option" + ], + [ + "broadcasting_channel.package_option", + "television_channel.package_option" + ] + ] + }, + { + "question": "what are the ids of all tv channels that have #more than 2# tv channels?", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "Broadcasting_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "Television_Channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ] + }, + "linking_list": [ + [ + "more than 2", + "tv_channel.country" + ], + [ + "more than 2", + "Broadcasting_Channel.country" + ], + [ + "more than 2", + "Television_Channel.country" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.country" + ], + [ + 0, + "Broadcasting_Channel.country" + ], + [ + 0, + "Television_Channel.country" + ] + ], + "linking_list_col": [ + [ + "tv_channel.id", + "broadcasting_channel.id" + ], + [ + "tv_channel.id", + "television_channel.id" + ], + [ + "broadcasting_channel.id", + "television_channel.id" + ], + [ + "tv_channel.series_name", + "broadcasting_channel.series_name" + ], + [ + "tv_channel.series_name", + "television_channel.series_name" + ], + [ + "broadcasting_channel.series_name", + "television_channel.series_name" + ], + [ + "tv_channel.country", + "broadcasting_channel.country" + ], + [ + "tv_channel.country", + "television_channel.country" + ], + [ + "broadcasting_channel.country", + "television_channel.country" + ], + [ + "tv_channel.language", + "broadcasting_channel.language" + ], + [ + "tv_channel.language", + "television_channel.language" + ], + [ + "broadcasting_channel.language", + "television_channel.language" + ], + [ + "tv_channel.content", + "broadcasting_channel.content" + ], + [ + "tv_channel.content", + "television_channel.content" + ], + [ + "broadcasting_channel.content", + "television_channel.content" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "broadcasting_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "broadcasting_channel.pixel_aspect_ratio_par", + "television_channel.pixel_aspect_ratio_par" + ], + [ + "tv_channel.hight_definition_tv", + "broadcasting_channel.hight_definition_tv" + ], + [ + "tv_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "broadcasting_channel.hight_definition_tv", + "television_channel.hight_definition_tv" + ], + [ + "tv_channel.pay_per_view_ppv", + "broadcasting_channel.pay_per_view_ppv" + ], + [ + "tv_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "broadcasting_channel.pay_per_view_ppv", + "television_channel.pay_per_view_ppv" + ], + [ + "tv_channel.package_option", + "broadcasting_channel.package_option" + ], + [ + "tv_channel.package_option", + "television_channel.package_option" + ], + [ + "broadcasting_channel.package_option", + "television_channel.package_option" + ] + ] + }, + { + "question": "find the #id# of tv channels that do not play any cartoon #directed by# ben jones.", + "db_schema": { + "tv_channel": [ + "id", + "series_name", + "country", + "language", + "content", + "pixel_aspect_ratio_par", + "hight_definition_tv", + "pay_per_view_ppv", + "package_option" + ], + "tv_series": [ + "id", + "episode", + "air_date", + "rating", + "share", + "18_49_rating_share", + "viewers_m", + "weekly_rank", + "channel" + ], + "cartoon": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "animated_series": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ], + "toons": [ + "id", + "title", + "directed_by", + "written_by", + "original_air_date", + "production_code", + "channel" + ] + }, + "linking_list": [ + [ + "id", + "tv_channel.id" + ], + [ + "directed by", + "cartoon.directed_by" + ], + [ + "directed by", + "animated_series.directed_by" + ], + [ + "directed by", + "toons.directed_by" + ] + ], + "linking_list_idx": [ + [ + 0, + "tv_channel.id" + ], + [ + 1, + "cartoon.directed_by" + ], + [ + 1, + "animated_series.directed_by" + ], + [ + 1, + "toons.directed_by" + ] + ], + "linking_list_col": [ + [ + "cartoon.id", + "animated_series.id" + ], + [ + "cartoon.id", + "toons.id" + ], + [ + "animated_series.id", + "toons.id" + ], + [ + "cartoon.title", + "animated_series.title" + ], + [ + "cartoon.title", + "toons.title" + ], + [ + "animated_series.title", + "toons.title" + ], + [ + "cartoon.directed_by", + "animated_series.directed_by" + ], + [ + "cartoon.directed_by", + "toons.directed_by" + ], + [ + "animated_series.directed_by", + "toons.directed_by" + ], + [ + "cartoon.written_by", + "animated_series.written_by" + ], + [ + "cartoon.written_by", + "toons.written_by" + ], + [ + "animated_series.written_by", + "toons.written_by" + ], + [ + "cartoon.original_air_date", + "animated_series.original_air_date" + ], + [ + "cartoon.original_air_date", + "toons.original_air_date" + ], + [ + "animated_series.original_air_date", + "toons.original_air_date" + ], + [ + "cartoon.production_code", + "animated_series.production_code" + ], + [ + "cartoon.production_code", + "toons.production_code" + ], + [ + "animated_series.production_code", + "toons.production_code" + ], + [ + "cartoon.channel", + "animated_series.channel" + ], + [ + "cartoon.channel", + "toons.channel" + ], + [ + "animated_series.channel", + "toons.channel" + ] + ] + }, + { + "question": "list the #earnings# of poker players in descending order.", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "gambler": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ] + }, + "linking_list": [ + [ + "earnings", + "poker_player.earnings" + ], + [ + "earnings", + "player.earnings" + ], + [ + "earnings", + "gambler.earnings" + ] + ], + "linking_list_idx": [ + [ + 0, + "poker_player.earnings" + ], + [ + 0, + "player.earnings" + ], + [ + 0, + "gambler.earnings" + ] + ], + "linking_list_col": [ + [ + "poker_player.poker_player_id", + "player.poker_player_id" + ], + [ + "poker_player.poker_player_id", + "gambler.poker_player_id" + ], + [ + "player.poker_player_id", + "gambler.poker_player_id" + ], + [ + "poker_player.people_id", + "player.people_id" + ], + [ + "poker_player.people_id", + "gambler.people_id" + ], + [ + "player.people_id", + "gambler.people_id" + ], + [ + "poker_player.final_table_made", + "player.final_table_made" + ], + [ + "poker_player.final_table_made", + "gambler.final_table_made" + ], + [ + "player.final_table_made", + "gambler.final_table_made" + ], + [ + "poker_player.best_finish", + "player.best_finish" + ], + [ + "poker_player.best_finish", + "gambler.best_finish" + ], + [ + "player.best_finish", + "gambler.best_finish" + ], + [ + "poker_player.money_rank", + "player.money_rank" + ], + [ + "poker_player.money_rank", + "gambler.money_rank" + ], + [ + "player.money_rank", + "gambler.money_rank" + ], + [ + "poker_player.earnings", + "player.earnings" + ], + [ + "poker_player.earnings", + "gambler.earnings" + ], + [ + "player.earnings", + "gambler.earnings" + ] + ] + }, + { + "question": "what are the #earnings# of poker players, ordered descending by value?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "gambler": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ] + }, + "linking_list": [ + [ + "earnings", + "poker_player.earnings" + ], + [ + "earnings", + "player.earnings" + ], + [ + "earnings", + "gambler.earnings" + ] + ], + "linking_list_idx": [ + [ + 0, + "poker_player.earnings" + ], + [ + 0, + "player.earnings" + ], + [ + 0, + "gambler.earnings" + ] + ], + "linking_list_col": [ + [ + "poker_player.poker_player_id", + "player.poker_player_id" + ], + [ + "poker_player.poker_player_id", + "gambler.poker_player_id" + ], + [ + "player.poker_player_id", + "gambler.poker_player_id" + ], + [ + "poker_player.people_id", + "player.people_id" + ], + [ + "poker_player.people_id", + "gambler.people_id" + ], + [ + "player.people_id", + "gambler.people_id" + ], + [ + "poker_player.final_table_made", + "player.final_table_made" + ], + [ + "poker_player.final_table_made", + "gambler.final_table_made" + ], + [ + "player.final_table_made", + "gambler.final_table_made" + ], + [ + "poker_player.best_finish", + "player.best_finish" + ], + [ + "poker_player.best_finish", + "gambler.best_finish" + ], + [ + "player.best_finish", + "gambler.best_finish" + ], + [ + "poker_player.money_rank", + "player.money_rank" + ], + [ + "poker_player.money_rank", + "gambler.money_rank" + ], + [ + "player.money_rank", + "gambler.money_rank" + ], + [ + "poker_player.earnings", + "player.earnings" + ], + [ + "poker_player.earnings", + "gambler.earnings" + ], + [ + "player.earnings", + "gambler.earnings" + ] + ] + }, + { + "question": "what is the #money rank# of the poker player with the highest earnings?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "gambler": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ] + }, + "linking_list": [ + [ + "money rank", + "poker_player.money_rank" + ], + [ + "money rank", + "player.money_rank" + ], + [ + "money rank", + "gambler.money_rank" + ] + ], + "linking_list_idx": [ + [ + 0, + "poker_player.money_rank" + ], + [ + 0, + "player.money_rank" + ], + [ + 0, + "gambler.money_rank" + ] + ], + "linking_list_col": [ + [ + "poker_player.poker_player_id", + "player.poker_player_id" + ], + [ + "poker_player.poker_player_id", + "gambler.poker_player_id" + ], + [ + "player.poker_player_id", + "gambler.poker_player_id" + ], + [ + "poker_player.people_id", + "player.people_id" + ], + [ + "poker_player.people_id", + "gambler.people_id" + ], + [ + "player.people_id", + "gambler.people_id" + ], + [ + "poker_player.final_table_made", + "player.final_table_made" + ], + [ + "poker_player.final_table_made", + "gambler.final_table_made" + ], + [ + "player.final_table_made", + "gambler.final_table_made" + ], + [ + "poker_player.best_finish", + "player.best_finish" + ], + [ + "poker_player.best_finish", + "gambler.best_finish" + ], + [ + "player.best_finish", + "gambler.best_finish" + ], + [ + "poker_player.money_rank", + "player.money_rank" + ], + [ + "poker_player.money_rank", + "gambler.money_rank" + ], + [ + "player.money_rank", + "gambler.money_rank" + ], + [ + "poker_player.earnings", + "player.earnings" + ], + [ + "poker_player.earnings", + "gambler.earnings" + ], + [ + "player.earnings", + "gambler.earnings" + ] + ] + }, + { + "question": "return the #money rank of the player with the greatest earnings# .", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "gambler": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ] + }, + "linking_list": [ + [ + "money rank of the player with the greatest earnings", + "poker_player.money_rank" + ], + [ + "money rank of the player with the greatest earnings", + "player.money_rank" + ], + [ + "money rank of the player with the greatest earnings", + "gambler.money_rank" + ] + ], + "linking_list_idx": [ + [ + 0, + "poker_player.money_rank" + ], + [ + 0, + "player.money_rank" + ], + [ + 0, + "gambler.money_rank" + ] + ], + "linking_list_col": [ + [ + "poker_player.poker_player_id", + "player.poker_player_id" + ], + [ + "poker_player.poker_player_id", + "gambler.poker_player_id" + ], + [ + "player.poker_player_id", + "gambler.poker_player_id" + ], + [ + "poker_player.people_id", + "player.people_id" + ], + [ + "poker_player.people_id", + "gambler.people_id" + ], + [ + "player.people_id", + "gambler.people_id" + ], + [ + "poker_player.final_table_made", + "player.final_table_made" + ], + [ + "poker_player.final_table_made", + "gambler.final_table_made" + ], + [ + "player.final_table_made", + "gambler.final_table_made" + ], + [ + "poker_player.best_finish", + "player.best_finish" + ], + [ + "poker_player.best_finish", + "gambler.best_finish" + ], + [ + "player.best_finish", + "gambler.best_finish" + ], + [ + "poker_player.money_rank", + "player.money_rank" + ], + [ + "poker_player.money_rank", + "gambler.money_rank" + ], + [ + "player.money_rank", + "gambler.money_rank" + ], + [ + "poker_player.earnings", + "player.earnings" + ], + [ + "poker_player.earnings", + "gambler.earnings" + ], + [ + "player.earnings", + "gambler.earnings" + ] + ] + }, + { + "question": "what is the #maximum number of final tables made# among poker players with earnings less than 200000?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "gambler": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ] + }, + "linking_list": [ + [ + "maximum number of final tables made", + "poker_player.final_table_made" + ], + [ + "maximum number of final tables made", + "player.final_table_made" + ], + [ + "maximum number of final tables made", + "gambler.final_table_made" + ] + ], + "linking_list_idx": [ + [ + 0, + "poker_player.final_table_made" + ], + [ + 0, + "player.final_table_made" + ], + [ + 0, + "gambler.final_table_made" + ] + ], + "linking_list_col": [ + [ + "poker_player.poker_player_id", + "player.poker_player_id" + ], + [ + "poker_player.poker_player_id", + "gambler.poker_player_id" + ], + [ + "player.poker_player_id", + "gambler.poker_player_id" + ], + [ + "poker_player.people_id", + "player.people_id" + ], + [ + "poker_player.people_id", + "gambler.people_id" + ], + [ + "player.people_id", + "gambler.people_id" + ], + [ + "poker_player.final_table_made", + "player.final_table_made" + ], + [ + "poker_player.final_table_made", + "gambler.final_table_made" + ], + [ + "player.final_table_made", + "gambler.final_table_made" + ], + [ + "poker_player.best_finish", + "player.best_finish" + ], + [ + "poker_player.best_finish", + "gambler.best_finish" + ], + [ + "player.best_finish", + "gambler.best_finish" + ], + [ + "poker_player.money_rank", + "player.money_rank" + ], + [ + "poker_player.money_rank", + "gambler.money_rank" + ], + [ + "player.money_rank", + "gambler.money_rank" + ], + [ + "poker_player.earnings", + "player.earnings" + ], + [ + "poker_player.earnings", + "gambler.earnings" + ], + [ + "player.earnings", + "gambler.earnings" + ] + ] + }, + { + "question": "return the #maximum final tables made# across all poker players who have #earnings# below 200000.", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "gambler": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ] + }, + "linking_list": [ + [ + "maximum final tables made", + "poker_player.final_table_made" + ], + [ + "maximum final tables made", + "player.final_table_made" + ], + [ + "maximum final tables made", + "gambler.final_table_made" + ], + [ + "earnings", + "poker_player.earnings" + ], + [ + "earnings", + "player.earnings" + ], + [ + "earnings", + "gambler.earnings" + ] + ], + "linking_list_idx": [ + [ + 0, + "poker_player.final_table_made" + ], + [ + 0, + "player.final_table_made" + ], + [ + 0, + "gambler.final_table_made" + ], + [ + 1, + "poker_player.earnings" + ], + [ + 1, + "player.earnings" + ], + [ + 1, + "gambler.earnings" + ] + ], + "linking_list_col": [ + [ + "poker_player.poker_player_id", + "player.poker_player_id" + ], + [ + "poker_player.poker_player_id", + "gambler.poker_player_id" + ], + [ + "player.poker_player_id", + "gambler.poker_player_id" + ], + [ + "poker_player.people_id", + "player.people_id" + ], + [ + "poker_player.people_id", + "gambler.people_id" + ], + [ + "player.people_id", + "gambler.people_id" + ], + [ + "poker_player.final_table_made", + "player.final_table_made" + ], + [ + "poker_player.final_table_made", + "gambler.final_table_made" + ], + [ + "player.final_table_made", + "gambler.final_table_made" + ], + [ + "poker_player.best_finish", + "player.best_finish" + ], + [ + "poker_player.best_finish", + "gambler.best_finish" + ], + [ + "player.best_finish", + "gambler.best_finish" + ], + [ + "poker_player.money_rank", + "player.money_rank" + ], + [ + "poker_player.money_rank", + "gambler.money_rank" + ], + [ + "player.money_rank", + "gambler.money_rank" + ], + [ + "poker_player.earnings", + "player.earnings" + ], + [ + "poker_player.earnings", + "gambler.earnings" + ], + [ + "player.earnings", + "gambler.earnings" + ] + ] + }, + { + "question": "what are the #names# of poker players?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "names", + "people.name" + ], + [ + "names", + "person.name" + ], + [ + "names", + "individuals.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.name" + ], + [ + 0, + "person.name" + ], + [ + 0, + "individuals.name" + ] + ], + "linking_list_col": [ + [ + "people.people_id", + "person.people_id" + ], + [ + "people.people_id", + "individuals.people_id" + ], + [ + "person.people_id", + "individuals.people_id" + ], + [ + "people.nationality", + "person.nationality" + ], + [ + "people.nationality", + "individuals.nationality" + ], + [ + "person.nationality", + "individuals.nationality" + ], + [ + "people.name", + "person.name" + ], + [ + "people.name", + "individuals.name" + ], + [ + "person.name", + "individuals.name" + ], + [ + "people.birth_date", + "person.birth_date" + ], + [ + "people.birth_date", + "individuals.birth_date" + ], + [ + "person.birth_date", + "individuals.birth_date" + ], + [ + "people.height", + "person.height" + ], + [ + "people.height", + "individuals.height" + ], + [ + "person.height", + "individuals.height" + ] + ] + }, + { + "question": "list the #names# of poker players ordered by the #final tables made# in ascending order.", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "names", + "people.name" + ], + [ + "names", + "person.name" + ], + [ + "names", + "individuals.name" + ], + [ + "final tables made", + "poker_player.final_table_made" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.name" + ], + [ + 0, + "person.name" + ], + [ + 0, + "individuals.name" + ], + [ + 1, + "poker_player.final_table_made" + ] + ], + "linking_list_col": [ + [ + "people.people_id", + "person.people_id" + ], + [ + "people.people_id", + "individuals.people_id" + ], + [ + "person.people_id", + "individuals.people_id" + ], + [ + "people.nationality", + "person.nationality" + ], + [ + "people.nationality", + "individuals.nationality" + ], + [ + "person.nationality", + "individuals.nationality" + ], + [ + "people.name", + "person.name" + ], + [ + "people.name", + "individuals.name" + ], + [ + "person.name", + "individuals.name" + ], + [ + "people.birth_date", + "person.birth_date" + ], + [ + "people.birth_date", + "individuals.birth_date" + ], + [ + "person.birth_date", + "individuals.birth_date" + ], + [ + "people.height", + "person.height" + ], + [ + "people.height", + "individuals.height" + ], + [ + "person.height", + "individuals.height" + ] + ] + }, + { + "question": "what are the #names# of poker players, ordered ascending by the number of #final tables# they have made?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "names", + "people.name" + ], + [ + "names", + "person.name" + ], + [ + "names", + "individuals.name" + ], + [ + "final tables", + "poker_player.final_table_made" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.name" + ], + [ + 0, + "person.name" + ], + [ + 0, + "individuals.name" + ], + [ + 1, + "poker_player.final_table_made" + ] + ], + "linking_list_col": [ + [ + "people.people_id", + "person.people_id" + ], + [ + "people.people_id", + "individuals.people_id" + ], + [ + "person.people_id", + "individuals.people_id" + ], + [ + "people.nationality", + "person.nationality" + ], + [ + "people.nationality", + "individuals.nationality" + ], + [ + "person.nationality", + "individuals.nationality" + ], + [ + "people.name", + "person.name" + ], + [ + "people.name", + "individuals.name" + ], + [ + "person.name", + "individuals.name" + ], + [ + "people.birth_date", + "person.birth_date" + ], + [ + "people.birth_date", + "individuals.birth_date" + ], + [ + "person.birth_date", + "individuals.birth_date" + ], + [ + "people.height", + "person.height" + ], + [ + "people.height", + "individuals.height" + ], + [ + "person.height", + "individuals.height" + ] + ] + }, + { + "question": "what is the #birth date of the poker player# with the lowest earnings?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "birth date of the poker player", + "people.birth_date" + ], + [ + "birth date of the poker player", + "person.birth_date" + ], + [ + "birth date of the poker player", + "individuals.birth_date" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.birth_date" + ], + [ + 0, + "person.birth_date" + ], + [ + 0, + "individuals.birth_date" + ] + ], + "linking_list_col": [ + [ + "people.people_id", + "person.people_id" + ], + [ + "people.people_id", + "individuals.people_id" + ], + [ + "person.people_id", + "individuals.people_id" + ], + [ + "people.nationality", + "person.nationality" + ], + [ + "people.nationality", + "individuals.nationality" + ], + [ + "person.nationality", + "individuals.nationality" + ], + [ + "people.name", + "person.name" + ], + [ + "people.name", + "individuals.name" + ], + [ + "person.name", + "individuals.name" + ], + [ + "people.birth_date", + "person.birth_date" + ], + [ + "people.birth_date", + "individuals.birth_date" + ], + [ + "person.birth_date", + "individuals.birth_date" + ], + [ + "people.height", + "person.height" + ], + [ + "people.height", + "individuals.height" + ], + [ + "person.height", + "individuals.height" + ] + ] + }, + { + "question": "return the #birth date# of the poker player with the #lowest earnings# .", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "birth date", + "people.birth_date" + ], + [ + "birth date", + "person.birth_date" + ], + [ + "birth date", + "individuals.birth_date" + ], + [ + "lowest earnings", + "poker_player.earnings" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.birth_date" + ], + [ + 0, + "person.birth_date" + ], + [ + 0, + "individuals.birth_date" + ], + [ + 1, + "poker_player.earnings" + ] + ], + "linking_list_col": [ + [ + "people.people_id", + "person.people_id" + ], + [ + "people.people_id", + "individuals.people_id" + ], + [ + "person.people_id", + "individuals.people_id" + ], + [ + "people.nationality", + "person.nationality" + ], + [ + "people.nationality", + "individuals.nationality" + ], + [ + "person.nationality", + "individuals.nationality" + ], + [ + "people.name", + "person.name" + ], + [ + "people.name", + "individuals.name" + ], + [ + "person.name", + "individuals.name" + ], + [ + "people.birth_date", + "person.birth_date" + ], + [ + "people.birth_date", + "individuals.birth_date" + ], + [ + "person.birth_date", + "individuals.birth_date" + ], + [ + "people.height", + "person.height" + ], + [ + "people.height", + "individuals.height" + ], + [ + "person.height", + "individuals.height" + ] + ] + }, + { + "question": "return the #money rank# of the poker player with the #greatest height# .", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "money rank", + "poker_player.money_rank" + ], + [ + "greatest height", + "people.height" + ], + [ + "greatest height", + "person.height" + ], + [ + "greatest height", + "individuals.height" + ] + ], + "linking_list_idx": [ + [ + 0, + "poker_player.money_rank" + ], + [ + 1, + "people.height" + ], + [ + 1, + "person.height" + ], + [ + 1, + "individuals.height" + ] + ], + "linking_list_col": [ + [ + "people.people_id", + "person.people_id" + ], + [ + "people.people_id", + "individuals.people_id" + ], + [ + "person.people_id", + "individuals.people_id" + ], + [ + "people.nationality", + "person.nationality" + ], + [ + "people.nationality", + "individuals.nationality" + ], + [ + "person.nationality", + "individuals.nationality" + ], + [ + "people.name", + "person.name" + ], + [ + "people.name", + "individuals.name" + ], + [ + "person.name", + "individuals.name" + ], + [ + "people.birth_date", + "person.birth_date" + ], + [ + "people.birth_date", + "individuals.birth_date" + ], + [ + "person.birth_date", + "individuals.birth_date" + ], + [ + "people.height", + "person.height" + ], + [ + "people.height", + "individuals.height" + ], + [ + "person.height", + "individuals.height" + ] + ] + }, + { + "question": "what is the #average earnings# of poker players with #height# higher than 200?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "average earnings", + "poker_player.earnings" + ], + [ + "height", + "people.height" + ], + [ + "height", + "person.height" + ], + [ + "height", + "individuals.height" + ] + ], + "linking_list_idx": [ + [ + 0, + "poker_player.earnings" + ], + [ + 1, + "people.height" + ], + [ + 1, + "person.height" + ], + [ + 1, + "individuals.height" + ] + ], + "linking_list_col": [ + [ + "people.people_id", + "person.people_id" + ], + [ + "people.people_id", + "individuals.people_id" + ], + [ + "person.people_id", + "individuals.people_id" + ], + [ + "people.nationality", + "person.nationality" + ], + [ + "people.nationality", + "individuals.nationality" + ], + [ + "person.nationality", + "individuals.nationality" + ], + [ + "people.name", + "person.name" + ], + [ + "people.name", + "individuals.name" + ], + [ + "person.name", + "individuals.name" + ], + [ + "people.birth_date", + "person.birth_date" + ], + [ + "people.birth_date", + "individuals.birth_date" + ], + [ + "person.birth_date", + "individuals.birth_date" + ], + [ + "people.height", + "person.height" + ], + [ + "people.height", + "individuals.height" + ], + [ + "person.height", + "individuals.height" + ] + ] + }, + { + "question": "give #average earnings# of poker players who are #taller than 200# .", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "average earnings", + "poker_player.earnings" + ], + [ + "taller than 200", + "people.height" + ], + [ + "taller than 200", + "person.height" + ], + [ + "taller than 200", + "individuals.height" + ] + ], + "linking_list_idx": [ + [ + 0, + "poker_player.earnings" + ], + [ + 1, + "people.height" + ], + [ + 1, + "person.height" + ], + [ + 1, + "individuals.height" + ] + ], + "linking_list_col": [ + [ + "people.people_id", + "person.people_id" + ], + [ + "people.people_id", + "individuals.people_id" + ], + [ + "person.people_id", + "individuals.people_id" + ], + [ + "people.nationality", + "person.nationality" + ], + [ + "people.nationality", + "individuals.nationality" + ], + [ + "person.nationality", + "individuals.nationality" + ], + [ + "people.name", + "person.name" + ], + [ + "people.name", + "individuals.name" + ], + [ + "person.name", + "individuals.name" + ], + [ + "people.birth_date", + "person.birth_date" + ], + [ + "people.birth_date", + "individuals.birth_date" + ], + [ + "person.birth_date", + "individuals.birth_date" + ], + [ + "people.height", + "person.height" + ], + [ + "people.height", + "individuals.height" + ], + [ + "person.height", + "individuals.height" + ] + ] + }, + { + "question": "what is the most common #nationality# of people?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "nationality", + "people.nationality" + ], + [ + "nationality", + "person.nationality" + ], + [ + "nationality", + "individuals.nationality" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.nationality" + ], + [ + 0, + "person.nationality" + ], + [ + 0, + "individuals.nationality" + ] + ], + "linking_list_col": [ + [ + "people.people_id", + "person.people_id" + ], + [ + "people.people_id", + "individuals.people_id" + ], + [ + "person.people_id", + "individuals.people_id" + ], + [ + "people.nationality", + "person.nationality" + ], + [ + "people.nationality", + "individuals.nationality" + ], + [ + "person.nationality", + "individuals.nationality" + ], + [ + "people.name", + "person.name" + ], + [ + "people.name", + "individuals.name" + ], + [ + "person.name", + "individuals.name" + ], + [ + "people.birth_date", + "person.birth_date" + ], + [ + "people.birth_date", + "individuals.birth_date" + ], + [ + "person.birth_date", + "individuals.birth_date" + ], + [ + "people.height", + "person.height" + ], + [ + "people.height", + "individuals.height" + ], + [ + "person.height", + "individuals.height" + ] + ] + }, + { + "question": "give the #nationality# that is most common across all people.", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "nationality", + "people.nationality" + ], + [ + "nationality", + "person.nationality" + ], + [ + "nationality", + "individuals.nationality" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.nationality" + ], + [ + 0, + "person.nationality" + ], + [ + 0, + "individuals.nationality" + ] + ], + "linking_list_col": [ + [ + "people.people_id", + "person.people_id" + ], + [ + "people.people_id", + "individuals.people_id" + ], + [ + "person.people_id", + "individuals.people_id" + ], + [ + "people.nationality", + "person.nationality" + ], + [ + "people.nationality", + "individuals.nationality" + ], + [ + "person.nationality", + "individuals.nationality" + ], + [ + "people.name", + "person.name" + ], + [ + "people.name", + "individuals.name" + ], + [ + "person.name", + "individuals.name" + ], + [ + "people.birth_date", + "person.birth_date" + ], + [ + "people.birth_date", + "individuals.birth_date" + ], + [ + "person.birth_date", + "individuals.birth_date" + ], + [ + "people.height", + "person.height" + ], + [ + "people.height", + "individuals.height" + ], + [ + "person.height", + "individuals.height" + ] + ] + }, + { + "question": "what are the #nationalities# that are shared by at least two people?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "nationalities", + "people.nationality" + ], + [ + "nationalities", + "person.nationality" + ], + [ + "nationalities", + "individuals.nationality" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.nationality" + ], + [ + 0, + "person.nationality" + ], + [ + 0, + "individuals.nationality" + ] + ], + "linking_list_col": [ + [ + "people.people_id", + "person.people_id" + ], + [ + "people.people_id", + "individuals.people_id" + ], + [ + "person.people_id", + "individuals.people_id" + ], + [ + "people.nationality", + "person.nationality" + ], + [ + "people.nationality", + "individuals.nationality" + ], + [ + "person.nationality", + "individuals.nationality" + ], + [ + "people.name", + "person.name" + ], + [ + "people.name", + "individuals.name" + ], + [ + "person.name", + "individuals.name" + ], + [ + "people.birth_date", + "person.birth_date" + ], + [ + "people.birth_date", + "individuals.birth_date" + ], + [ + "person.birth_date", + "individuals.birth_date" + ], + [ + "people.height", + "person.height" + ], + [ + "people.height", + "individuals.height" + ], + [ + "person.height", + "individuals.height" + ] + ] + }, + { + "question": "return the #nationalities# for which there are two or more people.", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "nationalities", + "people.nationality" + ], + [ + "nationalities", + "person.nationality" + ], + [ + "nationalities", + "individuals.nationality" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.nationality" + ], + [ + 0, + "person.nationality" + ], + [ + 0, + "individuals.nationality" + ] + ], + "linking_list_col": [ + [ + "people.people_id", + "person.people_id" + ], + [ + "people.people_id", + "individuals.people_id" + ], + [ + "person.people_id", + "individuals.people_id" + ], + [ + "people.nationality", + "person.nationality" + ], + [ + "people.nationality", + "individuals.nationality" + ], + [ + "person.nationality", + "individuals.nationality" + ], + [ + "people.name", + "person.name" + ], + [ + "people.name", + "individuals.name" + ], + [ + "person.name", + "individuals.name" + ], + [ + "people.birth_date", + "person.birth_date" + ], + [ + "people.birth_date", + "individuals.birth_date" + ], + [ + "person.birth_date", + "individuals.birth_date" + ], + [ + "people.height", + "person.height" + ], + [ + "people.height", + "individuals.height" + ], + [ + "person.height", + "individuals.height" + ] + ] + }, + { + "question": "list the names and birth dates of people in ascending alphabetical order of #name# .", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "name", + "people.name" + ], + [ + "name", + "person.name" + ], + [ + "name", + "individuals.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.name" + ], + [ + 0, + "person.name" + ], + [ + 0, + "individuals.name" + ] + ], + "linking_list_col": [ + [ + "people.people_id", + "person.people_id" + ], + [ + "people.people_id", + "individuals.people_id" + ], + [ + "person.people_id", + "individuals.people_id" + ], + [ + "people.nationality", + "person.nationality" + ], + [ + "people.nationality", + "individuals.nationality" + ], + [ + "person.nationality", + "individuals.nationality" + ], + [ + "people.name", + "person.name" + ], + [ + "people.name", + "individuals.name" + ], + [ + "person.name", + "individuals.name" + ], + [ + "people.birth_date", + "person.birth_date" + ], + [ + "people.birth_date", + "individuals.birth_date" + ], + [ + "person.birth_date", + "individuals.birth_date" + ], + [ + "people.height", + "person.height" + ], + [ + "people.height", + "individuals.height" + ], + [ + "person.height", + "individuals.height" + ] + ] + }, + { + "question": "show names of people whose #nationality# is not \"russia\".", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "nationality", + "people.nationality" + ], + [ + "nationality", + "person.nationality" + ], + [ + "nationality", + "individuals.nationality" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.nationality" + ], + [ + 0, + "person.nationality" + ], + [ + 0, + "individuals.nationality" + ] + ], + "linking_list_col": [ + [ + "people.people_id", + "person.people_id" + ], + [ + "people.people_id", + "individuals.people_id" + ], + [ + "person.people_id", + "individuals.people_id" + ], + [ + "people.nationality", + "person.nationality" + ], + [ + "people.nationality", + "individuals.nationality" + ], + [ + "person.nationality", + "individuals.nationality" + ], + [ + "people.name", + "person.name" + ], + [ + "people.name", + "individuals.name" + ], + [ + "person.name", + "individuals.name" + ], + [ + "people.birth_date", + "person.birth_date" + ], + [ + "people.birth_date", + "individuals.birth_date" + ], + [ + "person.birth_date", + "individuals.birth_date" + ], + [ + "people.height", + "person.height" + ], + [ + "people.height", + "individuals.height" + ], + [ + "person.height", + "individuals.height" + ] + ] + }, + { + "question": "list the #names# of people that are not poker players.", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "names", + "people.name" + ], + [ + "names", + "person.name" + ], + [ + "names", + "individuals.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.name" + ], + [ + 0, + "person.name" + ], + [ + 0, + "individuals.name" + ] + ], + "linking_list_col": [ + [ + "people.people_id", + "person.people_id" + ], + [ + "people.people_id", + "individuals.people_id" + ], + [ + "person.people_id", + "individuals.people_id" + ], + [ + "people.nationality", + "person.nationality" + ], + [ + "people.nationality", + "individuals.nationality" + ], + [ + "person.nationality", + "individuals.nationality" + ], + [ + "people.name", + "person.name" + ], + [ + "people.name", + "individuals.name" + ], + [ + "person.name", + "individuals.name" + ], + [ + "people.birth_date", + "person.birth_date" + ], + [ + "people.birth_date", + "individuals.birth_date" + ], + [ + "person.birth_date", + "individuals.birth_date" + ], + [ + "people.height", + "person.height" + ], + [ + "people.height", + "individuals.height" + ], + [ + "person.height", + "individuals.height" + ] + ] + }, + { + "question": "what are the #names# of people who do not play poker?", + "db_schema": { + "poker_player": [ + "poker_player_id", + "people_id", + "final_table_made", + "best_finish", + "money_rank", + "earnings" + ], + "people": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "person": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ], + "individuals": [ + "people_id", + "nationality", + "name", + "birth_date", + "height" + ] + }, + "linking_list": [ + [ + "names", + "people.name" + ], + [ + "names", + "person.name" + ], + [ + "names", + "individuals.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "people.name" + ], + [ + 0, + "person.name" + ], + [ + 0, + "individuals.name" + ] + ], + "linking_list_col": [ + [ + "people.people_id", + "person.people_id" + ], + [ + "people.people_id", + "individuals.people_id" + ], + [ + "person.people_id", + "individuals.people_id" + ], + [ + "people.nationality", + "person.nationality" + ], + [ + "people.nationality", + "individuals.nationality" + ], + [ + "person.nationality", + "individuals.nationality" + ], + [ + "people.name", + "person.name" + ], + [ + "people.name", + "individuals.name" + ], + [ + "person.name", + "individuals.name" + ], + [ + "people.birth_date", + "person.birth_date" + ], + [ + "people.birth_date", + "individuals.birth_date" + ], + [ + "person.birth_date", + "individuals.birth_date" + ], + [ + "people.height", + "person.height" + ], + [ + "people.height", + "individuals.height" + ], + [ + "person.height", + "individuals.height" + ] + ] + }, + { + "question": "list the contestant numbers and names, ordered by #contestant name# descending.", + "db_schema": { + "area_code_state": [ + "area_code", + "state" + ], + "contestants": [ + "contestant_number", + "contestant_name" + ], + "votes": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ], + "candidates": [ + "contestant_number", + "contestant_name" + ], + "participants": [ + "contestant_number", + "contestant_name" + ] + }, + "linking_list": [ + [ + "contestant name", + "contestants.contestant_name" + ], + [ + "contestant name", + "candidates.contestant_name" + ], + [ + "contestant name", + "participants.contestant_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "contestants.contestant_name" + ], + [ + 0, + "candidates.contestant_name" + ], + [ + 0, + "participants.contestant_name" + ] + ], + "linking_list_col": [ + [ + "contestants.contestant_number", + "candidates.contestant_number" + ], + [ + "contestants.contestant_number", + "participants.contestant_number" + ], + [ + "candidates.contestant_number", + "participants.contestant_number" + ], + [ + "contestants.contestant_name", + "candidates.contestant_name" + ], + [ + "contestants.contestant_name", + "participants.contestant_name" + ], + [ + "candidates.contestant_name", + "participants.contestant_name" + ] + ] + }, + { + "question": "what is #last date created# of votes from the #state# 'ca'?", + "db_schema": { + "area_code_state": [ + "area_code", + "state" + ], + "contestants": [ + "contestant_number", + "contestant_name" + ], + "votes": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ], + "balloths": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ], + "polls": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ] + }, + "linking_list": [ + [ + "last date created", + "votes.created" + ], + [ + "last date created", + "balloths.created" + ], + [ + "last date created", + "polls.created" + ], + [ + "state", + "votes.state" + ], + [ + "state", + "balloths.state" + ], + [ + "state", + "polls.state" + ] + ], + "linking_list_idx": [ + [ + 0, + "votes.created" + ], + [ + 0, + "balloths.created" + ], + [ + 0, + "polls.created" + ], + [ + 1, + "votes.state" + ], + [ + 1, + "balloths.state" + ], + [ + 1, + "polls.state" + ] + ], + "linking_list_col": [ + [ + "votes.vote_id", + "balloths.vote_id" + ], + [ + "votes.vote_id", + "polls.vote_id" + ], + [ + "balloths.vote_id", + "polls.vote_id" + ], + [ + "votes.phone_number", + "balloths.phone_number" + ], + [ + "votes.phone_number", + "polls.phone_number" + ], + [ + "balloths.phone_number", + "polls.phone_number" + ], + [ + "votes.state", + "balloths.state" + ], + [ + "votes.state", + "polls.state" + ], + [ + "balloths.state", + "polls.state" + ], + [ + "votes.contestant_number", + "balloths.contestant_number" + ], + [ + "votes.contestant_number", + "polls.contestant_number" + ], + [ + "balloths.contestant_number", + "polls.contestant_number" + ], + [ + "votes.created", + "balloths.created" + ], + [ + "votes.created", + "polls.created" + ], + [ + "balloths.created", + "polls.created" + ] + ] + }, + { + "question": "what are the #number of votes# from #state# 'ny' or 'ca'?", + "db_schema": { + "area_code_state": [ + "area_code", + "state" + ], + "contestants": [ + "contestant_number", + "contestant_name" + ], + "votes": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ], + "balloths": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ], + "polls": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ] + }, + "linking_list": [ + [ + "number of votes", + "votes.vote_id" + ], + [ + "number of votes", + "balloths.vote_id" + ], + [ + "number of votes", + "polls.vote_id" + ], + [ + "state", + "votes.state" + ], + [ + "state", + "balloths.state" + ], + [ + "state", + "polls.state" + ] + ], + "linking_list_idx": [ + [ + 0, + "votes.vote_id" + ], + [ + 0, + "balloths.vote_id" + ], + [ + 0, + "polls.vote_id" + ], + [ + 1, + "votes.state" + ], + [ + 1, + "balloths.state" + ], + [ + 1, + "polls.state" + ] + ], + "linking_list_col": [ + [ + "votes.vote_id", + "balloths.vote_id" + ], + [ + "votes.vote_id", + "polls.vote_id" + ], + [ + "balloths.vote_id", + "polls.vote_id" + ], + [ + "votes.phone_number", + "balloths.phone_number" + ], + [ + "votes.phone_number", + "polls.phone_number" + ], + [ + "balloths.phone_number", + "polls.phone_number" + ], + [ + "votes.state", + "balloths.state" + ], + [ + "votes.state", + "polls.state" + ], + [ + "balloths.state", + "polls.state" + ], + [ + "votes.contestant_number", + "balloths.contestant_number" + ], + [ + "votes.contestant_number", + "polls.contestant_number" + ], + [ + "balloths.contestant_number", + "polls.contestant_number" + ], + [ + "votes.created", + "balloths.created" + ], + [ + "votes.created", + "polls.created" + ], + [ + "balloths.created", + "polls.created" + ] + ] + }, + { + "question": "what are the #create dates# , #states# , and #phone numbers# of the votes that were for the contestant named 'tabatha gehling'?", + "db_schema": { + "area_code_state": [ + "area_code", + "state" + ], + "contestants": [ + "contestant_number", + "contestant_name" + ], + "votes": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ], + "balloths": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ], + "polls": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ] + }, + "linking_list": [ + [ + "create dates", + "votes.created" + ], + [ + "create dates", + "balloths.created" + ], + [ + "create dates", + "polls.created" + ], + [ + "states", + "votes.state" + ], + [ + "states", + "balloths.state" + ], + [ + "states", + "polls.state" + ], + [ + "phone numbers", + "votes.phone_number" + ], + [ + "phone numbers", + "balloths.phone_number" + ], + [ + "phone numbers", + "polls.phone_number" + ] + ], + "linking_list_idx": [ + [ + 0, + "votes.created" + ], + [ + 0, + "balloths.created" + ], + [ + 0, + "polls.created" + ], + [ + 1, + "votes.state" + ], + [ + 1, + "balloths.state" + ], + [ + 1, + "polls.state" + ], + [ + 2, + "votes.phone_number" + ], + [ + 2, + "balloths.phone_number" + ], + [ + 2, + "polls.phone_number" + ] + ], + "linking_list_col": [ + [ + "votes.vote_id", + "balloths.vote_id" + ], + [ + "votes.vote_id", + "polls.vote_id" + ], + [ + "balloths.vote_id", + "polls.vote_id" + ], + [ + "votes.phone_number", + "balloths.phone_number" + ], + [ + "votes.phone_number", + "polls.phone_number" + ], + [ + "balloths.phone_number", + "polls.phone_number" + ], + [ + "votes.state", + "balloths.state" + ], + [ + "votes.state", + "polls.state" + ], + [ + "balloths.state", + "polls.state" + ], + [ + "votes.contestant_number", + "balloths.contestant_number" + ], + [ + "votes.contestant_number", + "polls.contestant_number" + ], + [ + "balloths.contestant_number", + "polls.contestant_number" + ], + [ + "votes.created", + "balloths.created" + ], + [ + "votes.created", + "polls.created" + ], + [ + "balloths.created", + "polls.created" + ] + ] + }, + { + "question": "list the area codes in which #voters# voted both for the #contestant# 'tabatha gehling' and the contestant 'kelly clauss'.", + "db_schema": { + "area_code_state": [ + "area_code", + "state" + ], + "contestants": [ + "contestant_number", + "contestant_name" + ], + "votes": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ], + "balloths": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ], + "polls": [ + "vote_id", + "phone_number", + "state", + "contestant_number", + "created" + ] + }, + "linking_list": [ + [ + "voters", + "votes.state" + ], + [ + "voters", + "balloths.state" + ], + [ + "voters", + "polls.state" + ], + [ + "contestant", + "contestants.contestant_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "votes.state" + ], + [ + 0, + "balloths.state" + ], + [ + 0, + "polls.state" + ], + [ + 1, + "contestants.contestant_name" + ] + ], + "linking_list_col": [ + [ + "votes.vote_id", + "balloths.vote_id" + ], + [ + "votes.vote_id", + "polls.vote_id" + ], + [ + "balloths.vote_id", + "polls.vote_id" + ], + [ + "votes.phone_number", + "balloths.phone_number" + ], + [ + "votes.phone_number", + "polls.phone_number" + ], + [ + "balloths.phone_number", + "polls.phone_number" + ], + [ + "votes.state", + "balloths.state" + ], + [ + "votes.state", + "polls.state" + ], + [ + "balloths.state", + "polls.state" + ], + [ + "votes.contestant_number", + "balloths.contestant_number" + ], + [ + "votes.contestant_number", + "polls.contestant_number" + ], + [ + "balloths.contestant_number", + "polls.contestant_number" + ], + [ + "votes.created", + "balloths.created" + ], + [ + "votes.created", + "polls.created" + ], + [ + "balloths.created", + "polls.created" + ] + ] + }, + { + "question": "give the #names of the nations# that were #founded after 1950# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "names of the nations", + "country.name" + ], + [ + "names of the nations", + "nation.name" + ], + [ + "names of the nations", + "state.name" + ], + [ + "founded after 1950", + "country.indepyear" + ], + [ + "founded after 1950", + "nation.indepyear" + ], + [ + "founded after 1950", + "state.indepyear" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "nation.name" + ], + [ + 0, + "state.name" + ], + [ + 1, + "country.indepyear" + ], + [ + 1, + "nation.indepyear" + ], + [ + 1, + "state.indepyear" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "what is the #total surface area# of the countries in the caribbean region?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "total surface area", + "country.surfacearea" + ], + [ + "total surface area", + "nation.surfacearea" + ], + [ + "total surface area", + "state.surfacearea" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.surfacearea" + ], + [ + 0, + "nation.surfacearea" + ], + [ + 0, + "state.surfacearea" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "how much #surface area# do the countires in the carribean cover together?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "surface area", + "country.surfacearea" + ], + [ + "surface area", + "nation.surfacearea" + ], + [ + "surface area", + "state.surfacearea" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.surfacearea" + ], + [ + 0, + "nation.surfacearea" + ], + [ + 0, + "state.surfacearea" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "which #continent is anguilla# in?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "continent is Anguilla", + "country.continent" + ], + [ + "continent is Anguilla", + "nation.continent" + ], + [ + "continent is Anguilla", + "state.continent" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.continent" + ], + [ + 0, + "nation.continent" + ], + [ + 0, + "state.continent" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "what is the #continent name# which #anguilla# belongs to?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "continent name", + "country.continent" + ], + [ + "continent name", + "nation.continent" + ], + [ + "continent name", + "state.continent" + ], + [ + "Anguilla", + "country.name" + ], + [ + "Anguilla", + "nation.name" + ], + [ + "Anguilla", + "state.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.continent" + ], + [ + 0, + "nation.continent" + ], + [ + 0, + "state.continent" + ], + [ + 1, + "country.name" + ], + [ + 1, + "nation.name" + ], + [ + 1, + "state.name" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "which #region is the city# kabul located in?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "region is the city", + "country.region" + ], + [ + "region is the city", + "nation.region" + ], + [ + "region is the city", + "state.region" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.region" + ], + [ + 0, + "nation.region" + ], + [ + 0, + "state.region" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "what #region is kabul# in?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "region is Kabul", + "country.region" + ], + [ + "region is Kabul", + "nation.region" + ], + [ + "region is Kabul", + "state.region" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.region" + ], + [ + 0, + "nation.region" + ], + [ + 0, + "state.region" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "which #language# is the most popular in aruba?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "language", + "countrylanguage.language" + ], + [ + "language", + "official_language.language" + ], + [ + "language", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "official_language.language" + ], + [ + 0, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "what #language# is predominantly spoken in aruba?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "language", + "countrylanguage.language" + ], + [ + "language", + "official_language.language" + ], + [ + "language", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "official_language.language" + ], + [ + 0, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "what are the #population# and life expectancies in brazil?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "population", + "country.population" + ], + [ + "population", + "nation.population" + ], + [ + "population", + "state.population" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.population" + ], + [ + 0, + "nation.population" + ], + [ + 0, + "state.population" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "give me brazil\u2019s #population# and #life expectancies# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "population", + "country.population" + ], + [ + "population", + "nation.population" + ], + [ + "population", + "state.population" + ], + [ + "life expectancies", + "country.lifeexpectancy" + ], + [ + "life expectancies", + "nation.lifeexpectancy" + ], + [ + "life expectancies", + "state.lifeexpectancy" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.population" + ], + [ + 0, + "nation.population" + ], + [ + 0, + "state.population" + ], + [ + 1, + "country.lifeexpectancy" + ], + [ + 1, + "nation.lifeexpectancy" + ], + [ + 1, + "state.lifeexpectancy" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "what are the #region# and #population# of angola?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "region", + "country.region" + ], + [ + "region", + "nation.region" + ], + [ + "region", + "state.region" + ], + [ + "population", + "country.population" + ], + [ + "population", + "nation.population" + ], + [ + "population", + "state.population" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.region" + ], + [ + 0, + "nation.region" + ], + [ + 0, + "state.region" + ], + [ + 1, + "country.population" + ], + [ + 1, + "nation.population" + ], + [ + 1, + "state.population" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "what #region# does angola belong to and what is its population?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "region", + "country.region" + ], + [ + "region", + "nation.region" + ], + [ + "region", + "state.region" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.region" + ], + [ + 0, + "nation.region" + ], + [ + 0, + "state.region" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "give the name of the country in #asia with the lowest life expectancy# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "Asia with the lowest life expectancy", + "country.continent" + ], + [ + "Asia with the lowest life expectancy", + "nation.continent" + ], + [ + "Asia with the lowest life expectancy", + "state.continent" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.continent" + ], + [ + 0, + "nation.continent" + ], + [ + 0, + "state.continent" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "what is the #total population# and maximum gnp in asia?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "total population", + "country.population" + ], + [ + "total population", + "nation.population" + ], + [ + "total population", + "state.population" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.population" + ], + [ + 0, + "nation.population" + ], + [ + 0, + "state.population" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "how many people live in #asia# , and what is the #largest gnp# among them?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "Asia", + "country.continent" + ], + [ + "Asia", + "nation.continent" + ], + [ + "Asia", + "state.continent" + ], + [ + "largest GNP", + "country.gnp" + ], + [ + "largest GNP", + "nation.gnp" + ], + [ + "largest GNP", + "state.gnp" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.continent" + ], + [ + 0, + "nation.continent" + ], + [ + 0, + "state.continent" + ], + [ + 1, + "country.gnp" + ], + [ + 1, + "nation.gnp" + ], + [ + 1, + "state.gnp" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "what is the #average life expectancy in african countries# that are republics?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "average life expectancy in African countries", + "country.lifeexpectancy" + ], + [ + "average life expectancy in African countries", + "nation.lifeexpectancy" + ], + [ + "average life expectancy in African countries", + "state.lifeexpectancy" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.lifeexpectancy" + ], + [ + 0, + "nation.lifeexpectancy" + ], + [ + 0, + "state.lifeexpectancy" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "give the #average life expectancy for countries in africa# which are republics?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "average life expectancy for countries in Africa", + "country.lifeexpectancy" + ], + [ + "average life expectancy for countries in Africa", + "nation.lifeexpectancy" + ], + [ + "average life expectancy for countries in Africa", + "state.lifeexpectancy" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.lifeexpectancy" + ], + [ + 0, + "nation.lifeexpectancy" + ], + [ + 0, + "state.lifeexpectancy" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "what is the #total surface area of the continents# asia and europe?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "total surface area of the continents", + "country.surfacearea" + ], + [ + "total surface area of the continents", + "nation.surfacearea" + ], + [ + "total surface area of the continents", + "state.surfacearea" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.surfacearea" + ], + [ + 0, + "nation.surfacearea" + ], + [ + 0, + "state.surfacearea" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "give the #total surface area# covered by #countries in asia or europe# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "total surface area", + "country.surfacearea" + ], + [ + "total surface area", + "nation.surfacearea" + ], + [ + "total surface area", + "state.surfacearea" + ], + [ + "countries in Asia or Europe", + "country.continent" + ], + [ + "countries in Asia or Europe", + "nation.continent" + ], + [ + "countries in Asia or Europe", + "state.continent" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.surfacearea" + ], + [ + 0, + "nation.surfacearea" + ], + [ + 0, + "state.surfacearea" + ], + [ + 1, + "country.continent" + ], + [ + 1, + "nation.continent" + ], + [ + 1, + "state.continent" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "what is the #average gnp# and #total population# in all nations whose government is us territory?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "average GNP", + "country.gnp" + ], + [ + "average GNP", + "nation.gnp" + ], + [ + "average GNP", + "state.gnp" + ], + [ + "total population", + "country.population" + ], + [ + "total population", + "nation.population" + ], + [ + "total population", + "state.population" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.gnp" + ], + [ + 0, + "nation.gnp" + ], + [ + 0, + "state.gnp" + ], + [ + 1, + "country.population" + ], + [ + 1, + "nation.population" + ], + [ + 1, + "state.population" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "give the #mean gnp# and #total population# of nations which are considered #us territory# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "mean GNP", + "country.gnp" + ], + [ + "mean GNP", + "nation.gnp" + ], + [ + "mean GNP", + "state.gnp" + ], + [ + "total population", + "country.population" + ], + [ + "total population", + "nation.population" + ], + [ + "total population", + "state.population" + ], + [ + "US territory", + "country.governmentform" + ], + [ + "US territory", + "nation.governmentform" + ], + [ + "US territory", + "state.governmentform" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.gnp" + ], + [ + 0, + "nation.gnp" + ], + [ + 0, + "state.gnp" + ], + [ + 1, + "country.population" + ], + [ + 1, + "nation.population" + ], + [ + 1, + "state.population" + ], + [ + 2, + "country.governmentform" + ], + [ + 2, + "nation.governmentform" + ], + [ + 2, + "state.governmentform" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "how many #different forms of governments# are there in africa?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "different forms of governments", + "country.governmentform" + ], + [ + "different forms of governments", + "nation.governmentform" + ], + [ + "different forms of governments", + "state.governmentform" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.governmentform" + ], + [ + 0, + "nation.governmentform" + ], + [ + 0, + "state.governmentform" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "what is the #total number of languages# used in aruba?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "total number of languages", + "countrylanguage.language" + ], + [ + "total number of languages", + "official_language.language" + ], + [ + "total number of languages", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "official_language.language" + ], + [ + 0, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "how many #languages# are spoken in aruba?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "languages", + "countrylanguage.language" + ], + [ + "languages", + "official_language.language" + ], + [ + "languages", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "official_language.language" + ], + [ + 0, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "how many #official languages# does #afghanistan# have?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "official languages", + "countrylanguage.isofficial" + ], + [ + "official languages", + "official_language.isofficial" + ], + [ + "official languages", + "spoken_language.isofficial" + ], + [ + "Afghanistan", + "country.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.isofficial" + ], + [ + 0, + "official_language.isofficial" + ], + [ + 0, + "spoken_language.isofficial" + ], + [ + 1, + "country.name" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "how many #official languages# are spoken in afghanistan?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "official languages", + "countrylanguage.isofficial" + ], + [ + "official languages", + "official_language.isofficial" + ], + [ + "official languages", + "spoken_language.isofficial" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.isofficial" + ], + [ + 0, + "official_language.isofficial" + ], + [ + 0, + "spoken_language.isofficial" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "give the name of the nation that uses the #greatest amount of languages# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "greatest amount of languages", + "countrylanguage.language" + ], + [ + "greatest amount of languages", + "official_language.language" + ], + [ + "greatest amount of languages", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "official_language.language" + ], + [ + 0, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "how many #countries# speak both #english# and dutch?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "countries", + "country.name" + ], + [ + "English", + "countrylanguage.language" + ], + [ + "English", + "official_language.language" + ], + [ + "English", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 1, + "countrylanguage.language" + ], + [ + 1, + "official_language.language" + ], + [ + 1, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "what is the #number of nations# that use #english# and dutch?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "number of nations", + "country.name" + ], + [ + "English", + "countrylanguage.language" + ], + [ + "English", + "official_language.language" + ], + [ + "English", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 1, + "countrylanguage.language" + ], + [ + 1, + "official_language.language" + ], + [ + 1, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "give the names of nations that speak both #english# and #french# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "English", + "countrylanguage.language" + ], + [ + "English", + "official_language.language" + ], + [ + "English", + "spoken_language.language" + ], + [ + "French", + "countrylanguage.language" + ], + [ + "French", + "official_language.language" + ], + [ + "French", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "official_language.language" + ], + [ + 0, + "spoken_language.language" + ], + [ + 1, + "countrylanguage.language" + ], + [ + 1, + "official_language.language" + ], + [ + 1, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "what are the names of nations where both #english# and #french# are official languages?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "English", + "countrylanguage.language" + ], + [ + "English", + "official_language.language" + ], + [ + "English", + "spoken_language.language" + ], + [ + "French", + "countrylanguage.language" + ], + [ + "French", + "official_language.language" + ], + [ + "French", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "official_language.language" + ], + [ + 0, + "spoken_language.language" + ], + [ + 1, + "countrylanguage.language" + ], + [ + 1, + "official_language.language" + ], + [ + 1, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "give the names of countries with #english# and #french as official# languages.", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "English", + "countrylanguage.language" + ], + [ + "English", + "official_language.language" + ], + [ + "English", + "spoken_language.language" + ], + [ + "French as official", + "countrylanguage.language" + ], + [ + "French as official", + "official_language.language" + ], + [ + "French as official", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "official_language.language" + ], + [ + 0, + "spoken_language.language" + ], + [ + 1, + "countrylanguage.language" + ], + [ + 1, + "official_language.language" + ], + [ + 1, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "what is the number of #distinct continents# where #chinese# is spoken?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "distinct continents", + "country.continent" + ], + [ + "Chinese", + "countrylanguage.language" + ], + [ + "Chinese", + "official_language.language" + ], + [ + "Chinese", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.continent" + ], + [ + 1, + "countrylanguage.language" + ], + [ + 1, + "official_language.language" + ], + [ + 1, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "what are the #regions# that use #english# or dutch?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "regions", + "country.region" + ], + [ + "English", + "countrylanguage.language" + ], + [ + "English", + "official_language.language" + ], + [ + "English", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.region" + ], + [ + 1, + "countrylanguage.language" + ], + [ + 1, + "official_language.language" + ], + [ + 1, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "which #regions# speak #dutch# or english?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "regions", + "country.region" + ], + [ + "Dutch", + "countrylanguage.language" + ], + [ + "Dutch", + "official_language.language" + ], + [ + "Dutch", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.region" + ], + [ + 1, + "countrylanguage.language" + ], + [ + 1, + "official_language.language" + ], + [ + 1, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "which #language# is the most popular on the asian continent?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "language", + "countrylanguage.language" + ], + [ + "language", + "official_language.language" + ], + [ + "language", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "official_language.language" + ], + [ + 0, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "what is the #language# that is used by the largest number of asian nations?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "language", + "countrylanguage.language" + ], + [ + "language", + "official_language.language" + ], + [ + "language", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "official_language.language" + ], + [ + 0, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "what #languages# are only used by a single country with a republic government?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "languages", + "countrylanguage.language" + ], + [ + "languages", + "official_language.language" + ], + [ + "languages", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "official_language.language" + ], + [ + 0, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "find the #name# , #population# and #expected life length of asian country# with the largest area?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "name", + "country.name" + ], + [ + "name", + "nation.name" + ], + [ + "name", + "state.name" + ], + [ + "population", + "country.population" + ], + [ + "population", + "nation.population" + ], + [ + "population", + "state.population" + ], + [ + "expected life length of asian country", + "country.lifeexpectancy" + ], + [ + "expected life length of asian country", + "nation.lifeexpectancy" + ], + [ + "expected life length of asian country", + "state.lifeexpectancy" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "nation.name" + ], + [ + 0, + "state.name" + ], + [ + 1, + "country.population" + ], + [ + 1, + "nation.population" + ], + [ + 1, + "state.population" + ], + [ + 2, + "country.lifeexpectancy" + ], + [ + 2, + "nation.lifeexpectancy" + ], + [ + 2, + "state.lifeexpectancy" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "what are the #name# , #population# , and #life expectancy# of the largest asian country by land?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "name", + "country.name" + ], + [ + "name", + "nation.name" + ], + [ + "name", + "state.name" + ], + [ + "population", + "country.population" + ], + [ + "population", + "nation.population" + ], + [ + "population", + "state.population" + ], + [ + "life expectancy", + "country.lifeexpectancy" + ], + [ + "life expectancy", + "nation.lifeexpectancy" + ], + [ + "life expectancy", + "state.lifeexpectancy" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "nation.name" + ], + [ + 0, + "state.name" + ], + [ + 1, + "country.population" + ], + [ + 1, + "nation.population" + ], + [ + 1, + "state.population" + ], + [ + 2, + "country.lifeexpectancy" + ], + [ + 2, + "nation.lifeexpectancy" + ], + [ + 2, + "state.lifeexpectancy" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "what is #average life expectancy# in the countries where #english# is not the official language?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "average life expectancy", + "country.lifeexpectancy" + ], + [ + "English", + "countrylanguage.language" + ], + [ + "English", + "official_language.language" + ], + [ + "English", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.lifeexpectancy" + ], + [ + 1, + "countrylanguage.language" + ], + [ + 1, + "official_language.language" + ], + [ + 1, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "give the #mean life expectancy# of countries in which #english# is not the #official language# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "mean life expectancy", + "country.lifeexpectancy" + ], + [ + "English", + "countrylanguage.language" + ], + [ + "English", + "official_language.language" + ], + [ + "English", + "spoken_language.language" + ], + [ + "official language", + "countrylanguage.isofficial" + ], + [ + "official language", + "official_language.isofficial" + ], + [ + "official language", + "spoken_language.isofficial" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.lifeexpectancy" + ], + [ + 1, + "countrylanguage.language" + ], + [ + 1, + "official_language.language" + ], + [ + 1, + "spoken_language.language" + ], + [ + 2, + "countrylanguage.isofficial" + ], + [ + 2, + "official_language.isofficial" + ], + [ + 2, + "spoken_language.isofficial" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "what is the #official language# spoken in the country whose #head of state# is beatrix?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "official language", + "countrylanguage.language" + ], + [ + "official language", + "official_language.language" + ], + [ + "official language", + "spoken_language.language" + ], + [ + "head of state", + "country.headofstate" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "official_language.language" + ], + [ + 0, + "spoken_language.language" + ], + [ + 1, + "country.headofstate" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "what is the #official language# used in the country the name of whose #head of state# is beatrix.", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "official language", + "countrylanguage.language" + ], + [ + "official language", + "official_language.language" + ], + [ + "official language", + "spoken_language.language" + ], + [ + "head of state", + "country.headofstate" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "official_language.language" + ], + [ + 0, + "spoken_language.language" + ], + [ + 1, + "country.headofstate" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "what are the #countries# that have greater #surface area# than any country in europe?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "countries", + "country.name" + ], + [ + "countries", + "nation.name" + ], + [ + "countries", + "state.name" + ], + [ + "surface area", + "country.surfacearea" + ], + [ + "surface area", + "nation.surfacearea" + ], + [ + "surface area", + "state.surfacearea" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "nation.name" + ], + [ + 0, + "state.name" + ], + [ + 1, + "country.surfacearea" + ], + [ + 1, + "nation.surfacearea" + ], + [ + 1, + "state.surfacearea" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "which #countries# have #greater area# than that of any country in europe?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "countries", + "country.name" + ], + [ + "countries", + "nation.name" + ], + [ + "countries", + "state.name" + ], + [ + "greater area", + "country.surfacearea" + ], + [ + "greater area", + "nation.surfacearea" + ], + [ + "greater area", + "state.surfacearea" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "nation.name" + ], + [ + 0, + "state.name" + ], + [ + 1, + "country.surfacearea" + ], + [ + 1, + "nation.surfacearea" + ], + [ + 1, + "state.surfacearea" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "what are the #african countries# that have a #population# less than any country in asia?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "African countries", + "country.name" + ], + [ + "African countries", + "nation.name" + ], + [ + "African countries", + "state.name" + ], + [ + "population", + "country.population" + ], + [ + "population", + "nation.population" + ], + [ + "population", + "state.population" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "nation.name" + ], + [ + 0, + "state.name" + ], + [ + 1, + "country.population" + ], + [ + 1, + "nation.population" + ], + [ + 1, + "state.population" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "which #african countries# have a #smaller population# than that of any country in asia?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "African countries", + "country.name" + ], + [ + "African countries", + "nation.name" + ], + [ + "African countries", + "state.name" + ], + [ + "smaller population", + "country.population" + ], + [ + "smaller population", + "nation.population" + ], + [ + "smaller population", + "state.population" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "nation.name" + ], + [ + 0, + "state.name" + ], + [ + 1, + "country.population" + ], + [ + 1, + "nation.population" + ], + [ + 1, + "state.population" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "which #asian countries# have a #population# that is larger than any country in africa?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "Asian countries", + "country.name" + ], + [ + "Asian countries", + "nation.name" + ], + [ + "Asian countries", + "state.name" + ], + [ + "population", + "country.population" + ], + [ + "population", + "nation.population" + ], + [ + "population", + "state.population" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "nation.name" + ], + [ + 0, + "state.name" + ], + [ + 1, + "country.population" + ], + [ + 1, + "nation.population" + ], + [ + 1, + "state.population" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "what are the #asian countries# which have a #population# larger than that of any country in africa?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "Asian countries", + "country.name" + ], + [ + "Asian countries", + "nation.name" + ], + [ + "Asian countries", + "state.name" + ], + [ + "population", + "country.population" + ], + [ + "population", + "nation.population" + ], + [ + "population", + "state.population" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "nation.name" + ], + [ + 0, + "state.name" + ], + [ + 1, + "country.population" + ], + [ + 1, + "nation.population" + ], + [ + 1, + "state.population" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "return the country codes for countries that #do not speak english# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "do not speak English", + "countrylanguage.language" + ], + [ + "do not speak English", + "official_language.language" + ], + [ + "do not speak English", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "official_language.language" + ], + [ + 0, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "what are the #country codes# of countries where people use languages other than english?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "country codes", + "countrylanguage.countrycode" + ], + [ + "country codes", + "official_language.countrycode" + ], + [ + "country codes", + "spoken_language.countrycode" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.countrycode" + ], + [ + 0, + "official_language.countrycode" + ], + [ + 0, + "spoken_language.countrycode" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "what are the names of cities in #europe# for which #english# is not the official language?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "Europe", + "country.continent" + ], + [ + "English", + "countrylanguage.language" + ], + [ + "English", + "official_language.language" + ], + [ + "English", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.continent" + ], + [ + 1, + "countrylanguage.language" + ], + [ + 1, + "official_language.language" + ], + [ + 1, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "return the different names of cities that are in asia and for which chinese is the #official language# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "official language", + "countrylanguage.language" + ], + [ + "official language", + "official_language.language" + ], + [ + "official language", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "official_language.language" + ], + [ + 0, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "what are the #name# , #independence year# , and #surface area# of the country with the smallest population?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "name", + "country.name" + ], + [ + "name", + "nation.name" + ], + [ + "name", + "state.name" + ], + [ + "independence year", + "country.indepyear" + ], + [ + "independence year", + "nation.indepyear" + ], + [ + "independence year", + "state.indepyear" + ], + [ + "surface area", + "country.surfacearea" + ], + [ + "surface area", + "nation.surfacearea" + ], + [ + "surface area", + "state.surfacearea" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "nation.name" + ], + [ + 0, + "state.name" + ], + [ + 1, + "country.indepyear" + ], + [ + 1, + "nation.indepyear" + ], + [ + 1, + "state.indepyear" + ], + [ + 2, + "country.surfacearea" + ], + [ + 2, + "nation.surfacearea" + ], + [ + 2, + "state.surfacearea" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "give the #name# , #year of independence# , and #surface area# of the country that has the lowest population.", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "name", + "country.name" + ], + [ + "name", + "nation.name" + ], + [ + "name", + "state.name" + ], + [ + "year of independence", + "country.indepyear" + ], + [ + "year of independence", + "nation.indepyear" + ], + [ + "year of independence", + "state.indepyear" + ], + [ + "surface area", + "country.surfacearea" + ], + [ + "surface area", + "nation.surfacearea" + ], + [ + "surface area", + "state.surfacearea" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "nation.name" + ], + [ + 0, + "state.name" + ], + [ + 1, + "country.indepyear" + ], + [ + 1, + "nation.indepyear" + ], + [ + 1, + "state.indepyear" + ], + [ + 2, + "country.surfacearea" + ], + [ + 2, + "nation.surfacearea" + ], + [ + 2, + "state.surfacearea" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "what are the #population# , #name# and #leader# of the country with the largest area?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "population", + "country.population" + ], + [ + "population", + "nation.population" + ], + [ + "population", + "state.population" + ], + [ + "name", + "country.name" + ], + [ + "name", + "nation.name" + ], + [ + "name", + "state.name" + ], + [ + "leader", + "country.headofstate" + ], + [ + "leader", + "nation.headofstate" + ], + [ + "leader", + "state.headofstate" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.population" + ], + [ + 0, + "nation.population" + ], + [ + 0, + "state.population" + ], + [ + 1, + "country.name" + ], + [ + 1, + "nation.name" + ], + [ + 1, + "state.name" + ], + [ + 2, + "country.headofstate" + ], + [ + 2, + "nation.headofstate" + ], + [ + 2, + "state.headofstate" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "give the #name# , #population# , and #head of state# for the country that has the largest area.", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "name", + "country.name" + ], + [ + "name", + "nation.name" + ], + [ + "name", + "state.name" + ], + [ + "population", + "country.population" + ], + [ + "population", + "nation.population" + ], + [ + "population", + "state.population" + ], + [ + "head of state", + "country.headofstate" + ], + [ + "head of state", + "nation.headofstate" + ], + [ + "head of state", + "state.headofstate" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "nation.name" + ], + [ + 0, + "state.name" + ], + [ + 1, + "country.population" + ], + [ + 1, + "nation.population" + ], + [ + 1, + "state.population" + ], + [ + 2, + "country.headofstate" + ], + [ + 2, + "nation.headofstate" + ], + [ + 2, + "state.headofstate" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "return the #country name# and the #numbers of languages spoken# for each country that speaks at least 3 languages.", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "country name", + "country.name" + ], + [ + "numbers of languages spoken", + "countrylanguage.language" + ], + [ + "numbers of languages spoken", + "official_language.language" + ], + [ + "numbers of languages spoken", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 1, + "countrylanguage.language" + ], + [ + 1, + "official_language.language" + ], + [ + 1, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "find the #number of cities in each district# whose #population# is greater than the average population of cities?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "town": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "metropolis": [ + "id", + "name", + "countrycode", + "district", + "population" + ] + }, + "linking_list": [ + [ + "number of cities in each district", + "city.id" + ], + [ + "number of cities in each district", + "town.id" + ], + [ + "number of cities in each district", + "metropolis.id" + ], + [ + "population", + "city.population" + ], + [ + "population", + "town.population" + ], + [ + "population", + "metropolis.population" + ] + ], + "linking_list_idx": [ + [ + 0, + "city.id" + ], + [ + 0, + "town.id" + ], + [ + 0, + "metropolis.id" + ], + [ + 1, + "city.population" + ], + [ + 1, + "town.population" + ], + [ + 1, + "metropolis.population" + ] + ], + "linking_list_col": [ + [ + "city.id", + "town.id" + ], + [ + "city.id", + "metropolis.id" + ], + [ + "town.id", + "metropolis.id" + ], + [ + "city.name", + "town.name" + ], + [ + "city.name", + "metropolis.name" + ], + [ + "town.name", + "metropolis.name" + ], + [ + "city.countrycode", + "town.countrycode" + ], + [ + "city.countrycode", + "metropolis.countrycode" + ], + [ + "town.countrycode", + "metropolis.countrycode" + ], + [ + "city.district", + "town.district" + ], + [ + "city.district", + "metropolis.district" + ], + [ + "town.district", + "metropolis.district" + ], + [ + "city.population", + "town.population" + ], + [ + "city.population", + "metropolis.population" + ], + [ + "town.population", + "metropolis.population" + ] + ] + }, + { + "question": "how many cities in each #district# have a population that is above the average population across all cities?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "town": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "metropolis": [ + "id", + "name", + "countrycode", + "district", + "population" + ] + }, + "linking_list": [ + [ + "district", + "city.district" + ], + [ + "district", + "town.district" + ], + [ + "district", + "metropolis.district" + ] + ], + "linking_list_idx": [ + [ + 0, + "city.district" + ], + [ + 0, + "town.district" + ], + [ + 0, + "metropolis.district" + ] + ], + "linking_list_col": [ + [ + "city.id", + "town.id" + ], + [ + "city.id", + "metropolis.id" + ], + [ + "town.id", + "metropolis.id" + ], + [ + "city.name", + "town.name" + ], + [ + "city.name", + "metropolis.name" + ], + [ + "town.name", + "metropolis.name" + ], + [ + "city.countrycode", + "town.countrycode" + ], + [ + "city.countrycode", + "metropolis.countrycode" + ], + [ + "town.countrycode", + "metropolis.countrycode" + ], + [ + "city.district", + "town.district" + ], + [ + "city.district", + "metropolis.district" + ], + [ + "town.district", + "metropolis.district" + ], + [ + "city.population", + "town.population" + ], + [ + "city.population", + "metropolis.population" + ], + [ + "town.population", + "metropolis.population" + ] + ] + }, + { + "question": "find the #government form# name and #total population for each government form# whose #average life expectancy# is longer than 72.", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "government form", + "country.governmentform" + ], + [ + "government form", + "nation.governmentform" + ], + [ + "government form", + "state.governmentform" + ], + [ + "total population for each government form", + "country.population" + ], + [ + "total population for each government form", + "nation.population" + ], + [ + "total population for each government form", + "state.population" + ], + [ + "average life expectancy", + "country.lifeexpectancy" + ], + [ + "average life expectancy", + "nation.lifeexpectancy" + ], + [ + "average life expectancy", + "state.lifeexpectancy" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.governmentform" + ], + [ + 0, + "nation.governmentform" + ], + [ + 0, + "state.governmentform" + ], + [ + 1, + "country.population" + ], + [ + 1, + "nation.population" + ], + [ + 1, + "state.population" + ], + [ + 2, + "country.lifeexpectancy" + ], + [ + 2, + "nation.lifeexpectancy" + ], + [ + 2, + "state.lifeexpectancy" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "what are the different government forms and what is the #total population# of each for government forms that have an #average life expectancy# greater than 72?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "total population", + "country.population" + ], + [ + "total population", + "nation.population" + ], + [ + "total population", + "state.population" + ], + [ + "average life expectancy", + "country.lifeexpectancy" + ], + [ + "average life expectancy", + "nation.lifeexpectancy" + ], + [ + "average life expectancy", + "state.lifeexpectancy" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.population" + ], + [ + 0, + "nation.population" + ], + [ + 0, + "state.population" + ], + [ + 1, + "country.lifeexpectancy" + ], + [ + 1, + "nation.lifeexpectancy" + ], + [ + 1, + "state.lifeexpectancy" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "find the #average life expectancy# and #total population for each continent# where the average life expectancy is shorter than 72?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "average life expectancy", + "country.lifeexpectancy" + ], + [ + "average life expectancy", + "nation.lifeexpectancy" + ], + [ + "average life expectancy", + "state.lifeexpectancy" + ], + [ + "total population for each continent", + "country.population" + ], + [ + "total population for each continent", + "nation.population" + ], + [ + "total population for each continent", + "state.population" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.lifeexpectancy" + ], + [ + 0, + "nation.lifeexpectancy" + ], + [ + 0, + "state.lifeexpectancy" + ], + [ + 1, + "country.population" + ], + [ + 1, + "nation.population" + ], + [ + 1, + "state.population" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "what are the #different continents# and the total popuation and #average life expectancy# corresponding to each, for continents that have an average life expectancy less than 72?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "different continents", + "country.continent" + ], + [ + "different continents", + "nation.continent" + ], + [ + "different continents", + "state.continent" + ], + [ + "average life expectancy", + "country.lifeexpectancy" + ], + [ + "average life expectancy", + "nation.lifeexpectancy" + ], + [ + "average life expectancy", + "state.lifeexpectancy" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.continent" + ], + [ + 0, + "nation.continent" + ], + [ + 0, + "state.continent" + ], + [ + 1, + "country.lifeexpectancy" + ], + [ + 1, + "nation.lifeexpectancy" + ], + [ + 1, + "state.lifeexpectancy" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "return the names of the 3 #most populated# countries.", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "most populated", + "country.population" + ], + [ + "most populated", + "nation.population" + ], + [ + "most populated", + "state.population" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.population" + ], + [ + 0, + "nation.population" + ], + [ + 0, + "state.population" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "return the names of the 3 countries with the #fewest people# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "fewest people", + "country.population" + ], + [ + "fewest people", + "nation.population" + ], + [ + "fewest people", + "state.population" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.population" + ], + [ + 0, + "nation.population" + ], + [ + 0, + "state.population" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "how many #countries# are in asia?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "countries", + "country.name" + ], + [ + "countries", + "nation.name" + ], + [ + "countries", + "state.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "nation.name" + ], + [ + 0, + "state.name" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "count the #number of countries in asia# .", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "number of countries in Asia", + "country.name" + ], + [ + "number of countries in Asia", + "nation.name" + ], + [ + "number of countries in Asia", + "state.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.name" + ], + [ + 0, + "nation.name" + ], + [ + 0, + "state.name" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "what are the names of the countries that are in the #continent# of europe and have a #population# of 80000?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "continent", + "country.continent" + ], + [ + "continent", + "nation.continent" + ], + [ + "continent", + "state.continent" + ], + [ + "population", + "country.population" + ], + [ + "population", + "nation.population" + ], + [ + "population", + "state.population" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.continent" + ], + [ + 0, + "nation.continent" + ], + [ + 0, + "state.continent" + ], + [ + 1, + "country.population" + ], + [ + 1, + "nation.population" + ], + [ + 1, + "state.population" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "give the names of countries that are in europe and have a #population# equal to 80000.", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "nation": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "state": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ] + }, + "linking_list": [ + [ + "population", + "country.population" + ], + [ + "population", + "nation.population" + ], + [ + "population", + "state.population" + ] + ], + "linking_list_idx": [ + [ + 0, + "country.population" + ], + [ + 0, + "nation.population" + ], + [ + 0, + "state.population" + ] + ], + "linking_list_col": [ + [ + "country.code", + "nation.code" + ], + [ + "country.code", + "state.code" + ], + [ + "nation.code", + "state.code" + ], + [ + "country.name", + "nation.name" + ], + [ + "country.name", + "state.name" + ], + [ + "nation.name", + "state.name" + ], + [ + "country.continent", + "nation.continent" + ], + [ + "country.continent", + "state.continent" + ], + [ + "nation.continent", + "state.continent" + ], + [ + "country.region", + "nation.region" + ], + [ + "country.region", + "state.region" + ], + [ + "nation.region", + "state.region" + ], + [ + "country.surfacearea", + "nation.surfacearea" + ], + [ + "country.surfacearea", + "state.surfacearea" + ], + [ + "nation.surfacearea", + "state.surfacearea" + ], + [ + "country.indepyear", + "nation.indepyear" + ], + [ + "country.indepyear", + "state.indepyear" + ], + [ + "nation.indepyear", + "state.indepyear" + ], + [ + "country.population", + "nation.population" + ], + [ + "country.population", + "state.population" + ], + [ + "nation.population", + "state.population" + ], + [ + "country.lifeexpectancy", + "nation.lifeexpectancy" + ], + [ + "country.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "nation.lifeexpectancy", + "state.lifeexpectancy" + ], + [ + "country.gnp", + "nation.gnp" + ], + [ + "country.gnp", + "state.gnp" + ], + [ + "nation.gnp", + "state.gnp" + ], + [ + "country.gnpold", + "nation.gnpold" + ], + [ + "country.gnpold", + "state.gnpold" + ], + [ + "nation.gnpold", + "state.gnpold" + ], + [ + "country.localname", + "nation.localname" + ], + [ + "country.localname", + "state.localname" + ], + [ + "nation.localname", + "state.localname" + ], + [ + "country.governmentform", + "nation.governmentform" + ], + [ + "country.governmentform", + "state.governmentform" + ], + [ + "nation.governmentform", + "state.governmentform" + ], + [ + "country.headofstate", + "nation.headofstate" + ], + [ + "country.headofstate", + "state.headofstate" + ], + [ + "nation.headofstate", + "state.headofstate" + ], + [ + "country.capital", + "nation.capital" + ], + [ + "country.capital", + "state.capital" + ], + [ + "nation.capital", + "state.capital" + ], + [ + "country.code2", + "nation.code2" + ], + [ + "country.code2", + "state.code2" + ], + [ + "nation.code2", + "state.code2" + ] + ] + }, + { + "question": "what are the cities whose #population# is between 160000 and 900000?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "town": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "metropolis": [ + "id", + "name", + "countrycode", + "district", + "population" + ] + }, + "linking_list": [ + [ + "population", + "city.population" + ], + [ + "population", + "town.population" + ], + [ + "population", + "metropolis.population" + ] + ], + "linking_list_idx": [ + [ + 0, + "city.population" + ], + [ + 0, + "town.population" + ], + [ + 0, + "metropolis.population" + ] + ], + "linking_list_col": [ + [ + "city.id", + "town.id" + ], + [ + "city.id", + "metropolis.id" + ], + [ + "town.id", + "metropolis.id" + ], + [ + "city.name", + "town.name" + ], + [ + "city.name", + "metropolis.name" + ], + [ + "town.name", + "metropolis.name" + ], + [ + "city.countrycode", + "town.countrycode" + ], + [ + "city.countrycode", + "metropolis.countrycode" + ], + [ + "town.countrycode", + "metropolis.countrycode" + ], + [ + "city.district", + "town.district" + ], + [ + "city.district", + "metropolis.district" + ], + [ + "town.district", + "metropolis.district" + ], + [ + "city.population", + "town.population" + ], + [ + "city.population", + "metropolis.population" + ], + [ + "town.population", + "metropolis.population" + ] + ] + }, + { + "question": "which #language# is spoken by the largest number of countries?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "language", + "countrylanguage.language" + ], + [ + "language", + "official_language.language" + ], + [ + "language", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "official_language.language" + ], + [ + 0, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "give the #language# that is spoken in the most countries.", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "language", + "countrylanguage.language" + ], + [ + "language", + "official_language.language" + ], + [ + "language", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "official_language.language" + ], + [ + 0, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "what is the #language# spoken by the largest #percentage# of people in each country?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "language", + "countrylanguage.language" + ], + [ + "language", + "official_language.language" + ], + [ + "language", + "spoken_language.language" + ], + [ + "percentage", + "countrylanguage.percentage" + ], + [ + "percentage", + "official_language.percentage" + ], + [ + "percentage", + "spoken_language.percentage" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "official_language.language" + ], + [ + 0, + "spoken_language.language" + ], + [ + 1, + "countrylanguage.percentage" + ], + [ + 1, + "official_language.percentage" + ], + [ + 1, + "spoken_language.percentage" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "what are the country codes of the different countries, and what are the languages spoken by the #greatest percentage# of people for each?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "greatest percentage", + "countrylanguage.percentage" + ], + [ + "greatest percentage", + "official_language.percentage" + ], + [ + "greatest percentage", + "spoken_language.percentage" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.percentage" + ], + [ + 0, + "official_language.percentage" + ], + [ + 0, + "spoken_language.percentage" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "what is the #total number of countries# where #spanish# is spoken by the #largest percentage# of people?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "total number of countries", + "countrylanguage.countrycode" + ], + [ + "total number of countries", + "official_language.countrycode" + ], + [ + "total number of countries", + "spoken_language.countrycode" + ], + [ + "Spanish", + "countrylanguage.language" + ], + [ + "Spanish", + "official_language.language" + ], + [ + "Spanish", + "spoken_language.language" + ], + [ + "largest percentage", + "countrylanguage.percentage" + ], + [ + "largest percentage", + "official_language.percentage" + ], + [ + "largest percentage", + "spoken_language.percentage" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.countrycode" + ], + [ + 0, + "official_language.countrycode" + ], + [ + 0, + "spoken_language.countrycode" + ], + [ + 1, + "countrylanguage.language" + ], + [ + 1, + "official_language.language" + ], + [ + 1, + "spoken_language.language" + ], + [ + 2, + "countrylanguage.percentage" + ], + [ + 2, + "official_language.percentage" + ], + [ + 2, + "spoken_language.percentage" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "count the #number of countries# for which #spanish is the predominantly spoken# language.", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "number of countries", + "countrylanguage.countrycode" + ], + [ + "number of countries", + "official_language.countrycode" + ], + [ + "number of countries", + "spoken_language.countrycode" + ], + [ + "Spanish is the predominantly spoken", + "countrylanguage.language" + ], + [ + "Spanish is the predominantly spoken", + "official_language.language" + ], + [ + "Spanish is the predominantly spoken", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.countrycode" + ], + [ + 0, + "official_language.countrycode" + ], + [ + 0, + "spoken_language.countrycode" + ], + [ + 1, + "countrylanguage.language" + ], + [ + 1, + "official_language.language" + ], + [ + 1, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "what are the codes of countries where #spanish# is spoken by the #largest percentage# of people?", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "Spanish", + "countrylanguage.language" + ], + [ + "Spanish", + "official_language.language" + ], + [ + "Spanish", + "spoken_language.language" + ], + [ + "largest percentage", + "countrylanguage.percentage" + ], + [ + "largest percentage", + "official_language.percentage" + ], + [ + "largest percentage", + "spoken_language.percentage" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "official_language.language" + ], + [ + 0, + "spoken_language.language" + ], + [ + 1, + "countrylanguage.percentage" + ], + [ + 1, + "official_language.percentage" + ], + [ + 1, + "spoken_language.percentage" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "return the codes of countries for which #spanish# is the predominantly spoken language.", + "db_schema": { + "city": [ + "id", + "name", + "countrycode", + "district", + "population" + ], + "sqlite_sequence": [ + "name", + "seq" + ], + "country": [ + "code", + "name", + "continent", + "region", + "surfacearea", + "indepyear", + "population", + "lifeexpectancy", + "gnp", + "gnpold", + "localname", + "governmentform", + "headofstate", + "capital", + "code2" + ], + "countrylanguage": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "official_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ], + "spoken_language": [ + "countrycode", + "language", + "isofficial", + "percentage" + ] + }, + "linking_list": [ + [ + "Spanish", + "countrylanguage.language" + ], + [ + "Spanish", + "official_language.language" + ], + [ + "Spanish", + "spoken_language.language" + ] + ], + "linking_list_idx": [ + [ + 0, + "countrylanguage.language" + ], + [ + 0, + "official_language.language" + ], + [ + 0, + "spoken_language.language" + ] + ], + "linking_list_col": [ + [ + "countrylanguage.countrycode", + "official_language.countrycode" + ], + [ + "countrylanguage.countrycode", + "spoken_language.countrycode" + ], + [ + "official_language.countrycode", + "spoken_language.countrycode" + ], + [ + "countrylanguage.language", + "official_language.language" + ], + [ + "countrylanguage.language", + "spoken_language.language" + ], + [ + "official_language.language", + "spoken_language.language" + ], + [ + "countrylanguage.isofficial", + "official_language.isofficial" + ], + [ + "countrylanguage.isofficial", + "spoken_language.isofficial" + ], + [ + "official_language.isofficial", + "spoken_language.isofficial" + ], + [ + "countrylanguage.percentage", + "official_language.percentage" + ], + [ + "countrylanguage.percentage", + "spoken_language.percentage" + ], + [ + "official_language.percentage", + "spoken_language.percentage" + ] + ] + }, + { + "question": "list the names of conductors in ascending order of #age# .", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ], + "director": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "maestro": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ] + }, + "linking_list": [ + [ + "age", + "conductor.age" + ], + [ + "age", + "director.age" + ], + [ + "age", + "maestro.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "conductor.age" + ], + [ + 0, + "director.age" + ], + [ + 0, + "maestro.age" + ] + ], + "linking_list_col": [ + [ + "conductor.conductor_id", + "director.conductor_id" + ], + [ + "conductor.conductor_id", + "maestro.conductor_id" + ], + [ + "director.conductor_id", + "maestro.conductor_id" + ], + [ + "conductor.name", + "director.name" + ], + [ + "conductor.name", + "maestro.name" + ], + [ + "director.name", + "maestro.name" + ], + [ + "conductor.age", + "director.age" + ], + [ + "conductor.age", + "maestro.age" + ], + [ + "director.age", + "maestro.age" + ], + [ + "conductor.nationality", + "director.nationality" + ], + [ + "conductor.nationality", + "maestro.nationality" + ], + [ + "director.nationality", + "maestro.nationality" + ], + [ + "conductor.year_of_work", + "director.year_of_work" + ], + [ + "conductor.year_of_work", + "maestro.year_of_work" + ], + [ + "director.year_of_work", + "maestro.year_of_work" + ] + ] + }, + { + "question": "return the names of conductors that do not have the #nationality# \"usa\".", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ], + "director": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "maestro": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ] + }, + "linking_list": [ + [ + "nationality", + "conductor.nationality" + ], + [ + "nationality", + "director.nationality" + ], + [ + "nationality", + "maestro.nationality" + ] + ], + "linking_list_idx": [ + [ + 0, + "conductor.nationality" + ], + [ + 0, + "director.nationality" + ], + [ + 0, + "maestro.nationality" + ] + ], + "linking_list_col": [ + [ + "conductor.conductor_id", + "director.conductor_id" + ], + [ + "conductor.conductor_id", + "maestro.conductor_id" + ], + [ + "director.conductor_id", + "maestro.conductor_id" + ], + [ + "conductor.name", + "director.name" + ], + [ + "conductor.name", + "maestro.name" + ], + [ + "director.name", + "maestro.name" + ], + [ + "conductor.age", + "director.age" + ], + [ + "conductor.age", + "maestro.age" + ], + [ + "director.age", + "maestro.age" + ], + [ + "conductor.nationality", + "director.nationality" + ], + [ + "conductor.nationality", + "maestro.nationality" + ], + [ + "director.nationality", + "maestro.nationality" + ], + [ + "conductor.year_of_work", + "director.year_of_work" + ], + [ + "conductor.year_of_work", + "maestro.year_of_work" + ], + [ + "director.year_of_work", + "maestro.year_of_work" + ] + ] + }, + { + "question": "what are the record companies of #orchestras# in descending order of years in which they were founded?", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ], + "ensemble": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "symphony": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ] + }, + "linking_list": [ + [ + "orchestras", + "orchestra.orchestra_id" + ], + [ + "orchestras", + "ensemble.orchestra_id" + ], + [ + "orchestras", + "symphony.orchestra_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.orchestra_id" + ], + [ + 0, + "ensemble.orchestra_id" + ], + [ + 0, + "symphony.orchestra_id" + ] + ], + "linking_list_col": [ + [ + "orchestra.orchestra_id", + "ensemble.orchestra_id" + ], + [ + "orchestra.orchestra_id", + "symphony.orchestra_id" + ], + [ + "ensemble.orchestra_id", + "symphony.orchestra_id" + ], + [ + "orchestra.orchestra", + "ensemble.orchestra" + ], + [ + "orchestra.orchestra", + "symphony.orchestra" + ], + [ + "ensemble.orchestra", + "symphony.orchestra" + ], + [ + "orchestra.conductor_id", + "ensemble.conductor_id" + ], + [ + "orchestra.conductor_id", + "symphony.conductor_id" + ], + [ + "ensemble.conductor_id", + "symphony.conductor_id" + ], + [ + "orchestra.record_company", + "ensemble.record_company" + ], + [ + "orchestra.record_company", + "symphony.record_company" + ], + [ + "ensemble.record_company", + "symphony.record_company" + ], + [ + "orchestra.year_of_founded", + "ensemble.year_of_founded" + ], + [ + "orchestra.year_of_founded", + "symphony.year_of_founded" + ], + [ + "ensemble.year_of_founded", + "symphony.year_of_founded" + ], + [ + "orchestra.major_record_format", + "ensemble.major_record_format" + ], + [ + "orchestra.major_record_format", + "symphony.major_record_format" + ], + [ + "ensemble.major_record_format", + "symphony.major_record_format" + ] + ] + }, + { + "question": "return the #record companies# of orchestras, sorted descending by the years in which they were founded.", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ], + "ensemble": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "symphony": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ] + }, + "linking_list": [ + [ + "record companies", + "orchestra.record_company" + ], + [ + "record companies", + "ensemble.record_company" + ], + [ + "record companies", + "symphony.record_company" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.record_company" + ], + [ + 0, + "ensemble.record_company" + ], + [ + 0, + "symphony.record_company" + ] + ], + "linking_list_col": [ + [ + "orchestra.orchestra_id", + "ensemble.orchestra_id" + ], + [ + "orchestra.orchestra_id", + "symphony.orchestra_id" + ], + [ + "ensemble.orchestra_id", + "symphony.orchestra_id" + ], + [ + "orchestra.orchestra", + "ensemble.orchestra" + ], + [ + "orchestra.orchestra", + "symphony.orchestra" + ], + [ + "ensemble.orchestra", + "symphony.orchestra" + ], + [ + "orchestra.conductor_id", + "ensemble.conductor_id" + ], + [ + "orchestra.conductor_id", + "symphony.conductor_id" + ], + [ + "ensemble.conductor_id", + "symphony.conductor_id" + ], + [ + "orchestra.record_company", + "ensemble.record_company" + ], + [ + "orchestra.record_company", + "symphony.record_company" + ], + [ + "ensemble.record_company", + "symphony.record_company" + ], + [ + "orchestra.year_of_founded", + "ensemble.year_of_founded" + ], + [ + "orchestra.year_of_founded", + "symphony.year_of_founded" + ], + [ + "ensemble.year_of_founded", + "symphony.year_of_founded" + ], + [ + "orchestra.major_record_format", + "ensemble.major_record_format" + ], + [ + "orchestra.major_record_format", + "symphony.major_record_format" + ], + [ + "ensemble.major_record_format", + "symphony.major_record_format" + ] + ] + }, + { + "question": "what are the maximum and #minimum share# of performances whose #type# is not \"live final\".", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ], + "recital": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "concert": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ] + }, + "linking_list": [ + [ + "minimum share", + "performance.share" + ], + [ + "minimum share", + "recital.share" + ], + [ + "minimum share", + "concert.share" + ], + [ + "type", + "performance.type" + ], + [ + "type", + "recital.type" + ], + [ + "type", + "concert.type" + ] + ], + "linking_list_idx": [ + [ + 0, + "performance.share" + ], + [ + 0, + "recital.share" + ], + [ + 0, + "concert.share" + ], + [ + 1, + "performance.type" + ], + [ + 1, + "recital.type" + ], + [ + 1, + "concert.type" + ] + ], + "linking_list_col": [ + [ + "performance.performance_id", + "recital.performance_id" + ], + [ + "performance.performance_id", + "concert.performance_id" + ], + [ + "recital.performance_id", + "concert.performance_id" + ], + [ + "performance.orchestra_id", + "recital.orchestra_id" + ], + [ + "performance.orchestra_id", + "concert.orchestra_id" + ], + [ + "recital.orchestra_id", + "concert.orchestra_id" + ], + [ + "performance.type", + "recital.type" + ], + [ + "performance.type", + "concert.type" + ], + [ + "recital.type", + "concert.type" + ], + [ + "performance.date", + "recital.date" + ], + [ + "performance.date", + "concert.date" + ], + [ + "recital.date", + "concert.date" + ], + [ + "performance.official_ratings_(millions)", + "recital.official_ratings_(millions)" + ], + [ + "performance.official_ratings_(millions)", + "concert.official_ratings_(millions)" + ], + [ + "recital.official_ratings_(millions)", + "concert.official_ratings_(millions)" + ], + [ + "performance.weekly_rank", + "recital.weekly_rank" + ], + [ + "performance.weekly_rank", + "concert.weekly_rank" + ], + [ + "recital.weekly_rank", + "concert.weekly_rank" + ], + [ + "performance.share", + "recital.share" + ], + [ + "performance.share", + "concert.share" + ], + [ + "recital.share", + "concert.share" + ] + ] + }, + { + "question": "return the maximum and minimum shares for #performances# that do not have the type \"live final\".", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ], + "recital": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "concert": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ] + }, + "linking_list": [ + [ + "performances", + "performance.type" + ], + [ + "performances", + "recital.type" + ], + [ + "performances", + "concert.type" + ] + ], + "linking_list_idx": [ + [ + 0, + "performance.type" + ], + [ + 0, + "recital.type" + ], + [ + 0, + "concert.type" + ] + ], + "linking_list_col": [ + [ + "performance.performance_id", + "recital.performance_id" + ], + [ + "performance.performance_id", + "concert.performance_id" + ], + [ + "recital.performance_id", + "concert.performance_id" + ], + [ + "performance.orchestra_id", + "recital.orchestra_id" + ], + [ + "performance.orchestra_id", + "concert.orchestra_id" + ], + [ + "recital.orchestra_id", + "concert.orchestra_id" + ], + [ + "performance.type", + "recital.type" + ], + [ + "performance.type", + "concert.type" + ], + [ + "recital.type", + "concert.type" + ], + [ + "performance.date", + "recital.date" + ], + [ + "performance.date", + "concert.date" + ], + [ + "recital.date", + "concert.date" + ], + [ + "performance.official_ratings_(millions)", + "recital.official_ratings_(millions)" + ], + [ + "performance.official_ratings_(millions)", + "concert.official_ratings_(millions)" + ], + [ + "recital.official_ratings_(millions)", + "concert.official_ratings_(millions)" + ], + [ + "performance.weekly_rank", + "recital.weekly_rank" + ], + [ + "performance.weekly_rank", + "concert.weekly_rank" + ], + [ + "recital.weekly_rank", + "concert.weekly_rank" + ], + [ + "performance.share", + "recital.share" + ], + [ + "performance.share", + "concert.share" + ], + [ + "recital.share", + "concert.share" + ] + ] + }, + { + "question": "list names of conductors in descending order of #years of work# .", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ], + "director": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "maestro": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ] + }, + "linking_list": [ + [ + "years of work", + "conductor.year_of_work" + ], + [ + "years of work", + "director.year_of_work" + ], + [ + "years of work", + "maestro.year_of_work" + ] + ], + "linking_list_idx": [ + [ + 0, + "conductor.year_of_work" + ], + [ + 0, + "director.year_of_work" + ], + [ + 0, + "maestro.year_of_work" + ] + ], + "linking_list_col": [ + [ + "conductor.conductor_id", + "director.conductor_id" + ], + [ + "conductor.conductor_id", + "maestro.conductor_id" + ], + [ + "director.conductor_id", + "maestro.conductor_id" + ], + [ + "conductor.name", + "director.name" + ], + [ + "conductor.name", + "maestro.name" + ], + [ + "director.name", + "maestro.name" + ], + [ + "conductor.age", + "director.age" + ], + [ + "conductor.age", + "maestro.age" + ], + [ + "director.age", + "maestro.age" + ], + [ + "conductor.nationality", + "director.nationality" + ], + [ + "conductor.nationality", + "maestro.nationality" + ], + [ + "director.nationality", + "maestro.nationality" + ], + [ + "conductor.year_of_work", + "director.year_of_work" + ], + [ + "conductor.year_of_work", + "maestro.year_of_work" + ], + [ + "director.year_of_work", + "maestro.year_of_work" + ] + ] + }, + { + "question": "list the name of the conductor with the most #years of work# .", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ], + "director": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "maestro": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ] + }, + "linking_list": [ + [ + "years of work", + "conductor.year_of_work" + ], + [ + "years of work", + "director.year_of_work" + ], + [ + "years of work", + "maestro.year_of_work" + ] + ], + "linking_list_idx": [ + [ + 0, + "conductor.year_of_work" + ], + [ + 0, + "director.year_of_work" + ], + [ + 0, + "maestro.year_of_work" + ] + ], + "linking_list_col": [ + [ + "conductor.conductor_id", + "director.conductor_id" + ], + [ + "conductor.conductor_id", + "maestro.conductor_id" + ], + [ + "director.conductor_id", + "maestro.conductor_id" + ], + [ + "conductor.name", + "director.name" + ], + [ + "conductor.name", + "maestro.name" + ], + [ + "director.name", + "maestro.name" + ], + [ + "conductor.age", + "director.age" + ], + [ + "conductor.age", + "maestro.age" + ], + [ + "director.age", + "maestro.age" + ], + [ + "conductor.nationality", + "director.nationality" + ], + [ + "conductor.nationality", + "maestro.nationality" + ], + [ + "director.nationality", + "maestro.nationality" + ], + [ + "conductor.year_of_work", + "director.year_of_work" + ], + [ + "conductor.year_of_work", + "maestro.year_of_work" + ], + [ + "director.year_of_work", + "maestro.year_of_work" + ] + ] + }, + { + "question": "what is the #name# of the conductor who has worked the greatest number of years?", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ], + "director": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "maestro": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ] + }, + "linking_list": [ + [ + "name", + "conductor.name" + ], + [ + "name", + "director.name" + ], + [ + "name", + "maestro.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "conductor.name" + ], + [ + 0, + "director.name" + ], + [ + 0, + "maestro.name" + ] + ], + "linking_list_col": [ + [ + "conductor.conductor_id", + "director.conductor_id" + ], + [ + "conductor.conductor_id", + "maestro.conductor_id" + ], + [ + "director.conductor_id", + "maestro.conductor_id" + ], + [ + "conductor.name", + "director.name" + ], + [ + "conductor.name", + "maestro.name" + ], + [ + "director.name", + "maestro.name" + ], + [ + "conductor.age", + "director.age" + ], + [ + "conductor.age", + "maestro.age" + ], + [ + "director.age", + "maestro.age" + ], + [ + "conductor.nationality", + "director.nationality" + ], + [ + "conductor.nationality", + "maestro.nationality" + ], + [ + "director.nationality", + "maestro.nationality" + ], + [ + "conductor.year_of_work", + "director.year_of_work" + ], + [ + "conductor.year_of_work", + "maestro.year_of_work" + ], + [ + "director.year_of_work", + "maestro.year_of_work" + ] + ] + }, + { + "question": "please show the name of the conductor that has conducted #orchestras founded after 2008# .", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ], + "ensemble": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "symphony": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ] + }, + "linking_list": [ + [ + "orchestras founded after 2008", + "orchestra.year_of_founded" + ], + [ + "orchestras founded after 2008", + "ensemble.year_of_founded" + ], + [ + "orchestras founded after 2008", + "symphony.year_of_founded" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.year_of_founded" + ], + [ + 0, + "ensemble.year_of_founded" + ], + [ + 0, + "symphony.year_of_founded" + ] + ], + "linking_list_col": [ + [ + "orchestra.orchestra_id", + "ensemble.orchestra_id" + ], + [ + "orchestra.orchestra_id", + "symphony.orchestra_id" + ], + [ + "ensemble.orchestra_id", + "symphony.orchestra_id" + ], + [ + "orchestra.orchestra", + "ensemble.orchestra" + ], + [ + "orchestra.orchestra", + "symphony.orchestra" + ], + [ + "ensemble.orchestra", + "symphony.orchestra" + ], + [ + "orchestra.conductor_id", + "ensemble.conductor_id" + ], + [ + "orchestra.conductor_id", + "symphony.conductor_id" + ], + [ + "ensemble.conductor_id", + "symphony.conductor_id" + ], + [ + "orchestra.record_company", + "ensemble.record_company" + ], + [ + "orchestra.record_company", + "symphony.record_company" + ], + [ + "ensemble.record_company", + "symphony.record_company" + ], + [ + "orchestra.year_of_founded", + "ensemble.year_of_founded" + ], + [ + "orchestra.year_of_founded", + "symphony.year_of_founded" + ], + [ + "ensemble.year_of_founded", + "symphony.year_of_founded" + ], + [ + "orchestra.major_record_format", + "ensemble.major_record_format" + ], + [ + "orchestra.major_record_format", + "symphony.major_record_format" + ], + [ + "ensemble.major_record_format", + "symphony.major_record_format" + ] + ] + }, + { + "question": "please show the different record companies and the corresponding #number of orchestras# .", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ], + "ensemble": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "symphony": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ] + }, + "linking_list": [ + [ + "number of orchestras", + "orchestra.orchestra_id" + ], + [ + "number of orchestras", + "ensemble.orchestra_id" + ], + [ + "number of orchestras", + "symphony.orchestra_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.orchestra_id" + ], + [ + 0, + "ensemble.orchestra_id" + ], + [ + 0, + "symphony.orchestra_id" + ] + ], + "linking_list_col": [ + [ + "orchestra.orchestra_id", + "ensemble.orchestra_id" + ], + [ + "orchestra.orchestra_id", + "symphony.orchestra_id" + ], + [ + "ensemble.orchestra_id", + "symphony.orchestra_id" + ], + [ + "orchestra.orchestra", + "ensemble.orchestra" + ], + [ + "orchestra.orchestra", + "symphony.orchestra" + ], + [ + "ensemble.orchestra", + "symphony.orchestra" + ], + [ + "orchestra.conductor_id", + "ensemble.conductor_id" + ], + [ + "orchestra.conductor_id", + "symphony.conductor_id" + ], + [ + "ensemble.conductor_id", + "symphony.conductor_id" + ], + [ + "orchestra.record_company", + "ensemble.record_company" + ], + [ + "orchestra.record_company", + "symphony.record_company" + ], + [ + "ensemble.record_company", + "symphony.record_company" + ], + [ + "orchestra.year_of_founded", + "ensemble.year_of_founded" + ], + [ + "orchestra.year_of_founded", + "symphony.year_of_founded" + ], + [ + "ensemble.year_of_founded", + "symphony.year_of_founded" + ], + [ + "orchestra.major_record_format", + "ensemble.major_record_format" + ], + [ + "orchestra.major_record_format", + "symphony.major_record_format" + ], + [ + "ensemble.major_record_format", + "symphony.major_record_format" + ] + ] + }, + { + "question": "how many orchestras does each #record company# manage?", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ], + "ensemble": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "symphony": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ] + }, + "linking_list": [ + [ + "Record Company", + "orchestra.record_company" + ], + [ + "Record Company", + "ensemble.record_company" + ], + [ + "Record Company", + "symphony.record_company" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.record_company" + ], + [ + 0, + "ensemble.record_company" + ], + [ + 0, + "symphony.record_company" + ] + ], + "linking_list_col": [ + [ + "orchestra.orchestra_id", + "ensemble.orchestra_id" + ], + [ + "orchestra.orchestra_id", + "symphony.orchestra_id" + ], + [ + "ensemble.orchestra_id", + "symphony.orchestra_id" + ], + [ + "orchestra.orchestra", + "ensemble.orchestra" + ], + [ + "orchestra.orchestra", + "symphony.orchestra" + ], + [ + "ensemble.orchestra", + "symphony.orchestra" + ], + [ + "orchestra.conductor_id", + "ensemble.conductor_id" + ], + [ + "orchestra.conductor_id", + "symphony.conductor_id" + ], + [ + "ensemble.conductor_id", + "symphony.conductor_id" + ], + [ + "orchestra.record_company", + "ensemble.record_company" + ], + [ + "orchestra.record_company", + "symphony.record_company" + ], + [ + "ensemble.record_company", + "symphony.record_company" + ], + [ + "orchestra.year_of_founded", + "ensemble.year_of_founded" + ], + [ + "orchestra.year_of_founded", + "symphony.year_of_founded" + ], + [ + "ensemble.year_of_founded", + "symphony.year_of_founded" + ], + [ + "orchestra.major_record_format", + "ensemble.major_record_format" + ], + [ + "orchestra.major_record_format", + "symphony.major_record_format" + ], + [ + "ensemble.major_record_format", + "symphony.major_record_format" + ] + ] + }, + { + "question": "please show the #record formats# of orchestras in ascending order of count.", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ], + "ensemble": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "symphony": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ] + }, + "linking_list": [ + [ + "record formats", + "orchestra.major_record_format" + ], + [ + "record formats", + "ensemble.major_record_format" + ], + [ + "record formats", + "symphony.major_record_format" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.major_record_format" + ], + [ + 0, + "ensemble.major_record_format" + ], + [ + 0, + "symphony.major_record_format" + ] + ], + "linking_list_col": [ + [ + "orchestra.orchestra_id", + "ensemble.orchestra_id" + ], + [ + "orchestra.orchestra_id", + "symphony.orchestra_id" + ], + [ + "ensemble.orchestra_id", + "symphony.orchestra_id" + ], + [ + "orchestra.orchestra", + "ensemble.orchestra" + ], + [ + "orchestra.orchestra", + "symphony.orchestra" + ], + [ + "ensemble.orchestra", + "symphony.orchestra" + ], + [ + "orchestra.conductor_id", + "ensemble.conductor_id" + ], + [ + "orchestra.conductor_id", + "symphony.conductor_id" + ], + [ + "ensemble.conductor_id", + "symphony.conductor_id" + ], + [ + "orchestra.record_company", + "ensemble.record_company" + ], + [ + "orchestra.record_company", + "symphony.record_company" + ], + [ + "ensemble.record_company", + "symphony.record_company" + ], + [ + "orchestra.year_of_founded", + "ensemble.year_of_founded" + ], + [ + "orchestra.year_of_founded", + "symphony.year_of_founded" + ], + [ + "ensemble.year_of_founded", + "symphony.year_of_founded" + ], + [ + "orchestra.major_record_format", + "ensemble.major_record_format" + ], + [ + "orchestra.major_record_format", + "symphony.major_record_format" + ], + [ + "ensemble.major_record_format", + "symphony.major_record_format" + ] + ] + }, + { + "question": "what are the #major record formats# of orchestras, sorted by their frequency?", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ], + "ensemble": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "symphony": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ] + }, + "linking_list": [ + [ + "major record formats", + "orchestra.major_record_format" + ], + [ + "major record formats", + "ensemble.major_record_format" + ], + [ + "major record formats", + "symphony.major_record_format" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.major_record_format" + ], + [ + 0, + "ensemble.major_record_format" + ], + [ + 0, + "symphony.major_record_format" + ] + ], + "linking_list_col": [ + [ + "orchestra.orchestra_id", + "ensemble.orchestra_id" + ], + [ + "orchestra.orchestra_id", + "symphony.orchestra_id" + ], + [ + "ensemble.orchestra_id", + "symphony.orchestra_id" + ], + [ + "orchestra.orchestra", + "ensemble.orchestra" + ], + [ + "orchestra.orchestra", + "symphony.orchestra" + ], + [ + "ensemble.orchestra", + "symphony.orchestra" + ], + [ + "orchestra.conductor_id", + "ensemble.conductor_id" + ], + [ + "orchestra.conductor_id", + "symphony.conductor_id" + ], + [ + "ensemble.conductor_id", + "symphony.conductor_id" + ], + [ + "orchestra.record_company", + "ensemble.record_company" + ], + [ + "orchestra.record_company", + "symphony.record_company" + ], + [ + "ensemble.record_company", + "symphony.record_company" + ], + [ + "orchestra.year_of_founded", + "ensemble.year_of_founded" + ], + [ + "orchestra.year_of_founded", + "symphony.year_of_founded" + ], + [ + "ensemble.year_of_founded", + "symphony.year_of_founded" + ], + [ + "orchestra.major_record_format", + "ensemble.major_record_format" + ], + [ + "orchestra.major_record_format", + "symphony.major_record_format" + ], + [ + "ensemble.major_record_format", + "symphony.major_record_format" + ] + ] + }, + { + "question": "list the #record company# shared by the most number of orchestras.", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ], + "ensemble": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "symphony": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ] + }, + "linking_list": [ + [ + "record company", + "orchestra.record_company" + ], + [ + "record company", + "ensemble.record_company" + ], + [ + "record company", + "symphony.record_company" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.record_company" + ], + [ + 0, + "ensemble.record_company" + ], + [ + 0, + "symphony.record_company" + ] + ], + "linking_list_col": [ + [ + "orchestra.orchestra_id", + "ensemble.orchestra_id" + ], + [ + "orchestra.orchestra_id", + "symphony.orchestra_id" + ], + [ + "ensemble.orchestra_id", + "symphony.orchestra_id" + ], + [ + "orchestra.orchestra", + "ensemble.orchestra" + ], + [ + "orchestra.orchestra", + "symphony.orchestra" + ], + [ + "ensemble.orchestra", + "symphony.orchestra" + ], + [ + "orchestra.conductor_id", + "ensemble.conductor_id" + ], + [ + "orchestra.conductor_id", + "symphony.conductor_id" + ], + [ + "ensemble.conductor_id", + "symphony.conductor_id" + ], + [ + "orchestra.record_company", + "ensemble.record_company" + ], + [ + "orchestra.record_company", + "symphony.record_company" + ], + [ + "ensemble.record_company", + "symphony.record_company" + ], + [ + "orchestra.year_of_founded", + "ensemble.year_of_founded" + ], + [ + "orchestra.year_of_founded", + "symphony.year_of_founded" + ], + [ + "ensemble.year_of_founded", + "symphony.year_of_founded" + ], + [ + "orchestra.major_record_format", + "ensemble.major_record_format" + ], + [ + "orchestra.major_record_format", + "symphony.major_record_format" + ], + [ + "ensemble.major_record_format", + "symphony.major_record_format" + ] + ] + }, + { + "question": "what is the #record company# used by the greatest number of orchestras?", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ], + "ensemble": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "symphony": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ] + }, + "linking_list": [ + [ + "record company", + "orchestra.record_company" + ], + [ + "record company", + "ensemble.record_company" + ], + [ + "record company", + "symphony.record_company" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.record_company" + ], + [ + 0, + "ensemble.record_company" + ], + [ + 0, + "symphony.record_company" + ] + ], + "linking_list_col": [ + [ + "orchestra.orchestra_id", + "ensemble.orchestra_id" + ], + [ + "orchestra.orchestra_id", + "symphony.orchestra_id" + ], + [ + "ensemble.orchestra_id", + "symphony.orchestra_id" + ], + [ + "orchestra.orchestra", + "ensemble.orchestra" + ], + [ + "orchestra.orchestra", + "symphony.orchestra" + ], + [ + "ensemble.orchestra", + "symphony.orchestra" + ], + [ + "orchestra.conductor_id", + "ensemble.conductor_id" + ], + [ + "orchestra.conductor_id", + "symphony.conductor_id" + ], + [ + "ensemble.conductor_id", + "symphony.conductor_id" + ], + [ + "orchestra.record_company", + "ensemble.record_company" + ], + [ + "orchestra.record_company", + "symphony.record_company" + ], + [ + "ensemble.record_company", + "symphony.record_company" + ], + [ + "orchestra.year_of_founded", + "ensemble.year_of_founded" + ], + [ + "orchestra.year_of_founded", + "symphony.year_of_founded" + ], + [ + "ensemble.year_of_founded", + "symphony.year_of_founded" + ], + [ + "orchestra.major_record_format", + "ensemble.major_record_format" + ], + [ + "orchestra.major_record_format", + "symphony.major_record_format" + ], + [ + "ensemble.major_record_format", + "symphony.major_record_format" + ] + ] + }, + { + "question": "show the #record companies# shared by orchestras #founded before 2003# and after 2003.", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ], + "ensemble": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "symphony": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ] + }, + "linking_list": [ + [ + "record companies", + "orchestra.record_company" + ], + [ + "record companies", + "ensemble.record_company" + ], + [ + "record companies", + "symphony.record_company" + ], + [ + "founded before 2003", + "orchestra.year_of_founded" + ], + [ + "founded before 2003", + "ensemble.year_of_founded" + ], + [ + "founded before 2003", + "symphony.year_of_founded" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.record_company" + ], + [ + 0, + "ensemble.record_company" + ], + [ + 0, + "symphony.record_company" + ], + [ + 1, + "orchestra.year_of_founded" + ], + [ + 1, + "ensemble.year_of_founded" + ], + [ + 1, + "symphony.year_of_founded" + ] + ], + "linking_list_col": [ + [ + "orchestra.orchestra_id", + "ensemble.orchestra_id" + ], + [ + "orchestra.orchestra_id", + "symphony.orchestra_id" + ], + [ + "ensemble.orchestra_id", + "symphony.orchestra_id" + ], + [ + "orchestra.orchestra", + "ensemble.orchestra" + ], + [ + "orchestra.orchestra", + "symphony.orchestra" + ], + [ + "ensemble.orchestra", + "symphony.orchestra" + ], + [ + "orchestra.conductor_id", + "ensemble.conductor_id" + ], + [ + "orchestra.conductor_id", + "symphony.conductor_id" + ], + [ + "ensemble.conductor_id", + "symphony.conductor_id" + ], + [ + "orchestra.record_company", + "ensemble.record_company" + ], + [ + "orchestra.record_company", + "symphony.record_company" + ], + [ + "ensemble.record_company", + "symphony.record_company" + ], + [ + "orchestra.year_of_founded", + "ensemble.year_of_founded" + ], + [ + "orchestra.year_of_founded", + "symphony.year_of_founded" + ], + [ + "ensemble.year_of_founded", + "symphony.year_of_founded" + ], + [ + "orchestra.major_record_format", + "ensemble.major_record_format" + ], + [ + "orchestra.major_record_format", + "symphony.major_record_format" + ], + [ + "ensemble.major_record_format", + "symphony.major_record_format" + ] + ] + }, + { + "question": "what are the #record companies# that are used by both #orchestras founded before 2003# and those founded after 2003?", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ], + "ensemble": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "symphony": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ] + }, + "linking_list": [ + [ + "record companies", + "orchestra.record_company" + ], + [ + "record companies", + "ensemble.record_company" + ], + [ + "record companies", + "symphony.record_company" + ], + [ + "orchestras founded before 2003", + "orchestra.year_of_founded" + ], + [ + "orchestras founded before 2003", + "ensemble.year_of_founded" + ], + [ + "orchestras founded before 2003", + "symphony.year_of_founded" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.record_company" + ], + [ + 0, + "ensemble.record_company" + ], + [ + 0, + "symphony.record_company" + ], + [ + 1, + "orchestra.year_of_founded" + ], + [ + 1, + "ensemble.year_of_founded" + ], + [ + 1, + "symphony.year_of_founded" + ] + ], + "linking_list_col": [ + [ + "orchestra.orchestra_id", + "ensemble.orchestra_id" + ], + [ + "orchestra.orchestra_id", + "symphony.orchestra_id" + ], + [ + "ensemble.orchestra_id", + "symphony.orchestra_id" + ], + [ + "orchestra.orchestra", + "ensemble.orchestra" + ], + [ + "orchestra.orchestra", + "symphony.orchestra" + ], + [ + "ensemble.orchestra", + "symphony.orchestra" + ], + [ + "orchestra.conductor_id", + "ensemble.conductor_id" + ], + [ + "orchestra.conductor_id", + "symphony.conductor_id" + ], + [ + "ensemble.conductor_id", + "symphony.conductor_id" + ], + [ + "orchestra.record_company", + "ensemble.record_company" + ], + [ + "orchestra.record_company", + "symphony.record_company" + ], + [ + "ensemble.record_company", + "symphony.record_company" + ], + [ + "orchestra.year_of_founded", + "ensemble.year_of_founded" + ], + [ + "orchestra.year_of_founded", + "symphony.year_of_founded" + ], + [ + "ensemble.year_of_founded", + "symphony.year_of_founded" + ], + [ + "orchestra.major_record_format", + "ensemble.major_record_format" + ], + [ + "orchestra.major_record_format", + "symphony.major_record_format" + ], + [ + "ensemble.major_record_format", + "symphony.major_record_format" + ] + ] + }, + { + "question": "find the #number of orchestras# whose #record format# is \"cd\" or \"dvd\".", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ], + "ensemble": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "symphony": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ] + }, + "linking_list": [ + [ + "number of orchestras", + "orchestra.orchestra_id" + ], + [ + "number of orchestras", + "ensemble.orchestra_id" + ], + [ + "number of orchestras", + "symphony.orchestra_id" + ], + [ + "record format", + "orchestra.major_record_format" + ], + [ + "record format", + "ensemble.major_record_format" + ], + [ + "record format", + "symphony.major_record_format" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.orchestra_id" + ], + [ + 0, + "ensemble.orchestra_id" + ], + [ + 0, + "symphony.orchestra_id" + ], + [ + 1, + "orchestra.major_record_format" + ], + [ + 1, + "ensemble.major_record_format" + ], + [ + 1, + "symphony.major_record_format" + ] + ], + "linking_list_col": [ + [ + "orchestra.orchestra_id", + "ensemble.orchestra_id" + ], + [ + "orchestra.orchestra_id", + "symphony.orchestra_id" + ], + [ + "ensemble.orchestra_id", + "symphony.orchestra_id" + ], + [ + "orchestra.orchestra", + "ensemble.orchestra" + ], + [ + "orchestra.orchestra", + "symphony.orchestra" + ], + [ + "ensemble.orchestra", + "symphony.orchestra" + ], + [ + "orchestra.conductor_id", + "ensemble.conductor_id" + ], + [ + "orchestra.conductor_id", + "symphony.conductor_id" + ], + [ + "ensemble.conductor_id", + "symphony.conductor_id" + ], + [ + "orchestra.record_company", + "ensemble.record_company" + ], + [ + "orchestra.record_company", + "symphony.record_company" + ], + [ + "ensemble.record_company", + "symphony.record_company" + ], + [ + "orchestra.year_of_founded", + "ensemble.year_of_founded" + ], + [ + "orchestra.year_of_founded", + "symphony.year_of_founded" + ], + [ + "ensemble.year_of_founded", + "symphony.year_of_founded" + ], + [ + "orchestra.major_record_format", + "ensemble.major_record_format" + ], + [ + "orchestra.major_record_format", + "symphony.major_record_format" + ], + [ + "ensemble.major_record_format", + "symphony.major_record_format" + ] + ] + }, + { + "question": "count the #number of orchestras# that have cd or dvd as their #record format# .", + "db_schema": { + "conductor": [ + "conductor_id", + "name", + "age", + "nationality", + "year_of_work" + ], + "orchestra": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "performance": [ + "performance_id", + "orchestra_id", + "type", + "date", + "official_ratings_(millions)", + "weekly_rank", + "share" + ], + "show": [ + "show_id", + "performance_id", + "if_first_show", + "result", + "attendance" + ], + "ensemble": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ], + "symphony": [ + "orchestra_id", + "orchestra", + "conductor_id", + "record_company", + "year_of_founded", + "major_record_format" + ] + }, + "linking_list": [ + [ + "number of orchestras", + "orchestra.orchestra_id" + ], + [ + "number of orchestras", + "ensemble.orchestra_id" + ], + [ + "number of orchestras", + "symphony.orchestra_id" + ], + [ + "record format", + "orchestra.major_record_format" + ], + [ + "record format", + "ensemble.major_record_format" + ], + [ + "record format", + "symphony.major_record_format" + ] + ], + "linking_list_idx": [ + [ + 0, + "orchestra.orchestra_id" + ], + [ + 0, + "ensemble.orchestra_id" + ], + [ + 0, + "symphony.orchestra_id" + ], + [ + 1, + "orchestra.major_record_format" + ], + [ + 1, + "ensemble.major_record_format" + ], + [ + 1, + "symphony.major_record_format" + ] + ], + "linking_list_col": [ + [ + "orchestra.orchestra_id", + "ensemble.orchestra_id" + ], + [ + "orchestra.orchestra_id", + "symphony.orchestra_id" + ], + [ + "ensemble.orchestra_id", + "symphony.orchestra_id" + ], + [ + "orchestra.orchestra", + "ensemble.orchestra" + ], + [ + "orchestra.orchestra", + "symphony.orchestra" + ], + [ + "ensemble.orchestra", + "symphony.orchestra" + ], + [ + "orchestra.conductor_id", + "ensemble.conductor_id" + ], + [ + "orchestra.conductor_id", + "symphony.conductor_id" + ], + [ + "ensemble.conductor_id", + "symphony.conductor_id" + ], + [ + "orchestra.record_company", + "ensemble.record_company" + ], + [ + "orchestra.record_company", + "symphony.record_company" + ], + [ + "ensemble.record_company", + "symphony.record_company" + ], + [ + "orchestra.year_of_founded", + "ensemble.year_of_founded" + ], + [ + "orchestra.year_of_founded", + "symphony.year_of_founded" + ], + [ + "ensemble.year_of_founded", + "symphony.year_of_founded" + ], + [ + "orchestra.major_record_format", + "ensemble.major_record_format" + ], + [ + "orchestra.major_record_format", + "symphony.major_record_format" + ], + [ + "ensemble.major_record_format", + "symphony.major_record_format" + ] + ] + }, + { + "question": "what #grade# is kyle in?", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "linking_list": [ + [ + "grade", + "highschooler.grade" + ], + [ + "grade", + "Student.grade" + ], + [ + "grade", + "Teenager.grade" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.grade" + ], + [ + 0, + "Student.grade" + ], + [ + 0, + "Teenager.grade" + ] + ], + "linking_list_col": [ + [ + "highschooler.id", + "student.id" + ], + [ + "highschooler.id", + "teenager.id" + ], + [ + "student.id", + "teenager.id" + ], + [ + "highschooler.name", + "student.name" + ], + [ + "highschooler.name", + "teenager.name" + ], + [ + "student.name", + "teenager.name" + ], + [ + "highschooler.grade", + "student.grade" + ], + [ + "highschooler.grade", + "teenager.grade" + ], + [ + "student.grade", + "teenager.grade" + ] + ] + }, + { + "question": "return the #grade# for the high schooler named kyle.", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "linking_list": [ + [ + "grade", + "highschooler.grade" + ], + [ + "grade", + "Student.grade" + ], + [ + "grade", + "Teenager.grade" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.grade" + ], + [ + 0, + "Student.grade" + ], + [ + 0, + "Teenager.grade" + ] + ], + "linking_list_col": [ + [ + "highschooler.id", + "student.id" + ], + [ + "highschooler.id", + "teenager.id" + ], + [ + "student.id", + "teenager.id" + ], + [ + "highschooler.name", + "student.name" + ], + [ + "highschooler.name", + "teenager.name" + ], + [ + "student.name", + "teenager.name" + ], + [ + "highschooler.grade", + "student.grade" + ], + [ + "highschooler.grade", + "teenager.grade" + ], + [ + "student.grade", + "teenager.grade" + ] + ] + }, + { + "question": "show the names of all high schoolers in #grade# 10.", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "linking_list": [ + [ + "grade", + "highschooler.grade" + ], + [ + "grade", + "Student.grade" + ], + [ + "grade", + "Teenager.grade" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.grade" + ], + [ + 0, + "Student.grade" + ], + [ + 0, + "Teenager.grade" + ] + ], + "linking_list_col": [ + [ + "highschooler.id", + "student.id" + ], + [ + "highschooler.id", + "teenager.id" + ], + [ + "student.id", + "teenager.id" + ], + [ + "highschooler.name", + "student.name" + ], + [ + "highschooler.name", + "teenager.name" + ], + [ + "student.name", + "teenager.name" + ], + [ + "highschooler.grade", + "student.grade" + ], + [ + "highschooler.grade", + "teenager.grade" + ], + [ + "student.grade", + "teenager.grade" + ] + ] + }, + { + "question": "what are the names of all high schoolers in #grade# 10?", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "linking_list": [ + [ + "grade", + "highschooler.grade" + ], + [ + "grade", + "Student.grade" + ], + [ + "grade", + "Teenager.grade" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.grade" + ], + [ + 0, + "Student.grade" + ], + [ + 0, + "Teenager.grade" + ] + ], + "linking_list_col": [ + [ + "highschooler.id", + "student.id" + ], + [ + "highschooler.id", + "teenager.id" + ], + [ + "student.id", + "teenager.id" + ], + [ + "highschooler.name", + "student.name" + ], + [ + "highschooler.name", + "teenager.name" + ], + [ + "student.name", + "teenager.name" + ], + [ + "highschooler.grade", + "student.grade" + ], + [ + "highschooler.grade", + "teenager.grade" + ], + [ + "student.grade", + "teenager.grade" + ] + ] + }, + { + "question": "show the #id# of the high schooler named kyle.", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "linking_list": [ + [ + "ID", + "highschooler.id" + ], + [ + "ID", + "Student.id" + ], + [ + "ID", + "Teenager.id" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.id" + ], + [ + 0, + "Student.id" + ], + [ + 0, + "Teenager.id" + ] + ], + "linking_list_col": [ + [ + "highschooler.id", + "student.id" + ], + [ + "highschooler.id", + "teenager.id" + ], + [ + "student.id", + "teenager.id" + ], + [ + "highschooler.name", + "student.name" + ], + [ + "highschooler.name", + "teenager.name" + ], + [ + "student.name", + "teenager.name" + ], + [ + "highschooler.grade", + "student.grade" + ], + [ + "highschooler.grade", + "teenager.grade" + ], + [ + "student.grade", + "teenager.grade" + ] + ] + }, + { + "question": "how many high schoolers are there in #grade# 9 or 10?", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "linking_list": [ + [ + "grade", + "highschooler.grade" + ], + [ + "grade", + "Student.grade" + ], + [ + "grade", + "Teenager.grade" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.grade" + ], + [ + 0, + "Student.grade" + ], + [ + 0, + "Teenager.grade" + ] + ], + "linking_list_col": [ + [ + "highschooler.id", + "student.id" + ], + [ + "highschooler.id", + "teenager.id" + ], + [ + "student.id", + "teenager.id" + ], + [ + "highschooler.name", + "student.name" + ], + [ + "highschooler.name", + "teenager.name" + ], + [ + "student.name", + "teenager.name" + ], + [ + "highschooler.grade", + "student.grade" + ], + [ + "highschooler.grade", + "teenager.grade" + ], + [ + "student.grade", + "teenager.grade" + ] + ] + }, + { + "question": "count the #number of high schoolers# in grades 9 or 10.", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "linking_list": [ + [ + "number of high schoolers", + "highschooler.grade" + ], + [ + "number of high schoolers", + "Student.grade" + ], + [ + "number of high schoolers", + "Teenager.grade" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.grade" + ], + [ + 0, + "Student.grade" + ], + [ + 0, + "Teenager.grade" + ] + ], + "linking_list_col": [ + [ + "highschooler.id", + "student.id" + ], + [ + "highschooler.id", + "teenager.id" + ], + [ + "student.id", + "teenager.id" + ], + [ + "highschooler.name", + "student.name" + ], + [ + "highschooler.name", + "teenager.name" + ], + [ + "student.name", + "teenager.name" + ], + [ + "highschooler.grade", + "student.grade" + ], + [ + "highschooler.grade", + "teenager.grade" + ], + [ + "student.grade", + "teenager.grade" + ] + ] + }, + { + "question": "show the #number of high schoolers for each grade# .", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "linking_list": [ + [ + "number of high schoolers for each grade", + "highschooler.grade" + ], + [ + "number of high schoolers for each grade", + "Student.grade" + ], + [ + "number of high schoolers for each grade", + "Teenager.grade" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.grade" + ], + [ + 0, + "Student.grade" + ], + [ + 0, + "Teenager.grade" + ] + ], + "linking_list_col": [ + [ + "highschooler.id", + "student.id" + ], + [ + "highschooler.id", + "teenager.id" + ], + [ + "student.id", + "teenager.id" + ], + [ + "highschooler.name", + "student.name" + ], + [ + "highschooler.name", + "teenager.name" + ], + [ + "student.name", + "teenager.name" + ], + [ + "highschooler.grade", + "student.grade" + ], + [ + "highschooler.grade", + "teenager.grade" + ], + [ + "student.grade", + "teenager.grade" + ] + ] + }, + { + "question": "which #grade# has the most high schoolers?", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "linking_list": [ + [ + "grade", + "highschooler.grade" + ], + [ + "grade", + "Student.grade" + ], + [ + "grade", + "Teenager.grade" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.grade" + ], + [ + 0, + "Student.grade" + ], + [ + 0, + "Teenager.grade" + ] + ], + "linking_list_col": [ + [ + "highschooler.id", + "student.id" + ], + [ + "highschooler.id", + "teenager.id" + ], + [ + "student.id", + "teenager.id" + ], + [ + "highschooler.name", + "student.name" + ], + [ + "highschooler.name", + "teenager.name" + ], + [ + "student.name", + "teenager.name" + ], + [ + "highschooler.grade", + "student.grade" + ], + [ + "highschooler.grade", + "teenager.grade" + ], + [ + "student.grade", + "teenager.grade" + ] + ] + }, + { + "question": "return the #grade# that has the greatest number of high schoolers.", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "linking_list": [ + [ + "grade", + "highschooler.grade" + ], + [ + "grade", + "Student.grade" + ], + [ + "grade", + "Teenager.grade" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.grade" + ], + [ + 0, + "Student.grade" + ], + [ + 0, + "Teenager.grade" + ] + ], + "linking_list_col": [ + [ + "highschooler.id", + "student.id" + ], + [ + "highschooler.id", + "teenager.id" + ], + [ + "student.id", + "teenager.id" + ], + [ + "highschooler.name", + "student.name" + ], + [ + "highschooler.name", + "teenager.name" + ], + [ + "student.name", + "teenager.name" + ], + [ + "highschooler.grade", + "student.grade" + ], + [ + "highschooler.grade", + "teenager.grade" + ], + [ + "student.grade", + "teenager.grade" + ] + ] + }, + { + "question": "show me all #grades# that have at least 4 students.", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "linking_list": [ + [ + "grades", + "highschooler.grade" + ], + [ + "grades", + "Student.grade" + ], + [ + "grades", + "Teenager.grade" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.grade" + ], + [ + 0, + "Student.grade" + ], + [ + 0, + "Teenager.grade" + ] + ], + "linking_list_col": [ + [ + "highschooler.id", + "student.id" + ], + [ + "highschooler.id", + "teenager.id" + ], + [ + "student.id", + "teenager.id" + ], + [ + "highschooler.name", + "student.name" + ], + [ + "highschooler.name", + "teenager.name" + ], + [ + "student.name", + "teenager.name" + ], + [ + "highschooler.grade", + "student.grade" + ], + [ + "highschooler.grade", + "teenager.grade" + ], + [ + "student.grade", + "teenager.grade" + ] + ] + }, + { + "question": "which #grades# have 4 or more high schoolers?", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "linking_list": [ + [ + "grades", + "highschooler.grade" + ], + [ + "grades", + "Student.grade" + ], + [ + "grades", + "Teenager.grade" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.grade" + ], + [ + 0, + "Student.grade" + ], + [ + 0, + "Teenager.grade" + ] + ], + "linking_list_col": [ + [ + "highschooler.id", + "student.id" + ], + [ + "highschooler.id", + "teenager.id" + ], + [ + "student.id", + "teenager.id" + ], + [ + "highschooler.name", + "student.name" + ], + [ + "highschooler.name", + "teenager.name" + ], + [ + "student.name", + "teenager.name" + ], + [ + "highschooler.grade", + "student.grade" + ], + [ + "highschooler.grade", + "teenager.grade" + ], + [ + "student.grade", + "teenager.grade" + ] + ] + }, + { + "question": "show the names of high school students and their corresponding #number of friends# .", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Connection": [ + "student_id", + "friend_id" + ], + "Acquaintance": [ + "student_id", + "friend_id" + ] + }, + "linking_list": [ + [ + "number of friends", + "friend.student_id" + ], + [ + "number of friends", + "Connection.student_id" + ], + [ + "number of friends", + "Acquaintance.student_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "friend.student_id" + ], + [ + 0, + "Connection.student_id" + ], + [ + 0, + "Acquaintance.student_id" + ] + ], + "linking_list_col": [ + [ + "friend.student_id", + "connection.student_id" + ], + [ + "friend.student_id", + "acquaintance.student_id" + ], + [ + "connection.student_id", + "acquaintance.student_id" + ], + [ + "friend.friend_id", + "connection.friend_id" + ], + [ + "friend.friend_id", + "acquaintance.friend_id" + ], + [ + "connection.friend_id", + "acquaintance.friend_id" + ] + ] + }, + { + "question": "show #ids of all students who do not have any friends# .", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Student": [ + "id", + "name", + "grade" + ], + "Teenager": [ + "id", + "name", + "grade" + ] + }, + "linking_list": [ + [ + "ids of all students who do not have any friends", + "highschooler.id" + ], + [ + "ids of all students who do not have any friends", + "Student.id" + ], + [ + "ids of all students who do not have any friends", + "Teenager.id" + ] + ], + "linking_list_idx": [ + [ + 0, + "highschooler.id" + ], + [ + 0, + "Student.id" + ], + [ + 0, + "Teenager.id" + ] + ], + "linking_list_col": [ + [ + "highschooler.id", + "student.id" + ], + [ + "highschooler.id", + "teenager.id" + ], + [ + "student.id", + "teenager.id" + ], + [ + "highschooler.name", + "student.name" + ], + [ + "highschooler.name", + "teenager.name" + ], + [ + "student.name", + "teenager.name" + ], + [ + "highschooler.grade", + "student.grade" + ], + [ + "highschooler.grade", + "teenager.grade" + ], + [ + "student.grade", + "teenager.grade" + ] + ] + }, + { + "question": "count the #number of likes for each student id# .", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Preferences": [ + "student_id", + "liked_id" + ], + "Favourites": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "number of likes for each student id", + "likes.student_id" + ], + [ + "number of likes for each student id", + "Preferences.student_id" + ], + [ + "number of likes for each student id", + "Favourites.student_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "likes.student_id" + ], + [ + 0, + "Preferences.student_id" + ], + [ + 0, + "Favourites.student_id" + ] + ], + "linking_list_col": [ + [ + "likes.student_id", + "preferences.student_id" + ], + [ + "likes.student_id", + "favourites.student_id" + ], + [ + "preferences.student_id", + "favourites.student_id" + ], + [ + "likes.liked_id", + "preferences.liked_id" + ], + [ + "likes.liked_id", + "favourites.liked_id" + ], + [ + "preferences.liked_id", + "favourites.liked_id" + ] + ] + }, + { + "question": "show the names of high schoolers who have likes, and #numbers of likes# for each.", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Preferences": [ + "student_id", + "liked_id" + ], + "Favourites": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "numbers of likes", + "likes.student_id" + ], + [ + "numbers of likes", + "Preferences.student_id" + ], + [ + "numbers of likes", + "Favourites.student_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "likes.student_id" + ], + [ + 0, + "Preferences.student_id" + ], + [ + 0, + "Favourites.student_id" + ] + ], + "linking_list_col": [ + [ + "likes.student_id", + "preferences.student_id" + ], + [ + "likes.student_id", + "favourites.student_id" + ], + [ + "preferences.student_id", + "favourites.student_id" + ], + [ + "likes.liked_id", + "preferences.liked_id" + ], + [ + "likes.liked_id", + "favourites.liked_id" + ], + [ + "preferences.liked_id", + "favourites.liked_id" + ] + ] + }, + { + "question": "how many #likes# does #kyle# have?", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Preferences": [ + "student_id", + "liked_id" + ], + "Favourites": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "likes", + "likes.student_id" + ], + [ + "likes", + "Preferences.student_id" + ], + [ + "likes", + "Favourites.student_id" + ], + [ + "Kyle", + "highschooler.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "likes.student_id" + ], + [ + 0, + "Preferences.student_id" + ], + [ + 0, + "Favourites.student_id" + ], + [ + 1, + "highschooler.name" + ] + ], + "linking_list_col": [ + [ + "likes.student_id", + "preferences.student_id" + ], + [ + "likes.student_id", + "favourites.student_id" + ], + [ + "preferences.student_id", + "favourites.student_id" + ], + [ + "likes.liked_id", + "preferences.liked_id" + ], + [ + "likes.liked_id", + "favourites.liked_id" + ], + [ + "preferences.liked_id", + "favourites.liked_id" + ] + ] + }, + { + "question": "return the #number of likes# that the high schooler named kyle has.", + "db_schema": { + "highschooler": [ + "id", + "name", + "grade" + ], + "friend": [ + "student_id", + "friend_id" + ], + "likes": [ + "student_id", + "liked_id" + ], + "Preferences": [ + "student_id", + "liked_id" + ], + "Favourites": [ + "student_id", + "liked_id" + ] + }, + "linking_list": [ + [ + "number of likes", + "likes.student_id" + ], + [ + "number of likes", + "Preferences.student_id" + ], + [ + "number of likes", + "Favourites.student_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "likes.student_id" + ], + [ + 0, + "Preferences.student_id" + ], + [ + 0, + "Favourites.student_id" + ] + ], + "linking_list_col": [ + [ + "likes.student_id", + "preferences.student_id" + ], + [ + "likes.student_id", + "favourites.student_id" + ], + [ + "preferences.student_id", + "favourites.student_id" + ], + [ + "likes.liked_id", + "preferences.liked_id" + ], + [ + "likes.liked_id", + "favourites.liked_id" + ], + [ + "preferences.liked_id", + "favourites.liked_id" + ] + ] + }, + { + "question": "which #states# have both owners and #professionals# living there?", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "Guardians": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "Caretakers": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ] + }, + "linking_list": [ + [ + "states", + "owners.state" + ], + [ + "states", + "Guardians.state" + ], + [ + "states", + "Caretakers.state" + ], + [ + "professionals", + "professionals.state" + ] + ], + "linking_list_idx": [ + [ + 0, + "owners.state" + ], + [ + 0, + "Guardians.state" + ], + [ + 0, + "Caretakers.state" + ], + [ + 1, + "professionals.state" + ] + ], + "linking_list_col": [ + [ + "owners.owner_id", + "guardians.owner_id" + ], + [ + "owners.owner_id", + "caretakers.owner_id" + ], + [ + "guardians.owner_id", + "caretakers.owner_id" + ], + [ + "owners.first_name", + "guardians.first_name" + ], + [ + "owners.first_name", + "caretakers.first_name" + ], + [ + "guardians.first_name", + "caretakers.first_name" + ], + [ + "owners.last_name", + "guardians.last_name" + ], + [ + "owners.last_name", + "caretakers.last_name" + ], + [ + "guardians.last_name", + "caretakers.last_name" + ], + [ + "owners.street", + "guardians.street" + ], + [ + "owners.street", + "caretakers.street" + ], + [ + "guardians.street", + "caretakers.street" + ], + [ + "owners.city", + "guardians.city" + ], + [ + "owners.city", + "caretakers.city" + ], + [ + "guardians.city", + "caretakers.city" + ], + [ + "owners.state", + "guardians.state" + ], + [ + "owners.state", + "caretakers.state" + ], + [ + "guardians.state", + "caretakers.state" + ], + [ + "owners.zip_code", + "guardians.zip_code" + ], + [ + "owners.zip_code", + "caretakers.zip_code" + ], + [ + "guardians.zip_code", + "caretakers.zip_code" + ], + [ + "owners.email_address", + "guardians.email_address" + ], + [ + "owners.email_address", + "caretakers.email_address" + ], + [ + "guardians.email_address", + "caretakers.email_address" + ], + [ + "owners.home_phone", + "guardians.home_phone" + ], + [ + "owners.home_phone", + "caretakers.home_phone" + ], + [ + "guardians.home_phone", + "caretakers.home_phone" + ], + [ + "owners.cell_number", + "guardians.cell_number" + ], + [ + "owners.cell_number", + "caretakers.cell_number" + ], + [ + "guardians.cell_number", + "caretakers.cell_number" + ] + ] + }, + { + "question": "find the id, #last name# and #cell phone# of the professionals who live in the #state# of indiana or have performed more than two #treatments# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "procedures": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "therapies": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "last name", + "professionals.last_name" + ], + [ + "cell phone", + "professionals.cell_number" + ], + [ + "state", + "professionals.state" + ], + [ + "treatments", + "treatments.professional_id" + ], + [ + "treatments", + "procedures.professional_id" + ], + [ + "treatments", + "therapies.professional_id" + ] + ], + "linking_list_idx": [ + [ + 0, + "professionals.last_name" + ], + [ + 1, + "professionals.cell_number" + ], + [ + 2, + "professionals.state" + ], + [ + 3, + "treatments.professional_id" + ], + [ + 3, + "procedures.professional_id" + ], + [ + 3, + "therapies.professional_id" + ] + ], + "linking_list_col": [ + [ + "treatments.treatment_id", + "procedures.treatment_id" + ], + [ + "treatments.treatment_id", + "therapies.treatment_id" + ], + [ + "procedures.treatment_id", + "therapies.treatment_id" + ], + [ + "treatments.dog_id", + "procedures.dog_id" + ], + [ + "treatments.dog_id", + "therapies.dog_id" + ], + [ + "procedures.dog_id", + "therapies.dog_id" + ], + [ + "treatments.professional_id", + "procedures.professional_id" + ], + [ + "treatments.professional_id", + "therapies.professional_id" + ], + [ + "procedures.professional_id", + "therapies.professional_id" + ], + [ + "treatments.treatment_type_code", + "procedures.treatment_type_code" + ], + [ + "treatments.treatment_type_code", + "therapies.treatment_type_code" + ], + [ + "procedures.treatment_type_code", + "therapies.treatment_type_code" + ], + [ + "treatments.date_of_treatment", + "procedures.date_of_treatment" + ], + [ + "treatments.date_of_treatment", + "therapies.date_of_treatment" + ], + [ + "procedures.date_of_treatment", + "therapies.date_of_treatment" + ], + [ + "treatments.cost_of_treatment", + "procedures.cost_of_treatment" + ], + [ + "treatments.cost_of_treatment", + "therapies.cost_of_treatment" + ], + [ + "procedures.cost_of_treatment", + "therapies.cost_of_treatment" + ] + ] + }, + { + "question": "which #first names# are used for professionals or #owners# but are not used as dog names?", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "Handlers": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "Caregivers": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ] + }, + "linking_list": [ + [ + "first names", + "professionals.first_name" + ], + [ + "first names", + "Handlers.first_name" + ], + [ + "first names", + "Caregivers.first_name" + ], + [ + "owners", + "owners.first_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "professionals.first_name" + ], + [ + 0, + "Handlers.first_name" + ], + [ + 0, + "Caregivers.first_name" + ], + [ + 1, + "owners.first_name" + ] + ], + "linking_list_col": [ + [ + "professionals.professional_id", + "handlers.professional_id" + ], + [ + "professionals.professional_id", + "caregivers.professional_id" + ], + [ + "handlers.professional_id", + "caregivers.professional_id" + ], + [ + "professionals.role_code", + "handlers.role_code" + ], + [ + "professionals.role_code", + "caregivers.role_code" + ], + [ + "handlers.role_code", + "caregivers.role_code" + ], + [ + "professionals.first_name", + "handlers.first_name" + ], + [ + "professionals.first_name", + "caregivers.first_name" + ], + [ + "handlers.first_name", + "caregivers.first_name" + ], + [ + "professionals.street", + "handlers.street" + ], + [ + "professionals.street", + "caregivers.street" + ], + [ + "handlers.street", + "caregivers.street" + ], + [ + "professionals.city", + "handlers.city" + ], + [ + "professionals.city", + "caregivers.city" + ], + [ + "handlers.city", + "caregivers.city" + ], + [ + "professionals.state", + "handlers.state" + ], + [ + "professionals.state", + "caregivers.state" + ], + [ + "handlers.state", + "caregivers.state" + ], + [ + "professionals.zip_code", + "handlers.zip_code" + ], + [ + "professionals.zip_code", + "caregivers.zip_code" + ], + [ + "handlers.zip_code", + "caregivers.zip_code" + ], + [ + "professionals.last_name", + "handlers.last_name" + ], + [ + "professionals.last_name", + "caregivers.last_name" + ], + [ + "handlers.last_name", + "caregivers.last_name" + ], + [ + "professionals.email_address", + "handlers.email_address" + ], + [ + "professionals.email_address", + "caregivers.email_address" + ], + [ + "handlers.email_address", + "caregivers.email_address" + ], + [ + "professionals.home_phone", + "handlers.home_phone" + ], + [ + "professionals.home_phone", + "caregivers.home_phone" + ], + [ + "handlers.home_phone", + "caregivers.home_phone" + ], + [ + "professionals.cell_number", + "handlers.cell_number" + ], + [ + "professionals.cell_number", + "caregivers.cell_number" + ], + [ + "handlers.cell_number", + "caregivers.cell_number" + ] + ] + }, + { + "question": "give me the description of the treatment type whose #total cost# is the lowest.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "procedures": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "therapies": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "total cost", + "treatments.cost_of_treatment" + ], + [ + "total cost", + "procedures.cost_of_treatment" + ], + [ + "total cost", + "therapies.cost_of_treatment" + ] + ], + "linking_list_idx": [ + [ + 0, + "treatments.cost_of_treatment" + ], + [ + 0, + "procedures.cost_of_treatment" + ], + [ + 0, + "therapies.cost_of_treatment" + ] + ], + "linking_list_col": [ + [ + "treatments.treatment_id", + "procedures.treatment_id" + ], + [ + "treatments.treatment_id", + "therapies.treatment_id" + ], + [ + "procedures.treatment_id", + "therapies.treatment_id" + ], + [ + "treatments.dog_id", + "procedures.dog_id" + ], + [ + "treatments.dog_id", + "therapies.dog_id" + ], + [ + "procedures.dog_id", + "therapies.dog_id" + ], + [ + "treatments.professional_id", + "procedures.professional_id" + ], + [ + "treatments.professional_id", + "therapies.professional_id" + ], + [ + "procedures.professional_id", + "therapies.professional_id" + ], + [ + "treatments.treatment_type_code", + "procedures.treatment_type_code" + ], + [ + "treatments.treatment_type_code", + "therapies.treatment_type_code" + ], + [ + "procedures.treatment_type_code", + "therapies.treatment_type_code" + ], + [ + "treatments.date_of_treatment", + "procedures.date_of_treatment" + ], + [ + "treatments.date_of_treatment", + "therapies.date_of_treatment" + ], + [ + "procedures.date_of_treatment", + "therapies.date_of_treatment" + ], + [ + "treatments.cost_of_treatment", + "procedures.cost_of_treatment" + ], + [ + "treatments.cost_of_treatment", + "therapies.cost_of_treatment" + ], + [ + "procedures.cost_of_treatment", + "therapies.cost_of_treatment" + ] + ] + }, + { + "question": "what are the #first name# and #last name# of the professionals who have done treatment with #cost# below average?", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "procedures": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "therapies": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "first name", + "professionals.first_name" + ], + [ + "last name", + "professionals.last_name" + ], + [ + "cost", + "treatments.cost_of_treatment" + ], + [ + "cost", + "procedures.cost_of_treatment" + ], + [ + "cost", + "therapies.cost_of_treatment" + ] + ], + "linking_list_idx": [ + [ + 0, + "professionals.first_name" + ], + [ + 1, + "professionals.last_name" + ], + [ + 2, + "treatments.cost_of_treatment" + ], + [ + 2, + "procedures.cost_of_treatment" + ], + [ + 2, + "therapies.cost_of_treatment" + ] + ], + "linking_list_col": [ + [ + "treatments.treatment_id", + "procedures.treatment_id" + ], + [ + "treatments.treatment_id", + "therapies.treatment_id" + ], + [ + "procedures.treatment_id", + "therapies.treatment_id" + ], + [ + "treatments.dog_id", + "procedures.dog_id" + ], + [ + "treatments.dog_id", + "therapies.dog_id" + ], + [ + "procedures.dog_id", + "therapies.dog_id" + ], + [ + "treatments.professional_id", + "procedures.professional_id" + ], + [ + "treatments.professional_id", + "therapies.professional_id" + ], + [ + "procedures.professional_id", + "therapies.professional_id" + ], + [ + "treatments.treatment_type_code", + "procedures.treatment_type_code" + ], + [ + "treatments.treatment_type_code", + "therapies.treatment_type_code" + ], + [ + "procedures.treatment_type_code", + "therapies.treatment_type_code" + ], + [ + "treatments.date_of_treatment", + "procedures.date_of_treatment" + ], + [ + "treatments.date_of_treatment", + "therapies.date_of_treatment" + ], + [ + "procedures.date_of_treatment", + "therapies.date_of_treatment" + ], + [ + "treatments.cost_of_treatment", + "procedures.cost_of_treatment" + ], + [ + "treatments.cost_of_treatment", + "therapies.cost_of_treatment" + ], + [ + "procedures.cost_of_treatment", + "therapies.cost_of_treatment" + ] + ] + }, + { + "question": "what are the #date# and the #operating professional's first name# of each treatment?", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "procedures": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "therapies": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "date", + "treatments.date_of_treatment" + ], + [ + "date", + "procedures.date_of_treatment" + ], + [ + "date", + "therapies.date_of_treatment" + ], + [ + "operating professional's first name", + "professionals.first_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "treatments.date_of_treatment" + ], + [ + 0, + "procedures.date_of_treatment" + ], + [ + 0, + "therapies.date_of_treatment" + ], + [ + 1, + "professionals.first_name" + ] + ], + "linking_list_col": [ + [ + "treatments.treatment_id", + "procedures.treatment_id" + ], + [ + "treatments.treatment_id", + "therapies.treatment_id" + ], + [ + "procedures.treatment_id", + "therapies.treatment_id" + ], + [ + "treatments.dog_id", + "procedures.dog_id" + ], + [ + "treatments.dog_id", + "therapies.dog_id" + ], + [ + "procedures.dog_id", + "therapies.dog_id" + ], + [ + "treatments.professional_id", + "procedures.professional_id" + ], + [ + "treatments.professional_id", + "therapies.professional_id" + ], + [ + "procedures.professional_id", + "therapies.professional_id" + ], + [ + "treatments.treatment_type_code", + "procedures.treatment_type_code" + ], + [ + "treatments.treatment_type_code", + "therapies.treatment_type_code" + ], + [ + "procedures.treatment_type_code", + "therapies.treatment_type_code" + ], + [ + "treatments.date_of_treatment", + "procedures.date_of_treatment" + ], + [ + "treatments.date_of_treatment", + "therapies.date_of_treatment" + ], + [ + "procedures.date_of_treatment", + "therapies.date_of_treatment" + ], + [ + "treatments.cost_of_treatment", + "procedures.cost_of_treatment" + ], + [ + "treatments.cost_of_treatment", + "therapies.cost_of_treatment" + ], + [ + "procedures.cost_of_treatment", + "therapies.cost_of_treatment" + ] + ] + }, + { + "question": "what are the #cost# and #treatment type description# of each treatment?", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "procedures": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "therapies": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "cost", + "treatments.cost_of_treatment" + ], + [ + "cost", + "procedures.cost_of_treatment" + ], + [ + "cost", + "therapies.cost_of_treatment" + ], + [ + "treatment type description", + "treatment_types.treatment_type_description" + ] + ], + "linking_list_idx": [ + [ + 0, + "treatments.cost_of_treatment" + ], + [ + 0, + "procedures.cost_of_treatment" + ], + [ + 0, + "therapies.cost_of_treatment" + ], + [ + 1, + "treatment_types.treatment_type_description" + ] + ], + "linking_list_col": [ + [ + "treatments.treatment_id", + "procedures.treatment_id" + ], + [ + "treatments.treatment_id", + "therapies.treatment_id" + ], + [ + "procedures.treatment_id", + "therapies.treatment_id" + ], + [ + "treatments.dog_id", + "procedures.dog_id" + ], + [ + "treatments.dog_id", + "therapies.dog_id" + ], + [ + "procedures.dog_id", + "therapies.dog_id" + ], + [ + "treatments.professional_id", + "procedures.professional_id" + ], + [ + "treatments.professional_id", + "therapies.professional_id" + ], + [ + "procedures.professional_id", + "therapies.professional_id" + ], + [ + "treatments.treatment_type_code", + "procedures.treatment_type_code" + ], + [ + "treatments.treatment_type_code", + "therapies.treatment_type_code" + ], + [ + "procedures.treatment_type_code", + "therapies.treatment_type_code" + ], + [ + "treatments.date_of_treatment", + "procedures.date_of_treatment" + ], + [ + "treatments.date_of_treatment", + "therapies.date_of_treatment" + ], + [ + "procedures.date_of_treatment", + "therapies.date_of_treatment" + ], + [ + "treatments.cost_of_treatment", + "procedures.cost_of_treatment" + ], + [ + "treatments.cost_of_treatment", + "therapies.cost_of_treatment" + ], + [ + "procedures.cost_of_treatment", + "therapies.cost_of_treatment" + ] + ] + }, + { + "question": "list the names of the dogs of the rarest breed and the #treatment dates# of them.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "procedures": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "therapies": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ] + }, + "linking_list": [ + [ + "treatment dates", + "treatments.date_of_treatment" + ], + [ + "treatment dates", + "procedures.date_of_treatment" + ], + [ + "treatment dates", + "therapies.date_of_treatment" + ] + ], + "linking_list_idx": [ + [ + 0, + "treatments.date_of_treatment" + ], + [ + 0, + "procedures.date_of_treatment" + ], + [ + 0, + "therapies.date_of_treatment" + ] + ], + "linking_list_col": [ + [ + "treatments.treatment_id", + "procedures.treatment_id" + ], + [ + "treatments.treatment_id", + "therapies.treatment_id" + ], + [ + "procedures.treatment_id", + "therapies.treatment_id" + ], + [ + "treatments.dog_id", + "procedures.dog_id" + ], + [ + "treatments.dog_id", + "therapies.dog_id" + ], + [ + "procedures.dog_id", + "therapies.dog_id" + ], + [ + "treatments.professional_id", + "procedures.professional_id" + ], + [ + "treatments.professional_id", + "therapies.professional_id" + ], + [ + "procedures.professional_id", + "therapies.professional_id" + ], + [ + "treatments.treatment_type_code", + "procedures.treatment_type_code" + ], + [ + "treatments.treatment_type_code", + "therapies.treatment_type_code" + ], + [ + "procedures.treatment_type_code", + "therapies.treatment_type_code" + ], + [ + "treatments.date_of_treatment", + "procedures.date_of_treatment" + ], + [ + "treatments.date_of_treatment", + "therapies.date_of_treatment" + ], + [ + "procedures.date_of_treatment", + "therapies.date_of_treatment" + ], + [ + "treatments.cost_of_treatment", + "procedures.cost_of_treatment" + ], + [ + "treatments.cost_of_treatment", + "therapies.cost_of_treatment" + ], + [ + "procedures.cost_of_treatment", + "therapies.cost_of_treatment" + ] + ] + }, + { + "question": "which dogs are owned by someone who lives in virginia? list the #owner's first name# and the #dog's name# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "Canines": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "Pooches": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ] + }, + "linking_list": [ + [ + "owner's first name", + "owners.first_name" + ], + [ + "dog's name", + "dogs.name" + ], + [ + "dog's name", + "Canines.name" + ], + [ + "dog's name", + "Pooches.name" + ] + ], + "linking_list_idx": [ + [ + 0, + "owners.first_name" + ], + [ + 1, + "dogs.name" + ], + [ + 1, + "Canines.name" + ], + [ + 1, + "Pooches.name" + ] + ], + "linking_list_col": [ + [ + "dogs.dog_id", + "canines.dog_id" + ], + [ + "dogs.dog_id", + "pooches.dog_id" + ], + [ + "canines.dog_id", + "pooches.dog_id" + ], + [ + "dogs.owner_id", + "canines.owner_id" + ], + [ + "dogs.owner_id", + "pooches.owner_id" + ], + [ + "canines.owner_id", + "pooches.owner_id" + ], + [ + "dogs.abandoned_yn", + "canines.abandoned_yn" + ], + [ + "dogs.abandoned_yn", + "pooches.abandoned_yn" + ], + [ + "canines.abandoned_yn", + "pooches.abandoned_yn" + ], + [ + "dogs.breed_code", + "canines.breed_code" + ], + [ + "dogs.breed_code", + "pooches.breed_code" + ], + [ + "canines.breed_code", + "pooches.breed_code" + ], + [ + "dogs.size_code", + "canines.size_code" + ], + [ + "dogs.size_code", + "pooches.size_code" + ], + [ + "canines.size_code", + "pooches.size_code" + ], + [ + "dogs.name", + "canines.name" + ], + [ + "dogs.name", + "pooches.name" + ], + [ + "canines.name", + "pooches.name" + ], + [ + "dogs.age", + "canines.age" + ], + [ + "dogs.age", + "pooches.age" + ], + [ + "canines.age", + "pooches.age" + ], + [ + "dogs.date_of_birth", + "canines.date_of_birth" + ], + [ + "dogs.date_of_birth", + "pooches.date_of_birth" + ], + [ + "canines.date_of_birth", + "pooches.date_of_birth" + ], + [ + "dogs.gender", + "canines.gender" + ], + [ + "dogs.gender", + "pooches.gender" + ], + [ + "canines.gender", + "pooches.gender" + ], + [ + "dogs.weight", + "canines.weight" + ], + [ + "dogs.weight", + "pooches.weight" + ], + [ + "canines.weight", + "pooches.weight" + ], + [ + "dogs.date_arrived", + "canines.date_arrived" + ], + [ + "dogs.date_arrived", + "pooches.date_arrived" + ], + [ + "canines.date_arrived", + "pooches.date_arrived" + ], + [ + "dogs.date_adopted", + "canines.date_adopted" + ], + [ + "dogs.date_adopted", + "pooches.date_adopted" + ], + [ + "canines.date_adopted", + "pooches.date_adopted" + ], + [ + "dogs.date_departed", + "canines.date_departed" + ], + [ + "dogs.date_departed", + "pooches.date_departed" + ], + [ + "canines.date_departed", + "pooches.date_departed" + ] + ] + }, + { + "question": "list the #last name# of the owner owning the #youngest dog# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "Canines": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "Pooches": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ] + }, + "linking_list": [ + [ + "last name", + "owners.last_name" + ], + [ + "youngest dog", + "dogs.age" + ], + [ + "youngest dog", + "Canines.age" + ], + [ + "youngest dog", + "Pooches.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "owners.last_name" + ], + [ + 1, + "dogs.age" + ], + [ + 1, + "Canines.age" + ], + [ + 1, + "Pooches.age" + ] + ], + "linking_list_col": [ + [ + "dogs.dog_id", + "canines.dog_id" + ], + [ + "dogs.dog_id", + "pooches.dog_id" + ], + [ + "canines.dog_id", + "pooches.dog_id" + ], + [ + "dogs.owner_id", + "canines.owner_id" + ], + [ + "dogs.owner_id", + "pooches.owner_id" + ], + [ + "canines.owner_id", + "pooches.owner_id" + ], + [ + "dogs.abandoned_yn", + "canines.abandoned_yn" + ], + [ + "dogs.abandoned_yn", + "pooches.abandoned_yn" + ], + [ + "canines.abandoned_yn", + "pooches.abandoned_yn" + ], + [ + "dogs.breed_code", + "canines.breed_code" + ], + [ + "dogs.breed_code", + "pooches.breed_code" + ], + [ + "canines.breed_code", + "pooches.breed_code" + ], + [ + "dogs.size_code", + "canines.size_code" + ], + [ + "dogs.size_code", + "pooches.size_code" + ], + [ + "canines.size_code", + "pooches.size_code" + ], + [ + "dogs.name", + "canines.name" + ], + [ + "dogs.name", + "pooches.name" + ], + [ + "canines.name", + "pooches.name" + ], + [ + "dogs.age", + "canines.age" + ], + [ + "dogs.age", + "pooches.age" + ], + [ + "canines.age", + "pooches.age" + ], + [ + "dogs.date_of_birth", + "canines.date_of_birth" + ], + [ + "dogs.date_of_birth", + "pooches.date_of_birth" + ], + [ + "canines.date_of_birth", + "pooches.date_of_birth" + ], + [ + "dogs.gender", + "canines.gender" + ], + [ + "dogs.gender", + "pooches.gender" + ], + [ + "canines.gender", + "pooches.gender" + ], + [ + "dogs.weight", + "canines.weight" + ], + [ + "dogs.weight", + "pooches.weight" + ], + [ + "canines.weight", + "pooches.weight" + ], + [ + "dogs.date_arrived", + "canines.date_arrived" + ], + [ + "dogs.date_arrived", + "pooches.date_arrived" + ], + [ + "canines.date_arrived", + "pooches.date_arrived" + ], + [ + "dogs.date_adopted", + "canines.date_adopted" + ], + [ + "dogs.date_adopted", + "pooches.date_adopted" + ], + [ + "canines.date_adopted", + "pooches.date_adopted" + ], + [ + "dogs.date_departed", + "canines.date_departed" + ], + [ + "dogs.date_departed", + "pooches.date_departed" + ], + [ + "canines.date_departed", + "pooches.date_departed" + ] + ] + }, + { + "question": "list the emails of the professionals who live in the #state# of hawaii or the state of wisconsin.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "Handlers": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "Caregivers": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ] + }, + "linking_list": [ + [ + "state", + "professionals.state" + ], + [ + "state", + "Handlers.state" + ], + [ + "state", + "Caregivers.state" + ] + ], + "linking_list_idx": [ + [ + 0, + "professionals.state" + ], + [ + 0, + "Handlers.state" + ], + [ + 0, + "Caregivers.state" + ] + ], + "linking_list_col": [ + [ + "professionals.professional_id", + "handlers.professional_id" + ], + [ + "professionals.professional_id", + "caregivers.professional_id" + ], + [ + "handlers.professional_id", + "caregivers.professional_id" + ], + [ + "professionals.role_code", + "handlers.role_code" + ], + [ + "professionals.role_code", + "caregivers.role_code" + ], + [ + "handlers.role_code", + "caregivers.role_code" + ], + [ + "professionals.first_name", + "handlers.first_name" + ], + [ + "professionals.first_name", + "caregivers.first_name" + ], + [ + "handlers.first_name", + "caregivers.first_name" + ], + [ + "professionals.street", + "handlers.street" + ], + [ + "professionals.street", + "caregivers.street" + ], + [ + "handlers.street", + "caregivers.street" + ], + [ + "professionals.city", + "handlers.city" + ], + [ + "professionals.city", + "caregivers.city" + ], + [ + "handlers.city", + "caregivers.city" + ], + [ + "professionals.state", + "handlers.state" + ], + [ + "professionals.state", + "caregivers.state" + ], + [ + "handlers.state", + "caregivers.state" + ], + [ + "professionals.zip_code", + "handlers.zip_code" + ], + [ + "professionals.zip_code", + "caregivers.zip_code" + ], + [ + "handlers.zip_code", + "caregivers.zip_code" + ], + [ + "professionals.last_name", + "handlers.last_name" + ], + [ + "professionals.last_name", + "caregivers.last_name" + ], + [ + "handlers.last_name", + "caregivers.last_name" + ], + [ + "professionals.email_address", + "handlers.email_address" + ], + [ + "professionals.email_address", + "caregivers.email_address" + ], + [ + "handlers.email_address", + "caregivers.email_address" + ], + [ + "professionals.home_phone", + "handlers.home_phone" + ], + [ + "professionals.home_phone", + "caregivers.home_phone" + ], + [ + "handlers.home_phone", + "caregivers.home_phone" + ], + [ + "professionals.cell_number", + "handlers.cell_number" + ], + [ + "professionals.cell_number", + "caregivers.cell_number" + ], + [ + "handlers.cell_number", + "caregivers.cell_number" + ] + ] + }, + { + "question": "what are the emails of the professionals living in either the #state# of hawaii or the state of wisconsin?", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "Handlers": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "Caregivers": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ] + }, + "linking_list": [ + [ + "state", + "professionals.state" + ], + [ + "state", + "Handlers.state" + ], + [ + "state", + "Caregivers.state" + ] + ], + "linking_list_idx": [ + [ + 0, + "professionals.state" + ], + [ + 0, + "Handlers.state" + ], + [ + 0, + "Caregivers.state" + ] + ], + "linking_list_col": [ + [ + "professionals.professional_id", + "handlers.professional_id" + ], + [ + "professionals.professional_id", + "caregivers.professional_id" + ], + [ + "handlers.professional_id", + "caregivers.professional_id" + ], + [ + "professionals.role_code", + "handlers.role_code" + ], + [ + "professionals.role_code", + "caregivers.role_code" + ], + [ + "handlers.role_code", + "caregivers.role_code" + ], + [ + "professionals.first_name", + "handlers.first_name" + ], + [ + "professionals.first_name", + "caregivers.first_name" + ], + [ + "handlers.first_name", + "caregivers.first_name" + ], + [ + "professionals.street", + "handlers.street" + ], + [ + "professionals.street", + "caregivers.street" + ], + [ + "handlers.street", + "caregivers.street" + ], + [ + "professionals.city", + "handlers.city" + ], + [ + "professionals.city", + "caregivers.city" + ], + [ + "handlers.city", + "caregivers.city" + ], + [ + "professionals.state", + "handlers.state" + ], + [ + "professionals.state", + "caregivers.state" + ], + [ + "handlers.state", + "caregivers.state" + ], + [ + "professionals.zip_code", + "handlers.zip_code" + ], + [ + "professionals.zip_code", + "caregivers.zip_code" + ], + [ + "handlers.zip_code", + "caregivers.zip_code" + ], + [ + "professionals.last_name", + "handlers.last_name" + ], + [ + "professionals.last_name", + "caregivers.last_name" + ], + [ + "handlers.last_name", + "caregivers.last_name" + ], + [ + "professionals.email_address", + "handlers.email_address" + ], + [ + "professionals.email_address", + "caregivers.email_address" + ], + [ + "handlers.email_address", + "caregivers.email_address" + ], + [ + "professionals.home_phone", + "handlers.home_phone" + ], + [ + "professionals.home_phone", + "caregivers.home_phone" + ], + [ + "handlers.home_phone", + "caregivers.home_phone" + ], + [ + "professionals.cell_number", + "handlers.cell_number" + ], + [ + "professionals.cell_number", + "caregivers.cell_number" + ], + [ + "handlers.cell_number", + "caregivers.cell_number" + ] + ] + }, + { + "question": "which professionals live in a #city# containing the substring 'west'? list his or her #role# , #street# , city and #state# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "Handlers": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "Caregivers": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ] + }, + "linking_list": [ + [ + "city", + "professionals.city" + ], + [ + "city", + "Handlers.city" + ], + [ + "city", + "Caregivers.city" + ], + [ + "role", + "professionals.role_code" + ], + [ + "role", + "Handlers.role_code" + ], + [ + "role", + "Caregivers.role_code" + ], + [ + "street", + "professionals.street" + ], + [ + "street", + "Handlers.street" + ], + [ + "street", + "Caregivers.street" + ], + [ + "state", + "professionals.state" + ], + [ + "state", + "Handlers.state" + ], + [ + "state", + "Caregivers.state" + ] + ], + "linking_list_idx": [ + [ + 0, + "professionals.city" + ], + [ + 0, + "Handlers.city" + ], + [ + 0, + "Caregivers.city" + ], + [ + 1, + "professionals.role_code" + ], + [ + 1, + "Handlers.role_code" + ], + [ + 1, + "Caregivers.role_code" + ], + [ + 2, + "professionals.street" + ], + [ + 2, + "Handlers.street" + ], + [ + 2, + "Caregivers.street" + ], + [ + 3, + "professionals.state" + ], + [ + 3, + "Handlers.state" + ], + [ + 3, + "Caregivers.state" + ] + ], + "linking_list_col": [ + [ + "professionals.professional_id", + "handlers.professional_id" + ], + [ + "professionals.professional_id", + "caregivers.professional_id" + ], + [ + "handlers.professional_id", + "caregivers.professional_id" + ], + [ + "professionals.role_code", + "handlers.role_code" + ], + [ + "professionals.role_code", + "caregivers.role_code" + ], + [ + "handlers.role_code", + "caregivers.role_code" + ], + [ + "professionals.first_name", + "handlers.first_name" + ], + [ + "professionals.first_name", + "caregivers.first_name" + ], + [ + "handlers.first_name", + "caregivers.first_name" + ], + [ + "professionals.street", + "handlers.street" + ], + [ + "professionals.street", + "caregivers.street" + ], + [ + "handlers.street", + "caregivers.street" + ], + [ + "professionals.city", + "handlers.city" + ], + [ + "professionals.city", + "caregivers.city" + ], + [ + "handlers.city", + "caregivers.city" + ], + [ + "professionals.state", + "handlers.state" + ], + [ + "professionals.state", + "caregivers.state" + ], + [ + "handlers.state", + "caregivers.state" + ], + [ + "professionals.zip_code", + "handlers.zip_code" + ], + [ + "professionals.zip_code", + "caregivers.zip_code" + ], + [ + "handlers.zip_code", + "caregivers.zip_code" + ], + [ + "professionals.last_name", + "handlers.last_name" + ], + [ + "professionals.last_name", + "caregivers.last_name" + ], + [ + "handlers.last_name", + "caregivers.last_name" + ], + [ + "professionals.email_address", + "handlers.email_address" + ], + [ + "professionals.email_address", + "caregivers.email_address" + ], + [ + "handlers.email_address", + "caregivers.email_address" + ], + [ + "professionals.home_phone", + "handlers.home_phone" + ], + [ + "professionals.home_phone", + "caregivers.home_phone" + ], + [ + "handlers.home_phone", + "caregivers.home_phone" + ], + [ + "professionals.cell_number", + "handlers.cell_number" + ], + [ + "professionals.cell_number", + "caregivers.cell_number" + ], + [ + "handlers.cell_number", + "caregivers.cell_number" + ] + ] + }, + { + "question": "find the #role# , #street# , #city# and #state# of the professionals living in a city that contains the substring 'west'.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "Handlers": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "Caregivers": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ] + }, + "linking_list": [ + [ + "role", + "professionals.role_code" + ], + [ + "role", + "Handlers.role_code" + ], + [ + "role", + "Caregivers.role_code" + ], + [ + "street", + "professionals.street" + ], + [ + "street", + "Handlers.street" + ], + [ + "street", + "Caregivers.street" + ], + [ + "city", + "professionals.city" + ], + [ + "city", + "Handlers.city" + ], + [ + "city", + "Caregivers.city" + ], + [ + "state", + "professionals.state" + ], + [ + "state", + "Handlers.state" + ], + [ + "state", + "Caregivers.state" + ] + ], + "linking_list_idx": [ + [ + 0, + "professionals.role_code" + ], + [ + 0, + "Handlers.role_code" + ], + [ + 0, + "Caregivers.role_code" + ], + [ + 1, + "professionals.street" + ], + [ + 1, + "Handlers.street" + ], + [ + 1, + "Caregivers.street" + ], + [ + 2, + "professionals.city" + ], + [ + 2, + "Handlers.city" + ], + [ + 2, + "Caregivers.city" + ], + [ + 3, + "professionals.state" + ], + [ + 3, + "Handlers.state" + ], + [ + 3, + "Caregivers.state" + ] + ], + "linking_list_col": [ + [ + "professionals.professional_id", + "handlers.professional_id" + ], + [ + "professionals.professional_id", + "caregivers.professional_id" + ], + [ + "handlers.professional_id", + "caregivers.professional_id" + ], + [ + "professionals.role_code", + "handlers.role_code" + ], + [ + "professionals.role_code", + "caregivers.role_code" + ], + [ + "handlers.role_code", + "caregivers.role_code" + ], + [ + "professionals.first_name", + "handlers.first_name" + ], + [ + "professionals.first_name", + "caregivers.first_name" + ], + [ + "handlers.first_name", + "caregivers.first_name" + ], + [ + "professionals.street", + "handlers.street" + ], + [ + "professionals.street", + "caregivers.street" + ], + [ + "handlers.street", + "caregivers.street" + ], + [ + "professionals.city", + "handlers.city" + ], + [ + "professionals.city", + "caregivers.city" + ], + [ + "handlers.city", + "caregivers.city" + ], + [ + "professionals.state", + "handlers.state" + ], + [ + "professionals.state", + "caregivers.state" + ], + [ + "handlers.state", + "caregivers.state" + ], + [ + "professionals.zip_code", + "handlers.zip_code" + ], + [ + "professionals.zip_code", + "caregivers.zip_code" + ], + [ + "handlers.zip_code", + "caregivers.zip_code" + ], + [ + "professionals.last_name", + "handlers.last_name" + ], + [ + "professionals.last_name", + "caregivers.last_name" + ], + [ + "handlers.last_name", + "caregivers.last_name" + ], + [ + "professionals.email_address", + "handlers.email_address" + ], + [ + "professionals.email_address", + "caregivers.email_address" + ], + [ + "handlers.email_address", + "caregivers.email_address" + ], + [ + "professionals.home_phone", + "handlers.home_phone" + ], + [ + "professionals.home_phone", + "caregivers.home_phone" + ], + [ + "handlers.home_phone", + "caregivers.home_phone" + ], + [ + "professionals.cell_number", + "handlers.cell_number" + ], + [ + "professionals.cell_number", + "caregivers.cell_number" + ], + [ + "handlers.cell_number", + "caregivers.cell_number" + ] + ] + }, + { + "question": "which owners live in the state whose name contains the substring 'north'? list his #first name# , #last name# and #email# .", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "Guardians": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "Caretakers": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ] + }, + "linking_list": [ + [ + "first name", + "owners.first_name" + ], + [ + "first name", + "Guardians.first_name" + ], + [ + "first name", + "Caretakers.first_name" + ], + [ + "last name", + "owners.last_name" + ], + [ + "last name", + "Guardians.last_name" + ], + [ + "last name", + "Caretakers.last_name" + ], + [ + "email", + "owners.email_address" + ], + [ + "email", + "Guardians.email_address" + ], + [ + "email", + "Caretakers.email_address" + ] + ], + "linking_list_idx": [ + [ + 0, + "owners.first_name" + ], + [ + 0, + "Guardians.first_name" + ], + [ + 0, + "Caretakers.first_name" + ], + [ + 1, + "owners.last_name" + ], + [ + 1, + "Guardians.last_name" + ], + [ + 1, + "Caretakers.last_name" + ], + [ + 2, + "owners.email_address" + ], + [ + 2, + "Guardians.email_address" + ], + [ + 2, + "Caretakers.email_address" + ] + ], + "linking_list_col": [ + [ + "owners.owner_id", + "guardians.owner_id" + ], + [ + "owners.owner_id", + "caretakers.owner_id" + ], + [ + "guardians.owner_id", + "caretakers.owner_id" + ], + [ + "owners.first_name", + "guardians.first_name" + ], + [ + "owners.first_name", + "caretakers.first_name" + ], + [ + "guardians.first_name", + "caretakers.first_name" + ], + [ + "owners.last_name", + "guardians.last_name" + ], + [ + "owners.last_name", + "caretakers.last_name" + ], + [ + "guardians.last_name", + "caretakers.last_name" + ], + [ + "owners.street", + "guardians.street" + ], + [ + "owners.street", + "caretakers.street" + ], + [ + "guardians.street", + "caretakers.street" + ], + [ + "owners.city", + "guardians.city" + ], + [ + "owners.city", + "caretakers.city" + ], + [ + "guardians.city", + "caretakers.city" + ], + [ + "owners.state", + "guardians.state" + ], + [ + "owners.state", + "caretakers.state" + ], + [ + "guardians.state", + "caretakers.state" + ], + [ + "owners.zip_code", + "guardians.zip_code" + ], + [ + "owners.zip_code", + "caretakers.zip_code" + ], + [ + "guardians.zip_code", + "caretakers.zip_code" + ], + [ + "owners.email_address", + "guardians.email_address" + ], + [ + "owners.email_address", + "caretakers.email_address" + ], + [ + "guardians.email_address", + "caretakers.email_address" + ], + [ + "owners.home_phone", + "guardians.home_phone" + ], + [ + "owners.home_phone", + "caretakers.home_phone" + ], + [ + "guardians.home_phone", + "caretakers.home_phone" + ], + [ + "owners.cell_number", + "guardians.cell_number" + ], + [ + "owners.cell_number", + "caretakers.cell_number" + ], + [ + "guardians.cell_number", + "caretakers.cell_number" + ] + ] + }, + { + "question": "return the #first name# , #last name# and #email# of the owners living in a state whose name contains the substring 'north'.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "Guardians": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "Caretakers": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ] + }, + "linking_list": [ + [ + "first name", + "owners.first_name" + ], + [ + "first name", + "Guardians.first_name" + ], + [ + "first name", + "Caretakers.first_name" + ], + [ + "last name", + "owners.last_name" + ], + [ + "last name", + "Guardians.last_name" + ], + [ + "last name", + "Caretakers.last_name" + ], + [ + "email", + "owners.email_address" + ], + [ + "email", + "Guardians.email_address" + ], + [ + "email", + "Caretakers.email_address" + ] + ], + "linking_list_idx": [ + [ + 0, + "owners.first_name" + ], + [ + 0, + "Guardians.first_name" + ], + [ + 0, + "Caretakers.first_name" + ], + [ + 1, + "owners.last_name" + ], + [ + 1, + "Guardians.last_name" + ], + [ + 1, + "Caretakers.last_name" + ], + [ + 2, + "owners.email_address" + ], + [ + 2, + "Guardians.email_address" + ], + [ + 2, + "Caretakers.email_address" + ] + ], + "linking_list_col": [ + [ + "owners.owner_id", + "guardians.owner_id" + ], + [ + "owners.owner_id", + "caretakers.owner_id" + ], + [ + "guardians.owner_id", + "caretakers.owner_id" + ], + [ + "owners.first_name", + "guardians.first_name" + ], + [ + "owners.first_name", + "caretakers.first_name" + ], + [ + "guardians.first_name", + "caretakers.first_name" + ], + [ + "owners.last_name", + "guardians.last_name" + ], + [ + "owners.last_name", + "caretakers.last_name" + ], + [ + "guardians.last_name", + "caretakers.last_name" + ], + [ + "owners.street", + "guardians.street" + ], + [ + "owners.street", + "caretakers.street" + ], + [ + "guardians.street", + "caretakers.street" + ], + [ + "owners.city", + "guardians.city" + ], + [ + "owners.city", + "caretakers.city" + ], + [ + "guardians.city", + "caretakers.city" + ], + [ + "owners.state", + "guardians.state" + ], + [ + "owners.state", + "caretakers.state" + ], + [ + "guardians.state", + "caretakers.state" + ], + [ + "owners.zip_code", + "guardians.zip_code" + ], + [ + "owners.zip_code", + "caretakers.zip_code" + ], + [ + "guardians.zip_code", + "caretakers.zip_code" + ], + [ + "owners.email_address", + "guardians.email_address" + ], + [ + "owners.email_address", + "caretakers.email_address" + ], + [ + "guardians.email_address", + "caretakers.email_address" + ], + [ + "owners.home_phone", + "guardians.home_phone" + ], + [ + "owners.home_phone", + "caretakers.home_phone" + ], + [ + "guardians.home_phone", + "caretakers.home_phone" + ], + [ + "owners.cell_number", + "guardians.cell_number" + ], + [ + "owners.cell_number", + "caretakers.cell_number" + ], + [ + "guardians.cell_number", + "caretakers.cell_number" + ] + ] + }, + { + "question": "how many dogs have an #age# below the average?", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "Canines": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "Pooches": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ] + }, + "linking_list": [ + [ + "age", + "dogs.age" + ], + [ + "age", + "Canines.age" + ], + [ + "age", + "Pooches.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "dogs.age" + ], + [ + 0, + "Canines.age" + ], + [ + 0, + "Pooches.age" + ] + ], + "linking_list_col": [ + [ + "dogs.dog_id", + "canines.dog_id" + ], + [ + "dogs.dog_id", + "pooches.dog_id" + ], + [ + "canines.dog_id", + "pooches.dog_id" + ], + [ + "dogs.owner_id", + "canines.owner_id" + ], + [ + "dogs.owner_id", + "pooches.owner_id" + ], + [ + "canines.owner_id", + "pooches.owner_id" + ], + [ + "dogs.abandoned_yn", + "canines.abandoned_yn" + ], + [ + "dogs.abandoned_yn", + "pooches.abandoned_yn" + ], + [ + "canines.abandoned_yn", + "pooches.abandoned_yn" + ], + [ + "dogs.breed_code", + "canines.breed_code" + ], + [ + "dogs.breed_code", + "pooches.breed_code" + ], + [ + "canines.breed_code", + "pooches.breed_code" + ], + [ + "dogs.size_code", + "canines.size_code" + ], + [ + "dogs.size_code", + "pooches.size_code" + ], + [ + "canines.size_code", + "pooches.size_code" + ], + [ + "dogs.name", + "canines.name" + ], + [ + "dogs.name", + "pooches.name" + ], + [ + "canines.name", + "pooches.name" + ], + [ + "dogs.age", + "canines.age" + ], + [ + "dogs.age", + "pooches.age" + ], + [ + "canines.age", + "pooches.age" + ], + [ + "dogs.date_of_birth", + "canines.date_of_birth" + ], + [ + "dogs.date_of_birth", + "pooches.date_of_birth" + ], + [ + "canines.date_of_birth", + "pooches.date_of_birth" + ], + [ + "dogs.gender", + "canines.gender" + ], + [ + "dogs.gender", + "pooches.gender" + ], + [ + "canines.gender", + "pooches.gender" + ], + [ + "dogs.weight", + "canines.weight" + ], + [ + "dogs.weight", + "pooches.weight" + ], + [ + "canines.weight", + "pooches.weight" + ], + [ + "dogs.date_arrived", + "canines.date_arrived" + ], + [ + "dogs.date_arrived", + "pooches.date_arrived" + ], + [ + "canines.date_arrived", + "pooches.date_arrived" + ], + [ + "dogs.date_adopted", + "canines.date_adopted" + ], + [ + "dogs.date_adopted", + "pooches.date_adopted" + ], + [ + "canines.date_adopted", + "pooches.date_adopted" + ], + [ + "dogs.date_departed", + "canines.date_departed" + ], + [ + "dogs.date_departed", + "pooches.date_departed" + ], + [ + "canines.date_departed", + "pooches.date_departed" + ] + ] + }, + { + "question": "count the #number of dogs# of an age below the average.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "Canines": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "Pooches": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ] + }, + "linking_list": [ + [ + "number of dogs", + "dogs.age" + ], + [ + "number of dogs", + "Canines.age" + ], + [ + "number of dogs", + "Pooches.age" + ] + ], + "linking_list_idx": [ + [ + 0, + "dogs.age" + ], + [ + 0, + "Canines.age" + ], + [ + 0, + "Pooches.age" + ] + ], + "linking_list_col": [ + [ + "dogs.dog_id", + "canines.dog_id" + ], + [ + "dogs.dog_id", + "pooches.dog_id" + ], + [ + "canines.dog_id", + "pooches.dog_id" + ], + [ + "dogs.owner_id", + "canines.owner_id" + ], + [ + "dogs.owner_id", + "pooches.owner_id" + ], + [ + "canines.owner_id", + "pooches.owner_id" + ], + [ + "dogs.abandoned_yn", + "canines.abandoned_yn" + ], + [ + "dogs.abandoned_yn", + "pooches.abandoned_yn" + ], + [ + "canines.abandoned_yn", + "pooches.abandoned_yn" + ], + [ + "dogs.breed_code", + "canines.breed_code" + ], + [ + "dogs.breed_code", + "pooches.breed_code" + ], + [ + "canines.breed_code", + "pooches.breed_code" + ], + [ + "dogs.size_code", + "canines.size_code" + ], + [ + "dogs.size_code", + "pooches.size_code" + ], + [ + "canines.size_code", + "pooches.size_code" + ], + [ + "dogs.name", + "canines.name" + ], + [ + "dogs.name", + "pooches.name" + ], + [ + "canines.name", + "pooches.name" + ], + [ + "dogs.age", + "canines.age" + ], + [ + "dogs.age", + "pooches.age" + ], + [ + "canines.age", + "pooches.age" + ], + [ + "dogs.date_of_birth", + "canines.date_of_birth" + ], + [ + "dogs.date_of_birth", + "pooches.date_of_birth" + ], + [ + "canines.date_of_birth", + "pooches.date_of_birth" + ], + [ + "dogs.gender", + "canines.gender" + ], + [ + "dogs.gender", + "pooches.gender" + ], + [ + "canines.gender", + "pooches.gender" + ], + [ + "dogs.weight", + "canines.weight" + ], + [ + "dogs.weight", + "pooches.weight" + ], + [ + "canines.weight", + "pooches.weight" + ], + [ + "dogs.date_arrived", + "canines.date_arrived" + ], + [ + "dogs.date_arrived", + "pooches.date_arrived" + ], + [ + "canines.date_arrived", + "pooches.date_arrived" + ], + [ + "dogs.date_adopted", + "canines.date_adopted" + ], + [ + "dogs.date_adopted", + "pooches.date_adopted" + ], + [ + "canines.date_adopted", + "pooches.date_adopted" + ], + [ + "dogs.date_departed", + "canines.date_departed" + ], + [ + "dogs.date_departed", + "pooches.date_departed" + ], + [ + "canines.date_departed", + "pooches.date_departed" + ] + ] + }, + { + "question": "list the #dog name# , #age# and #weight# of the dogs who have been abandoned? 1 stands for yes, and 0 stands for no.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "Canines": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "Pooches": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ] + }, + "linking_list": [ + [ + "dog name", + "dogs.name" + ], + [ + "dog name", + "Canines.name" + ], + [ + "dog name", + "Pooches.name" + ], + [ + "age", + "dogs.age" + ], + [ + "age", + "Canines.age" + ], + [ + "age", + "Pooches.age" + ], + [ + "weight", + "dogs.weight" + ], + [ + "weight", + "Canines.weight" + ], + [ + "weight", + "Pooches.weight" + ] + ], + "linking_list_idx": [ + [ + 0, + "dogs.name" + ], + [ + 0, + "Canines.name" + ], + [ + 0, + "Pooches.name" + ], + [ + 1, + "dogs.age" + ], + [ + 1, + "Canines.age" + ], + [ + 1, + "Pooches.age" + ], + [ + 2, + "dogs.weight" + ], + [ + 2, + "Canines.weight" + ], + [ + 2, + "Pooches.weight" + ] + ], + "linking_list_col": [ + [ + "dogs.dog_id", + "canines.dog_id" + ], + [ + "dogs.dog_id", + "pooches.dog_id" + ], + [ + "canines.dog_id", + "pooches.dog_id" + ], + [ + "dogs.owner_id", + "canines.owner_id" + ], + [ + "dogs.owner_id", + "pooches.owner_id" + ], + [ + "canines.owner_id", + "pooches.owner_id" + ], + [ + "dogs.abandoned_yn", + "canines.abandoned_yn" + ], + [ + "dogs.abandoned_yn", + "pooches.abandoned_yn" + ], + [ + "canines.abandoned_yn", + "pooches.abandoned_yn" + ], + [ + "dogs.breed_code", + "canines.breed_code" + ], + [ + "dogs.breed_code", + "pooches.breed_code" + ], + [ + "canines.breed_code", + "pooches.breed_code" + ], + [ + "dogs.size_code", + "canines.size_code" + ], + [ + "dogs.size_code", + "pooches.size_code" + ], + [ + "canines.size_code", + "pooches.size_code" + ], + [ + "dogs.name", + "canines.name" + ], + [ + "dogs.name", + "pooches.name" + ], + [ + "canines.name", + "pooches.name" + ], + [ + "dogs.age", + "canines.age" + ], + [ + "dogs.age", + "pooches.age" + ], + [ + "canines.age", + "pooches.age" + ], + [ + "dogs.date_of_birth", + "canines.date_of_birth" + ], + [ + "dogs.date_of_birth", + "pooches.date_of_birth" + ], + [ + "canines.date_of_birth", + "pooches.date_of_birth" + ], + [ + "dogs.gender", + "canines.gender" + ], + [ + "dogs.gender", + "pooches.gender" + ], + [ + "canines.gender", + "pooches.gender" + ], + [ + "dogs.weight", + "canines.weight" + ], + [ + "dogs.weight", + "pooches.weight" + ], + [ + "canines.weight", + "pooches.weight" + ], + [ + "dogs.date_arrived", + "canines.date_arrived" + ], + [ + "dogs.date_arrived", + "pooches.date_arrived" + ], + [ + "canines.date_arrived", + "pooches.date_arrived" + ], + [ + "dogs.date_adopted", + "canines.date_adopted" + ], + [ + "dogs.date_adopted", + "pooches.date_adopted" + ], + [ + "canines.date_adopted", + "pooches.date_adopted" + ], + [ + "dogs.date_departed", + "canines.date_departed" + ], + [ + "dogs.date_departed", + "pooches.date_departed" + ], + [ + "canines.date_departed", + "pooches.date_departed" + ] + ] + }, + { + "question": "what are the #dog name# , #age# and #weight# of the dogs that were abandoned? note that 1 stands for yes, and 0 stands for no in the tables.", + "db_schema": { + "breeds": [ + "breed_code", + "breed_name" + ], + "charges": [ + "charge_id", + "charge_type", + "charge_amount" + ], + "sizes": [ + "size_code", + "size_description" + ], + "treatment_types": [ + "treatment_type_code", + "treatment_type_description" + ], + "owners": [ + "owner_id", + "first_name", + "last_name", + "street", + "city", + "state", + "zip_code", + "email_address", + "home_phone", + "cell_number" + ], + "dogs": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "professionals": [ + "professional_id", + "role_code", + "first_name", + "street", + "city", + "state", + "zip_code", + "last_name", + "email_address", + "home_phone", + "cell_number" + ], + "treatments": [ + "treatment_id", + "dog_id", + "professional_id", + "treatment_type_code", + "date_of_treatment", + "cost_of_treatment" + ], + "Canines": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ], + "Pooches": [ + "dog_id", + "owner_id", + "abandoned_yn", + "breed_code", + "size_code", + "name", + "age", + "date_of_birth", + "gender", + "weight", + "date_arrived", + "date_adopted", + "date_departed" + ] + }, + "linking_list": [ + [ + "dog name", + "dogs.name" + ], + [ + "dog name", + "Canines.name" + ], + [ + "dog name", + "Pooches.name" + ], + [ + "age", + "dogs.age" + ], + [ + "age", + "Canines.age" + ], + [ + "age", + "Pooches.age" + ], + [ + "weight", + "dogs.weight" + ], + [ + "weight", + "Canines.weight" + ], + [ + "weight", + "Pooches.weight" + ] + ], + "linking_list_idx": [ + [ + 0, + "dogs.name" + ], + [ + 0, + "Canines.name" + ], + [ + 0, + "Pooches.name" + ], + [ + 1, + "dogs.age" + ], + [ + 1, + "Canines.age" + ], + [ + 1, + "Pooches.age" + ], + [ + 2, + "dogs.weight" + ], + [ + 2, + "Canines.weight" + ], + [ + 2, + "Pooches.weight" + ] + ], + "linking_list_col": [ + [ + "dogs.dog_id", + "canines.dog_id" + ], + [ + "dogs.dog_id", + "pooches.dog_id" + ], + [ + "canines.dog_id", + "pooches.dog_id" + ], + [ + "dogs.owner_id", + "canines.owner_id" + ], + [ + "dogs.owner_id", + "pooches.owner_id" + ], + [ + "canines.owner_id", + "pooches.owner_id" + ], + [ + "dogs.abandoned_yn", + "canines.abandoned_yn" + ], + [ + "dogs.abandoned_yn", + "pooches.abandoned_yn" + ], + [ + "canines.abandoned_yn", + "pooches.abandoned_yn" + ], + [ + "dogs.breed_code", + "canines.breed_code" + ], + [ + "dogs.breed_code", + "pooches.breed_code" + ], + [ + "canines.breed_code", + "pooches.breed_code" + ], + [ + "dogs.size_code", + "canines.size_code" + ], + [ + "dogs.size_code", + "pooches.size_code" + ], + [ + "canines.size_code", + "pooches.size_code" + ], + [ + "dogs.name", + "canines.name" + ], + [ + "dogs.name", + "pooches.name" + ], + [ + "canines.name", + "pooches.name" + ], + [ + "dogs.age", + "canines.age" + ], + [ + "dogs.age", + "pooches.age" + ], + [ + "canines.age", + "pooches.age" + ], + [ + "dogs.date_of_birth", + "canines.date_of_birth" + ], + [ + "dogs.date_of_birth", + "pooches.date_of_birth" + ], + [ + "canines.date_of_birth", + "pooches.date_of_birth" + ], + [ + "dogs.gender", + "canines.gender" + ], + [ + "dogs.gender", + "pooches.gender" + ], + [ + "canines.gender", + "pooches.gender" + ], + [ + "dogs.weight", + "canines.weight" + ], + [ + "dogs.weight", + "pooches.weight" + ], + [ + "canines.weight", + "pooches.weight" + ], + [ + "dogs.date_arrived", + "canines.date_arrived" + ], + [ + "dogs.date_arrived", + "pooches.date_arrived" + ], + [ + "canines.date_arrived", + "pooches.date_arrived" + ], + [ + "dogs.date_adopted", + "canines.date_adopted" + ], + [ + "dogs.date_adopted", + "pooches.date_adopted" + ], + [ + "canines.date_adopted", + "pooches.date_adopted" + ], + [ + "dogs.date_departed", + "canines.date_departed" + ], + [ + "dogs.date_departed", + "pooches.date_departed" + ], + [ + "canines.date_departed", + "pooches.date_departed" + ] + ] + }, + { + "question": "list the name of singers in ascending order of #net worth# .", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "vocalist": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "musician": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ] + }, + "linking_list": [ + [ + "net worth", + "singer.net_worth_millions" + ], + [ + "net worth", + "vocalist.net_worth_millions" + ], + [ + "net worth", + "musician.net_worth_millions" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.net_worth_millions" + ], + [ + 0, + "vocalist.net_worth_millions" + ], + [ + 0, + "musician.net_worth_millions" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "vocalist.singer_id" + ], + [ + "singer.singer_id", + "musician.singer_id" + ], + [ + "vocalist.singer_id", + "musician.singer_id" + ], + [ + "singer.name", + "vocalist.name" + ], + [ + "singer.name", + "musician.name" + ], + [ + "vocalist.name", + "musician.name" + ], + [ + "singer.birth_year", + "vocalist.birth_year" + ], + [ + "singer.birth_year", + "musician.birth_year" + ], + [ + "vocalist.birth_year", + "musician.birth_year" + ], + [ + "singer.net_worth_millions", + "vocalist.net_worth_millions" + ], + [ + "singer.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "vocalist.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "singer.citizenship", + "vocalist.citizenship" + ], + [ + "singer.citizenship", + "musician.citizenship" + ], + [ + "vocalist.citizenship", + "musician.citizenship" + ] + ] + }, + { + "question": "list the name of singers whose #citizenship# is not \"france\".", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "vocalist": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "musician": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ] + }, + "linking_list": [ + [ + "citizenship", + "singer.citizenship" + ], + [ + "citizenship", + "vocalist.citizenship" + ], + [ + "citizenship", + "musician.citizenship" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.citizenship" + ], + [ + 0, + "vocalist.citizenship" + ], + [ + 0, + "musician.citizenship" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "vocalist.singer_id" + ], + [ + "singer.singer_id", + "musician.singer_id" + ], + [ + "vocalist.singer_id", + "musician.singer_id" + ], + [ + "singer.name", + "vocalist.name" + ], + [ + "singer.name", + "musician.name" + ], + [ + "vocalist.name", + "musician.name" + ], + [ + "singer.birth_year", + "vocalist.birth_year" + ], + [ + "singer.birth_year", + "musician.birth_year" + ], + [ + "vocalist.birth_year", + "musician.birth_year" + ], + [ + "singer.net_worth_millions", + "vocalist.net_worth_millions" + ], + [ + "singer.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "vocalist.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "singer.citizenship", + "vocalist.citizenship" + ], + [ + "singer.citizenship", + "musician.citizenship" + ], + [ + "vocalist.citizenship", + "musician.citizenship" + ] + ] + }, + { + "question": "show the name of singers whose #birth year# is either 1948 or 1949?", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "vocalist": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "musician": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ] + }, + "linking_list": [ + [ + "birth year", + "singer.birth_year" + ], + [ + "birth year", + "vocalist.birth_year" + ], + [ + "birth year", + "musician.birth_year" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.birth_year" + ], + [ + 0, + "vocalist.birth_year" + ], + [ + 0, + "musician.birth_year" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "vocalist.singer_id" + ], + [ + "singer.singer_id", + "musician.singer_id" + ], + [ + "vocalist.singer_id", + "musician.singer_id" + ], + [ + "singer.name", + "vocalist.name" + ], + [ + "singer.name", + "musician.name" + ], + [ + "vocalist.name", + "musician.name" + ], + [ + "singer.birth_year", + "vocalist.birth_year" + ], + [ + "singer.birth_year", + "musician.birth_year" + ], + [ + "vocalist.birth_year", + "musician.birth_year" + ], + [ + "singer.net_worth_millions", + "vocalist.net_worth_millions" + ], + [ + "singer.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "vocalist.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "singer.citizenship", + "vocalist.citizenship" + ], + [ + "singer.citizenship", + "musician.citizenship" + ], + [ + "vocalist.citizenship", + "musician.citizenship" + ] + ] + }, + { + "question": "show different #citizenship# of singers and the #number of singers of each citizenship# .", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "vocalist": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "musician": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ] + }, + "linking_list": [ + [ + "citizenship", + "singer.citizenship" + ], + [ + "citizenship", + "vocalist.citizenship" + ], + [ + "citizenship", + "musician.citizenship" + ], + [ + "number of singers of each citizenship", + "singer.citizenship" + ], + [ + "number of singers of each citizenship", + "vocalist.citizenship" + ], + [ + "number of singers of each citizenship", + "musician.citizenship" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.citizenship" + ], + [ + 0, + "vocalist.citizenship" + ], + [ + 0, + "musician.citizenship" + ], + [ + 1, + "singer.citizenship" + ], + [ + 1, + "vocalist.citizenship" + ], + [ + 1, + "musician.citizenship" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "vocalist.singer_id" + ], + [ + "singer.singer_id", + "musician.singer_id" + ], + [ + "vocalist.singer_id", + "musician.singer_id" + ], + [ + "singer.name", + "vocalist.name" + ], + [ + "singer.name", + "musician.name" + ], + [ + "vocalist.name", + "musician.name" + ], + [ + "singer.birth_year", + "vocalist.birth_year" + ], + [ + "singer.birth_year", + "musician.birth_year" + ], + [ + "vocalist.birth_year", + "musician.birth_year" + ], + [ + "singer.net_worth_millions", + "vocalist.net_worth_millions" + ], + [ + "singer.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "vocalist.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "singer.citizenship", + "vocalist.citizenship" + ], + [ + "singer.citizenship", + "musician.citizenship" + ], + [ + "vocalist.citizenship", + "musician.citizenship" + ] + ] + }, + { + "question": "for each #citizenship# , how many singers are from that country?", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "vocalist": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "musician": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ] + }, + "linking_list": [ + [ + "citizenship", + "singer.citizenship" + ], + [ + "citizenship", + "vocalist.citizenship" + ], + [ + "citizenship", + "musician.citizenship" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.citizenship" + ], + [ + 0, + "vocalist.citizenship" + ], + [ + 0, + "musician.citizenship" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "vocalist.singer_id" + ], + [ + "singer.singer_id", + "musician.singer_id" + ], + [ + "vocalist.singer_id", + "musician.singer_id" + ], + [ + "singer.name", + "vocalist.name" + ], + [ + "singer.name", + "musician.name" + ], + [ + "vocalist.name", + "musician.name" + ], + [ + "singer.birth_year", + "vocalist.birth_year" + ], + [ + "singer.birth_year", + "musician.birth_year" + ], + [ + "vocalist.birth_year", + "musician.birth_year" + ], + [ + "singer.net_worth_millions", + "vocalist.net_worth_millions" + ], + [ + "singer.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "vocalist.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "singer.citizenship", + "vocalist.citizenship" + ], + [ + "singer.citizenship", + "musician.citizenship" + ], + [ + "vocalist.citizenship", + "musician.citizenship" + ] + ] + }, + { + "question": "please show the most common #citizenship# of singers.", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "vocalist": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "musician": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ] + }, + "linking_list": [ + [ + "citizenship", + "singer.citizenship" + ], + [ + "citizenship", + "vocalist.citizenship" + ], + [ + "citizenship", + "musician.citizenship" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.citizenship" + ], + [ + 0, + "vocalist.citizenship" + ], + [ + 0, + "musician.citizenship" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "vocalist.singer_id" + ], + [ + "singer.singer_id", + "musician.singer_id" + ], + [ + "vocalist.singer_id", + "musician.singer_id" + ], + [ + "singer.name", + "vocalist.name" + ], + [ + "singer.name", + "musician.name" + ], + [ + "vocalist.name", + "musician.name" + ], + [ + "singer.birth_year", + "vocalist.birth_year" + ], + [ + "singer.birth_year", + "musician.birth_year" + ], + [ + "vocalist.birth_year", + "musician.birth_year" + ], + [ + "singer.net_worth_millions", + "vocalist.net_worth_millions" + ], + [ + "singer.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "vocalist.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "singer.citizenship", + "vocalist.citizenship" + ], + [ + "singer.citizenship", + "musician.citizenship" + ], + [ + "vocalist.citizenship", + "musician.citizenship" + ] + ] + }, + { + "question": "show different citizenships and the #maximum net worth# of singers of each #citizenship# .", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "vocalist": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "musician": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ] + }, + "linking_list": [ + [ + "maximum net worth", + "singer.net_worth_millions" + ], + [ + "maximum net worth", + "vocalist.net_worth_millions" + ], + [ + "maximum net worth", + "musician.net_worth_millions" + ], + [ + "citizenship", + "singer.citizenship" + ], + [ + "citizenship", + "vocalist.citizenship" + ], + [ + "citizenship", + "musician.citizenship" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.net_worth_millions" + ], + [ + 0, + "vocalist.net_worth_millions" + ], + [ + 0, + "musician.net_worth_millions" + ], + [ + 1, + "singer.citizenship" + ], + [ + 1, + "vocalist.citizenship" + ], + [ + 1, + "musician.citizenship" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "vocalist.singer_id" + ], + [ + "singer.singer_id", + "musician.singer_id" + ], + [ + "vocalist.singer_id", + "musician.singer_id" + ], + [ + "singer.name", + "vocalist.name" + ], + [ + "singer.name", + "musician.name" + ], + [ + "vocalist.name", + "musician.name" + ], + [ + "singer.birth_year", + "vocalist.birth_year" + ], + [ + "singer.birth_year", + "musician.birth_year" + ], + [ + "vocalist.birth_year", + "musician.birth_year" + ], + [ + "singer.net_worth_millions", + "vocalist.net_worth_millions" + ], + [ + "singer.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "vocalist.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "singer.citizenship", + "vocalist.citizenship" + ], + [ + "singer.citizenship", + "musician.citizenship" + ], + [ + "vocalist.citizenship", + "musician.citizenship" + ] + ] + }, + { + "question": "for each #citizenship# , what is the maximum net worth?", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "vocalist": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "musician": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ] + }, + "linking_list": [ + [ + "citizenship", + "singer.citizenship" + ], + [ + "citizenship", + "vocalist.citizenship" + ], + [ + "citizenship", + "musician.citizenship" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.citizenship" + ], + [ + 0, + "vocalist.citizenship" + ], + [ + 0, + "musician.citizenship" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "vocalist.singer_id" + ], + [ + "singer.singer_id", + "musician.singer_id" + ], + [ + "vocalist.singer_id", + "musician.singer_id" + ], + [ + "singer.name", + "vocalist.name" + ], + [ + "singer.name", + "musician.name" + ], + [ + "vocalist.name", + "musician.name" + ], + [ + "singer.birth_year", + "vocalist.birth_year" + ], + [ + "singer.birth_year", + "musician.birth_year" + ], + [ + "vocalist.birth_year", + "musician.birth_year" + ], + [ + "singer.net_worth_millions", + "vocalist.net_worth_millions" + ], + [ + "singer.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "vocalist.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "singer.citizenship", + "vocalist.citizenship" + ], + [ + "singer.citizenship", + "musician.citizenship" + ], + [ + "vocalist.citizenship", + "musician.citizenship" + ] + ] + }, + { + "question": "what are the #song titles# and singer names?", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "track": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "composition": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "linking_list": [ + [ + "song titles", + "song.title" + ], + [ + "song titles", + "track.title" + ], + [ + "song titles", + "composition.title" + ] + ], + "linking_list_idx": [ + [ + 0, + "song.title" + ], + [ + 0, + "track.title" + ], + [ + 0, + "composition.title" + ] + ], + "linking_list_col": [ + [ + "song.song_id", + "track.song_id" + ], + [ + "song.song_id", + "composition.song_id" + ], + [ + "track.song_id", + "composition.song_id" + ], + [ + "song.title", + "track.title" + ], + [ + "song.title", + "composition.title" + ], + [ + "track.title", + "composition.title" + ], + [ + "song.singer_id", + "track.singer_id" + ], + [ + "song.singer_id", + "composition.singer_id" + ], + [ + "track.singer_id", + "composition.singer_id" + ], + [ + "song.sales", + "track.sales" + ], + [ + "song.sales", + "composition.sales" + ], + [ + "track.sales", + "composition.sales" + ], + [ + "song.highest_position", + "track.highest_position" + ], + [ + "song.highest_position", + "composition.highest_position" + ], + [ + "track.highest_position", + "composition.highest_position" + ] + ] + }, + { + "question": "show distinct names of singers that have songs with #sales# more than 300000.", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "track": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "composition": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "linking_list": [ + [ + "sales", + "song.sales" + ], + [ + "sales", + "track.sales" + ], + [ + "sales", + "composition.sales" + ] + ], + "linking_list_idx": [ + [ + 0, + "song.sales" + ], + [ + 0, + "track.sales" + ], + [ + 0, + "composition.sales" + ] + ], + "linking_list_col": [ + [ + "song.song_id", + "track.song_id" + ], + [ + "song.song_id", + "composition.song_id" + ], + [ + "track.song_id", + "composition.song_id" + ], + [ + "song.title", + "track.title" + ], + [ + "song.title", + "composition.title" + ], + [ + "track.title", + "composition.title" + ], + [ + "song.singer_id", + "track.singer_id" + ], + [ + "song.singer_id", + "composition.singer_id" + ], + [ + "track.singer_id", + "composition.singer_id" + ], + [ + "song.sales", + "track.sales" + ], + [ + "song.sales", + "composition.sales" + ], + [ + "track.sales", + "composition.sales" + ], + [ + "song.highest_position", + "track.highest_position" + ], + [ + "song.highest_position", + "composition.highest_position" + ], + [ + "track.highest_position", + "composition.highest_position" + ] + ] + }, + { + "question": "what are the different names of the singers that have #sales# more than 300000?", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "track": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "composition": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "linking_list": [ + [ + "sales", + "song.sales" + ], + [ + "sales", + "track.sales" + ], + [ + "sales", + "composition.sales" + ] + ], + "linking_list_idx": [ + [ + 0, + "song.sales" + ], + [ + 0, + "track.sales" + ], + [ + 0, + "composition.sales" + ] + ], + "linking_list_col": [ + [ + "song.song_id", + "track.song_id" + ], + [ + "song.song_id", + "composition.song_id" + ], + [ + "track.song_id", + "composition.song_id" + ], + [ + "song.title", + "track.title" + ], + [ + "song.title", + "composition.title" + ], + [ + "track.title", + "composition.title" + ], + [ + "song.singer_id", + "track.singer_id" + ], + [ + "song.singer_id", + "composition.singer_id" + ], + [ + "track.singer_id", + "composition.singer_id" + ], + [ + "song.sales", + "track.sales" + ], + [ + "song.sales", + "composition.sales" + ], + [ + "track.sales", + "composition.sales" + ], + [ + "song.highest_position", + "track.highest_position" + ], + [ + "song.highest_position", + "composition.highest_position" + ], + [ + "track.highest_position", + "composition.highest_position" + ] + ] + }, + { + "question": "show the names of singers and the #total sales# of their songs.", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "track": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "composition": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "linking_list": [ + [ + "total sales", + "song.sales" + ], + [ + "total sales", + "track.sales" + ], + [ + "total sales", + "composition.sales" + ] + ], + "linking_list_idx": [ + [ + 0, + "song.sales" + ], + [ + 0, + "track.sales" + ], + [ + 0, + "composition.sales" + ] + ], + "linking_list_col": [ + [ + "song.song_id", + "track.song_id" + ], + [ + "song.song_id", + "composition.song_id" + ], + [ + "track.song_id", + "composition.song_id" + ], + [ + "song.title", + "track.title" + ], + [ + "song.title", + "composition.title" + ], + [ + "track.title", + "composition.title" + ], + [ + "song.singer_id", + "track.singer_id" + ], + [ + "song.singer_id", + "composition.singer_id" + ], + [ + "track.singer_id", + "composition.singer_id" + ], + [ + "song.sales", + "track.sales" + ], + [ + "song.sales", + "composition.sales" + ], + [ + "track.sales", + "composition.sales" + ], + [ + "song.highest_position", + "track.highest_position" + ], + [ + "song.highest_position", + "composition.highest_position" + ], + [ + "track.highest_position", + "composition.highest_position" + ] + ] + }, + { + "question": "for each #singer name# , what is the #total sales# for their songs?", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "track": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "composition": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ] + }, + "linking_list": [ + [ + "singer name", + "singer.name" + ], + [ + "total sales", + "song.sales" + ], + [ + "total sales", + "track.sales" + ], + [ + "total sales", + "composition.sales" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.name" + ], + [ + 1, + "song.sales" + ], + [ + 1, + "track.sales" + ], + [ + 1, + "composition.sales" + ] + ], + "linking_list_col": [ + [ + "song.song_id", + "track.song_id" + ], + [ + "song.song_id", + "composition.song_id" + ], + [ + "track.song_id", + "composition.song_id" + ], + [ + "song.title", + "track.title" + ], + [ + "song.title", + "composition.title" + ], + [ + "track.title", + "composition.title" + ], + [ + "song.singer_id", + "track.singer_id" + ], + [ + "song.singer_id", + "composition.singer_id" + ], + [ + "track.singer_id", + "composition.singer_id" + ], + [ + "song.sales", + "track.sales" + ], + [ + "song.sales", + "composition.sales" + ], + [ + "track.sales", + "composition.sales" + ], + [ + "song.highest_position", + "track.highest_position" + ], + [ + "song.highest_position", + "composition.highest_position" + ], + [ + "track.highest_position", + "composition.highest_position" + ] + ] + }, + { + "question": "show the #citizenship# shared by singers with #birth year# before 1945 and after 1955.", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "vocalist": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "musician": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ] + }, + "linking_list": [ + [ + "citizenship", + "singer.citizenship" + ], + [ + "citizenship", + "vocalist.citizenship" + ], + [ + "citizenship", + "musician.citizenship" + ], + [ + "birth year", + "singer.birth_year" + ], + [ + "birth year", + "vocalist.birth_year" + ], + [ + "birth year", + "musician.birth_year" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.citizenship" + ], + [ + 0, + "vocalist.citizenship" + ], + [ + 0, + "musician.citizenship" + ], + [ + 1, + "singer.birth_year" + ], + [ + 1, + "vocalist.birth_year" + ], + [ + 1, + "musician.birth_year" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "vocalist.singer_id" + ], + [ + "singer.singer_id", + "musician.singer_id" + ], + [ + "vocalist.singer_id", + "musician.singer_id" + ], + [ + "singer.name", + "vocalist.name" + ], + [ + "singer.name", + "musician.name" + ], + [ + "vocalist.name", + "musician.name" + ], + [ + "singer.birth_year", + "vocalist.birth_year" + ], + [ + "singer.birth_year", + "musician.birth_year" + ], + [ + "vocalist.birth_year", + "musician.birth_year" + ], + [ + "singer.net_worth_millions", + "vocalist.net_worth_millions" + ], + [ + "singer.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "vocalist.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "singer.citizenship", + "vocalist.citizenship" + ], + [ + "singer.citizenship", + "musician.citizenship" + ], + [ + "vocalist.citizenship", + "musician.citizenship" + ] + ] + }, + { + "question": "what are the citizenships that are shared by singers with a #birth year# before 1945 and after 1955?", + "db_schema": { + "singer": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "song": [ + "song_id", + "title", + "singer_id", + "sales", + "highest_position" + ], + "vocalist": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ], + "musician": [ + "singer_id", + "name", + "birth_year", + "net_worth_millions", + "citizenship" + ] + }, + "linking_list": [ + [ + "birth year", + "singer.birth_year" + ], + [ + "birth year", + "vocalist.birth_year" + ], + [ + "birth year", + "musician.birth_year" + ] + ], + "linking_list_idx": [ + [ + 0, + "singer.birth_year" + ], + [ + 0, + "vocalist.birth_year" + ], + [ + 0, + "musician.birth_year" + ] + ], + "linking_list_col": [ + [ + "singer.singer_id", + "vocalist.singer_id" + ], + [ + "singer.singer_id", + "musician.singer_id" + ], + [ + "vocalist.singer_id", + "musician.singer_id" + ], + [ + "singer.name", + "vocalist.name" + ], + [ + "singer.name", + "musician.name" + ], + [ + "vocalist.name", + "musician.name" + ], + [ + "singer.birth_year", + "vocalist.birth_year" + ], + [ + "singer.birth_year", + "musician.birth_year" + ], + [ + "vocalist.birth_year", + "musician.birth_year" + ], + [ + "singer.net_worth_millions", + "vocalist.net_worth_millions" + ], + [ + "singer.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "vocalist.net_worth_millions", + "musician.net_worth_millions" + ], + [ + "singer.citizenship", + "vocalist.citizenship" + ], + [ + "singer.citizenship", + "musician.citizenship" + ], + [ + "vocalist.citizenship", + "musician.citizenship" + ] + ] + }, + { + "question": "what is the #feature# type name of feature aircon?", + "db_schema": { + "ref_feature_types": [ + "feature_type_code", + "feature_type_name" + ], + "ref_property_types": [ + "property_type_code", + "property_type_description" + ], + "other_available_features": [ + "feature_id", + "feature_type_code", + "feature_name", + "feature_description" + ], + "properties": [ + "property_id", + "property_type_code", + "date_on_market", + "date_sold", + "property_name", + "property_address", + "room_count", + "vendor_requested_price", + "buyer_offered_price", + "agreed_selling_price", + "apt_feature_1", + "apt_feature_2", + "apt_feature_3", + "fld_feature_1", + "fld_feature_2", + "fld_feature_3", + "hse_feature_1", + "hse_feature_2", + "hse_feature_3", + "oth_feature_1", + "oth_feature_2", + "oth_feature_3", + "shp_feature_1", + "shp_feature_2", + "shp_feature_3", + "other_property_details" + ], + "other_property_features": [ + "property_id", + "feature_id", + "property_feature_description" + ], + "Additional_Features": [ + "feature_id", + "feature_type_code", + "feature_name", + "feature_description" + ], + "Extra_Property_Features": [ + "feature_id", + "feature_type_code", + "feature_name", + "feature_description" + ] + }, + "linking_list": [ + [ + "feature", + "other_available_features.feature_name" + ], + [ + "feature", + "Additional_Features.feature_name" + ], + [ + "feature", + "Extra_Property_Features.feature_name" + ] + ], + "linking_list_idx": [ + [ + 0, + "other_available_features.feature_name" + ], + [ + 0, + "Additional_Features.feature_name" + ], + [ + 0, + "Extra_Property_Features.feature_name" + ] + ], + "linking_list_col": [ + [ + "other_available_features.feature_id", + "additional_features.feature_id" + ], + [ + "other_available_features.feature_id", + "extra_property_features.feature_id" + ], + [ + "additional_features.feature_id", + "extra_property_features.feature_id" + ], + [ + "other_available_features.feature_type_code", + "additional_features.feature_type_code" + ], + [ + "other_available_features.feature_type_code", + "extra_property_features.feature_type_code" + ], + [ + "additional_features.feature_type_code", + "extra_property_features.feature_type_code" + ], + [ + "other_available_features.feature_name", + "additional_features.feature_name" + ], + [ + "other_available_features.feature_name", + "extra_property_features.feature_name" + ], + [ + "additional_features.feature_name", + "extra_property_features.feature_name" + ], + [ + "other_available_features.feature_description", + "additional_features.feature_description" + ], + [ + "other_available_features.feature_description", + "extra_property_features.feature_description" + ], + [ + "additional_features.feature_description", + "extra_property_features.feature_description" + ] + ] + }, + { + "question": "what are the names of properties that are either #houses# or #apartments# with more than 1 room?", + "db_schema": { + "ref_feature_types": [ + "feature_type_code", + "feature_type_name" + ], + "ref_property_types": [ + "property_type_code", + "property_type_description" + ], + "other_available_features": [ + "feature_id", + "feature_type_code", + "feature_name", + "feature_description" + ], + "properties": [ + "property_id", + "property_type_code", + "date_on_market", + "date_sold", + "property_name", + "property_address", + "room_count", + "vendor_requested_price", + "buyer_offered_price", + "agreed_selling_price", + "apt_feature_1", + "apt_feature_2", + "apt_feature_3", + "fld_feature_1", + "fld_feature_2", + "fld_feature_3", + "hse_feature_1", + "hse_feature_2", + "hse_feature_3", + "oth_feature_1", + "oth_feature_2", + "oth_feature_3", + "shp_feature_1", + "shp_feature_2", + "shp_feature_3", + "other_property_details" + ], + "other_property_features": [ + "property_id", + "feature_id", + "property_feature_description" + ], + "Estates": [ + "property_id", + "property_type_code", + "date_on_market", + "date_sold", + "property_name", + "property_address", + "room_count", + "vendor_requested_price", + "buyer_offered_price", + "agreed_selling_price", + "apt_feature_1", + "apt_feature_2", + "apt_feature_3", + "fld_feature_1", + "fld_feature_2", + "fld_feature_3", + "hse_feature_1", + "hse_feature_2", + "hse_feature_3", + "oth_feature_1", + "oth_feature_2", + "oth_feature_3", + "shp_feature_1", + "shp_feature_2", + "shp_feature_3", + "other_property_details" + ], + "Real_Estate_Listings": [ + "property_id", + "property_type_code", + "date_on_market", + "date_sold", + "property_name", + "property_address", + "room_count", + "vendor_requested_price", + "buyer_offered_price", + "agreed_selling_price", + "apt_feature_1", + "apt_feature_2", + "apt_feature_3", + "fld_feature_1", + "fld_feature_2", + "fld_feature_3", + "hse_feature_1", + "hse_feature_2", + "hse_feature_3", + "oth_feature_1", + "oth_feature_2", + "oth_feature_3", + "shp_feature_1", + "shp_feature_2", + "shp_feature_3", + "other_property_details" + ] + }, + "linking_list": [ + [ + "houses", + "properties.property_type_code" + ], + [ + "houses", + "Estates.property_type_code" + ], + [ + "houses", + "Real_Estate_Listings.property_type_code" + ], + [ + "apartments", + "properties.property_type_code" + ], + [ + "apartments", + "Estates.property_type_code" + ], + [ + "apartments", + "Real_Estate_Listings.property_type_code" + ] + ], + "linking_list_idx": [ + [ + 0, + "properties.property_type_code" + ], + [ + 0, + "Estates.property_type_code" + ], + [ + 0, + "Real_Estate_Listings.property_type_code" + ], + [ + 1, + "properties.property_type_code" + ], + [ + 1, + "Estates.property_type_code" + ], + [ + 1, + "Real_Estate_Listings.property_type_code" + ] + ], + "linking_list_col": [ + [ + "properties.property_id", + "estates.property_id" + ], + [ + "properties.property_id", + "real_estate_listings.property_id" + ], + [ + "estates.property_id", + "real_estate_listings.property_id" + ], + [ + "properties.property_type_code", + "estates.property_type_code" + ], + [ + "properties.property_type_code", + "real_estate_listings.property_type_code" + ], + [ + "estates.property_type_code", + "real_estate_listings.property_type_code" + ], + [ + "properties.date_on_market", + "estates.date_on_market" + ], + [ + "properties.date_on_market", + "real_estate_listings.date_on_market" + ], + [ + "estates.date_on_market", + "real_estate_listings.date_on_market" + ], + [ + "properties.date_sold", + "estates.date_sold" + ], + [ + "properties.date_sold", + "real_estate_listings.date_sold" + ], + [ + "estates.date_sold", + "real_estate_listings.date_sold" + ], + [ + "properties.property_name", + "estates.property_name" + ], + [ + "properties.property_name", + "real_estate_listings.property_name" + ], + [ + "estates.property_name", + "real_estate_listings.property_name" + ], + [ + "properties.property_address", + "estates.property_address" + ], + [ + "properties.property_address", + "real_estate_listings.property_address" + ], + [ + "estates.property_address", + "real_estate_listings.property_address" + ], + [ + "properties.room_count", + "estates.room_count" + ], + [ + "properties.room_count", + "real_estate_listings.room_count" + ], + [ + "estates.room_count", + "real_estate_listings.room_count" + ], + [ + "properties.vendor_requested_price", + "estates.vendor_requested_price" + ], + [ + "properties.vendor_requested_price", + "real_estate_listings.vendor_requested_price" + ], + [ + "estates.vendor_requested_price", + "real_estate_listings.vendor_requested_price" + ], + [ + "properties.buyer_offered_price", + "estates.buyer_offered_price" + ], + [ + "properties.buyer_offered_price", + "real_estate_listings.buyer_offered_price" + ], + [ + "estates.buyer_offered_price", + "real_estate_listings.buyer_offered_price" + ], + [ + "properties.agreed_selling_price", + "estates.agreed_selling_price" + ], + [ + "properties.agreed_selling_price", + "real_estate_listings.agreed_selling_price" + ], + [ + "estates.agreed_selling_price", + "real_estate_listings.agreed_selling_price" + ], + [ + "properties.apt_feature_1", + "estates.apt_feature_1" + ], + [ + "properties.apt_feature_1", + "real_estate_listings.apt_feature_1" + ], + [ + "estates.apt_feature_1", + "real_estate_listings.apt_feature_1" + ], + [ + "properties.apt_feature_2", + "estates.apt_feature_2" + ], + [ + "properties.apt_feature_2", + "real_estate_listings.apt_feature_2" + ], + [ + "estates.apt_feature_2", + "real_estate_listings.apt_feature_2" + ], + [ + "properties.apt_feature_3", + "estates.apt_feature_3" + ], + [ + "properties.apt_feature_3", + "real_estate_listings.apt_feature_3" + ], + [ + "estates.apt_feature_3", + "real_estate_listings.apt_feature_3" + ], + [ + "properties.fld_feature_1", + "estates.fld_feature_1" + ], + [ + "properties.fld_feature_1", + "real_estate_listings.fld_feature_1" + ], + [ + "estates.fld_feature_1", + "real_estate_listings.fld_feature_1" + ], + [ + "properties.fld_feature_2", + "estates.fld_feature_2" + ], + [ + "properties.fld_feature_2", + "real_estate_listings.fld_feature_2" + ], + [ + "estates.fld_feature_2", + "real_estate_listings.fld_feature_2" + ], + [ + "properties.fld_feature_3", + "estates.fld_feature_3" + ], + [ + "properties.fld_feature_3", + "real_estate_listings.fld_feature_3" + ], + [ + "estates.fld_feature_3", + "real_estate_listings.fld_feature_3" + ], + [ + "properties.hse_feature_1", + "estates.hse_feature_1" + ], + [ + "properties.hse_feature_1", + "real_estate_listings.hse_feature_1" + ], + [ + "estates.hse_feature_1", + "real_estate_listings.hse_feature_1" + ], + [ + "properties.hse_feature_2", + "estates.hse_feature_2" + ], + [ + "properties.hse_feature_2", + "real_estate_listings.hse_feature_2" + ], + [ + "estates.hse_feature_2", + "real_estate_listings.hse_feature_2" + ], + [ + "properties.hse_feature_3", + "estates.hse_feature_3" + ], + [ + "properties.hse_feature_3", + "real_estate_listings.hse_feature_3" + ], + [ + "estates.hse_feature_3", + "real_estate_listings.hse_feature_3" + ], + [ + "properties.oth_feature_1", + "estates.oth_feature_1" + ], + [ + "properties.oth_feature_1", + "real_estate_listings.oth_feature_1" + ], + [ + "estates.oth_feature_1", + "real_estate_listings.oth_feature_1" + ], + [ + "properties.oth_feature_2", + "estates.oth_feature_2" + ], + [ + "properties.oth_feature_2", + "real_estate_listings.oth_feature_2" + ], + [ + "estates.oth_feature_2", + "real_estate_listings.oth_feature_2" + ], + [ + "properties.oth_feature_3", + "estates.oth_feature_3" + ], + [ + "properties.oth_feature_3", + "real_estate_listings.oth_feature_3" + ], + [ + "estates.oth_feature_3", + "real_estate_listings.oth_feature_3" + ], + [ + "properties.shp_feature_1", + "estates.shp_feature_1" + ], + [ + "properties.shp_feature_1", + "real_estate_listings.shp_feature_1" + ], + [ + "estates.shp_feature_1", + "real_estate_listings.shp_feature_1" + ], + [ + "properties.shp_feature_2", + "estates.shp_feature_2" + ], + [ + "properties.shp_feature_2", + "real_estate_listings.shp_feature_2" + ], + [ + "estates.shp_feature_2", + "real_estate_listings.shp_feature_2" + ], + [ + "properties.shp_feature_3", + "estates.shp_feature_3" + ], + [ + "properties.shp_feature_3", + "real_estate_listings.shp_feature_3" + ], + [ + "estates.shp_feature_3", + "real_estate_listings.shp_feature_3" + ], + [ + "properties.other_property_details", + "estates.other_property_details" + ], + [ + "properties.other_property_details", + "real_estate_listings.other_property_details" + ], + [ + "estates.other_property_details", + "real_estate_listings.other_property_details" + ] + ] + } +] \ No newline at end of file